s4:samldb LDB module - simplify/unify the message handling on add and modify operations
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Wed, 15 Sep 2010 10:40:07 +0000 (12:40 +0200)
committerMatthias Dieter Wallnöfer <mdw@sn-devel-104.sn.samba.org>
Tue, 5 Oct 2010 09:24:57 +0000 (09:24 +0000)
commitaf5308ef9c30be759985a37f29c958eec0dc28cd
treeacd2197d0268b5fcc95b4d874315b5bb56afe0ab
parentca035b35fe646afc1222ce6b16c818b6629a3039
s4:samldb LDB module - simplify/unify the message handling on add and modify operations

- Perform only shallow copies (should be enough)
- Perform only one copy per operation (also on modifications)
- Build a new request on modify operations if needed ("modified" flag) - this
  makes it look cleaner
- Fix an important bug: the "el" pointers could have changed after
  modifications. Therefore we have to refresh them on the FLAG_DELETE checks

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Tue Oct  5 09:24:57 UTC 2010 on sn-devel-104
source4/dsdb/samdb/ldb_modules/samldb.c