[Date Prev][Date Next]
adding extra attributes without removing current values
My question is probably best explained with a (simplified,
Let's say I have an entry:
If I now create a file called simple.ldif consisting of just two lines:
and then execute:
ldapmodify -f simple.ldif
the result is that value2 does get added, but value1 disappears. I've
looked through the ldapmodify man page and also experimented with the
php function ldap_modify() but haven't discovered a way to do this
simply. Obviously I could first do an ldapsearch, select any
existing value(s), append the new one I wish to add, and then
perform my ldapmodify, but that seems unnecessarily complex for
something that I would think is a fairly common use case.
Is there an easy way to accomplish this?
Thanx very much in advance,