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

Re: Cant run ldapadd



Hi,

change "dc=roles,dc=xxx,dc=com" in "cn=roles,dc=xxx,dc=com"

Regards,

Cécile.

Quoting Karamat Adil IHMD <KaramatA@ih.navy.mil>:

> Hi all,
>    I am new at this openLdap stuff and just finally got it to work with
> BurkeleyDB. Following is the LDIF file that I am trying to add , which is a
> sample file form the tomcat web site to use with openldap:
> ----------------------
> # Define a user named 'tomcat'
> dn: cn=tomcat,dc=xxx,dc=com
> cn: tomcat
> userPassword: tomcat
> sn: Tomcat User
> objectClass: person
> 
> # Define a user named 'both'
> dn: cn=both,dc=xxx,dc=com
> cn: both
> userPassword: tomcat
> sn: Both User
> objectClass: person
> 
> # Define an entry to base role searches on
> dn: dc=roles,dc=xxx,dc=com
> cn: roles
> objectClass: person
> sn: Roles Entry
> 
> # Define all members of the 'tomcat' role
> dn: cn=tomcat,dc=roles,dc=xxx,dc=com
> cn: tomcat
> objectClass: groupOfUniqueNames
> uniqueMember: cn=tomcat,dc=xxx,dc=com
> uniqueMember: cn=both,dc=xxx,dc=com
> ------------------
> 
> OK it adds the first two entries i.e tomcat and both and then when it tries
> to add the third entry it gives the following message :
> 
> adding new entry "dc=roles,dc=xxx,dc=com"
> ldapadd: update failed: dc=roles,dc=xxx,dc=com
> ldap_add: No such attribute (16)
>         additional info: naming attribute 'dc' is not present in entry
> 
> 
> What am I doing wrong ????
> Thanks,
> Adil
> 




-------------------------------------------------
Mail sent through GFI Mailserver1.0
info: ava@gfi.be