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

Re: Error modifying uid or dn with ldapmodify (Naming violation (64) value of naming attribute 'uid' is not present in entry)



Alberto GD writes:
> When I try to modify dn:

That looks like what you should try, yes...

> dn: uid=old_user_uid,dc=dominio
> changetype: modify
> replace: dn
> dn: uid=new_user_uid,dc=dominio

"dn" is not an attribute name, it's just written that way in LDIF
format.  Use the 'modrdn' changetype to change the DN of an entry:

dn: uid=old_user_uid,dc=dominio
changetype: modrdn
newrdn: uid=new_user_uid
deleteoldrdn: 1

-- 
Hallvard