This changes the way we do LDAP updates. We don't use LDAP_MOD_MODIFY
commit49c0726fca900e0b368bb25788b2a2880b093ea2
authorVolker Lendecke <vlendec@samba.org>
Sat, 22 Mar 2003 19:16:36 +0000 (22 19:16 +0000)
committerVolker Lendecke <vlendec@samba.org>
Sat, 22 Mar 2003 19:16:36 +0000 (22 19:16 +0000)
tree8b96636e3d16c000c01e5b435812b59bb6973195
parent1f499a79f5468e87d26b60ffe3aa375b91cadbef
This changes the way we do LDAP updates. We don't use LDAP_MOD_MODIFY
anymore, but instead look at what is currently stored in the
database. Then we explicitly delete the existing attribute and add the
new value if it is not NULL or "". This way we can handle appearing
and disappearing attributes quite nicely.

This currently breaks pdbedit -o, as this does not set the CHANGED
flag on the SAM_ACCOUNT.

Jelmer suggested that we set all the fields on CHANGED in
context_add_sam_account. This sounds not too unreasonable.

Volker
(This used to be commit a75015c9ce8246670ee7c7d73df585390696fe95)
source3/passdb/pdb_ldap.c