I have imported from what I can tell successfully the sshPublicKey schema but the attribute doesn't show in PHPLDAPADMIN.
Anybody have any experience with this issue?
What I did verbatim :
sudo nano openssh-lpk.ldif dn: cn=openssh-lpk,cn=schema,cn=config objectClass: olcSchemaConfig cn: openssh-lpk olcAttributeTypes: ( 22.214.171.124.4.1.24552.500.1.1.1.13 NAME 'sshPublicKey' DESC 'MANDATORY: OpenSSH Public key' EQUALITY octetStringMatch SYNTAX 126.96.36.199.4.1.14188.8.131.52.40 ) olcObjectClasses: ( 184.108.40.206.4.1.24552.500.1.1.2.0 NAME 'ldapPublicKey' SUP top AUXILIARY DESC 'MANDATORY: OpenSSH LPK objectclass' MAY ( sshPublicKey $ uid ) )
Import the schema, should I change ldapi://? I tried using my IP/Loopback and it doesn't work, but it seems to work as is.
ldapadd -Y EXTERNAL -H ldapi:/// -f openssh-lpk.ldif
Got this from this guide here >> https://blog.shichao.io/2015/04/17/setup_openldap_server_with_openssh_lpk_on_ubuntu.html
Confirmed its what I'm supposed to via this post on SF.
But his instructions are a bit vague...
"Update LDAP to include the OpenSSH-LPK schema"
We first need to update LDAP with a schema to add the sshPublicKey attribute for users:
How? What am I doing wrong?
PS: This is the output of me running the command, all seems well, it even says "Duplicate"
root@ldap:~# ldapadd -Y EXTERNAL -H ldapi:/// -f openssh-lpk.ldif SASL/EXTERNAL authentication started SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth SASL SSF: 0 adding new entry "cn=openssh-lpk,cn=schema,cn=config" ldap_add: Other (e.g., implementation specific) error (80) additional info: olcAttributeTypes: Duplicate attributeType: "220.127.116.11.4.1.24552.500.1.1.1.13"
UPDATE: I can see the schema in PHPLDAPADMIN, but its not under the PosiX Account, can somebody post the attribute tag from