This changes the way we do LDAP updates. We don't use LDAP_MOD_MODIFY
authorVolker Lendecke <vlendec@samba.org>
Sat, 22 Mar 2003 19:15:50 +0000 (19:15 +0000)
committerVolker Lendecke <vlendec@samba.org>
Sat, 22 Mar 2003 19:15:50 +0000 (19:15 +0000)
commita9aa2cb025e382ac5801d78462cc6e017e41a438
treeb2089a61f33f05bb0df7867c5f8aa8a1beb6bb52
parent5050e8ee1a1fd3280d65d22c079ac90cf7e454e9
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 f7149cf500d2b10ee72163c018a39fdd192d7632)
source3/passdb/pdb_ldap.c