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

suffix and sub suffix



e.g in slapd.conf, i have

suffix="o=ABC,o=com,c=sg"
rootdn="cn=root,o=ABC,o=com,c=sg"
...
...

suffix="ou=people,o=ABC,o=com,c=sg"
rootdn="cn=root,ou=people,o=ABC,o=com,c=sg"
...
...

i realize i have problems adding entries to the sub
suffix
what i did was,

ldapmodify -r -x -W -D
"cn=root,ou=people,o=ABC,o=com,c=sg" -f
organisational.ldif
where organisational.ldif contains
   dn: ou=people,o=ABC,o=com,c=sg
   changetype: add
   objectlass: mOrganisationalUnit

The error i got was invalid credentials. when i change
the ldapmodify command to
   ldapmodify -r -x -W -D "cn=root,o=ABC,o=com,c=sg"
-f organisational.ldif

the addition was successful. However it seems that the
new entry is being added to the root suffix, not the
sub suffix where i want it to be.


where have i gone wrong?

Thanks



__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com