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

[ldapmodify] multiple entries of the same attibute



Hello list,

I've got records with e.g. multiple mail: entries per dn:

dn: cn=Joe Sixpack,ou=addressbook,dc=example,dc=org
[ 8< 8< 8< snip objectclasses and other stuff 8< 8< 8< ]
mail: user1@example.com
mail: user2@example.com
mail: user3@example.com

GUI ldap clients like jxplorer are able to change a single mail: entry.
Using "ldapmodify" I replace the first mail: entry, but it will delete
the other mail: antries:

#################################################################

change.diff file:

dn: cn=Joe Sixpack,ou=addressbook,dc=example,dc=com
changetype: modify
replace: mail
mail: otheruser@example.com
-

#################################################################

invoke:

ldapmodify -x -D "cn=admin,dc=example,dc=com" -W -f change.ldif

#################################################################

result:

dn: cn=Joe Sixpack,ou=addressbook,dc=example,dc=org
[ 8< 8< 8< snip objectclasses and other stuff 8< 8< 8< ]
mail: otheruser@example.com

#################################################################

Is there a way to tell ldapmodify to change just a particular entry?

R.

-- 
richard lucassen
http://contact.xaq.nl/