[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: ldapadd error

Quanah Gibson-Mount wrote:

Yes, you must create it in your LDAP database, too, with LDIF. See the URL's above.

Ok, I did that, and I have an error:

ldapadd -x -D "cn=adam,dc=mdah,dc=state,dc=ms,dc=us" -W -h roark.mdah.state.ms.us -f stanford.LDIF
Enter LDAP Password:
adding new entry "dc=mdah,dc=state,dc=ms,dc=us"
ldap_add: Already exists (68)

So I did a search:

ldapsearch -x -b dc=mdah,dc=state,dc=ms,dc=us
# extended LDIF
# LDAPv3
# base <dc=mdah,dc=state,dc=ms,dc=us> with scope sub
# filter: (objectclass=*)
# requesting: ALL

# search result
search: 2
result: 32 No such object

# numResponses: 1

which doesn't show anything?

And my LDIF looks like:

cat stanford.LDIF
dn: dc=mdah,dc=state,dc=ms,dc=us
objectClass: dcObject
objectClass: organization
dc: mdah

dn: cn=adam,dc=mdah,dc=state,dc=ms,dc=us
objectClass: organizationalRole
cn: adam

dn: cn=accounts,dc=mdah,dc=state,dc=ms,dc=us
objectClass: top
objectClass: organizationalRole
cn: accounts

dn: cn=People,dc=mdah,dc=state,dc=ms,dc=us
objectClass: top
objectClass: organizationalRole
cn: People

I'm not sure why I am getting the error 68.