I have an LDAP server running on OpenBSD 7.1 using the native ldapd
implementation. I've created a basic DIT, and when attempting to add a user, I get:
# ldapadd -vv -H ldaps://hypnos.spookyinternet.com/ -f /tmp/users.ldif -D cn=admin,dc=spookyinternet,dc=com -w 'correct horse battery staple'
ldap_initialize( ldaps://hypnos.spookyinternet.com:636/??base )
add objectClass:
inetOrgPerson
add uid:
jessejames
adding new entry "uid=jessejames,ou=users,ou=accounts,ou=spookyinternet,dc=spookyinternet,dc=com"
ldap_add: Object class violation (65)
where /tmp/users.ldif
is:
dn: uid=jessejames,ou=users,ou=accounts,ou=spookyinternet,dc=spookyinternet,dc=com
objectClass: inetOrgPerson
uid: jessejames
I've looked at the inetOrgPerson
schema, and can't see what part of the class I'm violating, especially since none of the fields are a MUST:
objectclass ( 2.16.840.1.113730.3.2.2 NAME 'inetOrgPerson'
SUP organizationalPerson
STRUCTURAL
MAY ( audio $ businessCategory $ carLicense $ departmentNumber $
displayName $ employeeNumber $ employeeType $ givenName $
homePhone $ homePostalAddress $ initials $ jpegPhoto $
labeledURI $ mail $ manager $ mobile $ o $ pager $
roomNumber $ secretary $ uid $ x500uniqueIdentifier $
preferredLanguage $ userSMIMECertificate $ userPKCS12 ) )
All instances I could find online of ldap_add: Object class violation (65)
all came with an accompanying message to indicate what the violation was, but unfortunately I haven't been able to get anything more specific from my client (from the openldap-client
package).