Hi ! I want to apply the ldif mentioned below on my ldap server but I get following error: (I think the problem is the renaming of the DN but how can I do that?) ----------------------------ERROR-------------------------------- modifying entry "uid=ronald labenbacher,cn=rkt,o=rk" ldap_modify: Naming violation (64) additional info: value of naming attribute 'uid' is not present in entry -------------------------------------------------------------------------- --------------------------LDIF------------------------- dn: uid=ronald labenbacher,cn=rkt,o=rk changetype: modify add: objectClass objectClass: CourierMailAccount - replace: homeDirectory homeDirectory: /home/ronald.labenbacher - add: mail mail: ronald.labenbacher@rk-lilienfeld.at - add: mailbox mailbox: /home/ronald.labenbacher/Maildir - replace: cn cn: ronald labenbacher - replace: uid uid: ronald_labenbacher,cn=rkt,o=rk ------------------------------------------------------------ -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
On Tuesday 18 July 2006 09:08, Martin Hochreiter wrote:
Hi !
I want to apply the ldif mentioned below on my ldap server but I get following error: (I think the problem is the renaming of the DN but how can I do that?)
----------------------------ERROR-------------------------------- modifying entry "uid=ronald labenbacher,cn=rkt,o=rk" ldap_modify: Naming violation (64) additional info: value of naming attribute 'uid' is not present in entry --------------------------------------------------------------------------
--------------------------LDIF------------------------- dn: uid=ronald labenbacher,cn=rkt,o=rk changetype: modify add: objectClass objectClass: CourierMailAccount - replace: homeDirectory homeDirectory: /home/ronald.labenbacher - add: mail mail: ronald.labenbacher@rk-lilienfeld.at - add: mailbox mailbox: /home/ronald.labenbacher/Maildir - replace: cn cn: ronald labenbacher
remove this:
- replace: uid uid: ronald_labenbacher,cn=rkt,o=rk and replace it with (note the empty line at the start):
-----------------------snip-------------------------- dn: uid=ronald labenbacher,cn=rkt,o=rk changetype: modrdn newrdn: uid=ronald_labenbacher deleteoldrdn: 1 -----------------------snip-------------------------- For details see the ldapmodify and slapd.replog (for the LDIF syntax) man pages. Alternatively you can rename the DN with the "ldapmodrdn" command. -- Ralf -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
participants (2)
-
Martin Hochreiter
-
Ralf Haferkamp