I'm trying to configure a plain openldap (slapd) on Ubuntu 18.04 and I can't for the life of me get past this error:
Code:
ldap_add: Invalid syntax (21)
additional info: objectClass: value #0 invalid per syntax
I've searched on the internet, but none of the solutions seemed to help.
I've followed this tutorial (
https://computingforgeeks.com/how-to...-ubuntu-18-04/)
I add a file called basedn.ldif containg the following lines:
Code:
dn: ou=people,dc=a,dc=macroscian,dc=com
objectClass: organizatonalUnit
ou: people
dn: ou=groups,dc=a,dc=macroscian,dc=com
objectClass: organizationalUnit
out: groups
Then I run the following command:
ldapadd -x -D cn=admin,dc=a,dc=macroscian,dc=com -W -f basedn.ldif
But I get:
Code:
Enter LDAP Password:
adding new entry "ou=people,dc=a,dc=macroscian,dc=com"
ldap_add: Invalid syntax (21)
additional info: objectClass: value #0 invalid per syntax
This guy here (
https://serverfault.com/questions/53...d-syntax-error) seems to have a similar problem and his file is also quite simple.
But this
Code:
ldapadd -Y EXTERNAL -H ldapi:// -f /etc/ldap/schema/nis.ldif
didn't help. I changed the path to match mine, as he was pointing to /etc/openldap, which I think is the Centos version.
But this outputs:
Code:
SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
adding new entry "cn=nis,cn=schema,cn=config"
ldap_add: Other (e.g., implementation specific) error (80)
additional info: olcAttributeTypes: Duplicate attributeType: "1.3.6.1.1.1.1.2"
So it basically doesn't change anything, as far as I understand.