Re: [SLE] ldapmod problem



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@xxxxxxxxxxxxxxxx
-
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@xxxxxxxx
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-faq@xxxxxxxx



Relevant Pages

  • Re: Very simple "Sun One" ldapmodify questions
    ... Only use ldapmodify to change an existing entry. ... changetype: add ... objectclass: person ...
    (comp.unix.solaris)
  • Re: ADAM - Classes & Attributes
    ... changetype: ntdsSchemaAdd ... objectClass: attributeSchema ... changetype: ntdsSchemaModify ...
    (microsoft.public.windows.server.active_directory)
  • Re: ADAM Error: "A referral was returned..."
    ... >> changetype: add ... >> objectclass: organizationalUnit ... >>> find the naming context being referenced in the ldif file ...
    (microsoft.public.windows.server.active_directory)
  • Re: security descriptor
    ... changetype: add ... objectClass: controlAccessRight ... where the field 'appliesTo' has the schemaIDGUID of class 'testpermissions' ... mayContain: clear-log ...
    (microsoft.public.windows.server.active_directory)
  • Re: ADAM Error: "A referral was returned..."
    ... changetype: add ... objectclass: organizationalUnit ... > find the naming context being referenced in the ldif file ...
    (microsoft.public.windows.server.active_directory)