I have the following content in adam.ldif
dn: uid=adam,ou=users,dc=wesgibbs,dc=com
objectClass: top
objectClass: account
objectClass: posixAccount
objectClass: shadowAccount
cn: adam
uid: adam
uidNumber: 16859
gidNumber: 100
homeDirectory: /home/adam
loginShell: /bin/bash
gecos: adam
userPassword: {crypt}x
shadowLastChange: 0
shadowMax: 0
shadowWarning: 0
I then attempt to add the above adam user to my LDAP server w/the following command
ldapadd -x -D "cn=Manager,dc=wesgibbs,dc=com" -W -f adam.ldif
I get the following feedback:
Enter LDAP Password:
adding new entry "uid=adam,ou=users,dc=wesgibbs,dc=com"
ldap_add: Invalid syntax (21)
additional info: objectClass: value #1 invalid per syntax
My understanding at this point is that the objectClass entries in the .ldif file start at index 0. So index 1 that the feedback is referring too for the error is the objectClass: account
portion. My other understanding, and what I suspect is the issue, is that I'm not including the correct module in my slapd.conf file. I'm new to OpenLDAP and am trying to get the basics down. Any help is appreciated.