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)
commitf7149cf500d2b10ee72163c018a39fdd192d7632
tree4bef7d4933b8ac6074468b2b5edc6d22ba067ac1
parent3cddfe211da812a533611eecba5d5da55fd3cf2d
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
source/passdb/pdb_ldap.c