r19731: Modify the ldb_map infrustructure to always map from requested
authorAndrew Bartlett <abartlet@samba.org>
Thu, 16 Nov 2006 09:16:17 +0000 (09:16 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:28:15 +0000 (14:28 -0500)
commitadae413042e15e7228bcc25321913b38ae61358a
tree25d26514a6a716ac07e2df4547a677b770eefcb5
parent72ce2ab2ee51b67eaf85544d207316a45198cc1c
r19731: Modify the ldb_map infrustructure to always map from requested
attributes to backend (remote) attributes.

We can't do a reverse mapping safely where the remote attribute may be
a source for multiple local attributes.  (We end up with the wrong
attributes returned).

In doing this, I've modified the samba3sam.js test to be more
realistic, and fixed some failures in the handling of primaryGroupID.

I've added a new (private) helper function ldb_msg_remove_element() to
avoid a double lookup of the element name.

I've also re-formatted many of the function headers, to fit into
standard editor widths.

Andrew Bartlett
(This used to be commit 186766e3095e71ba716c69e681592e217a3bc420)
source4/dsdb/samdb/ldb_modules/samba3sam.c
source4/lib/ldb/common/ldb_msg.c
source4/lib/ldb/include/ldb_private.h
source4/lib/ldb/modules/ldb_map.c
source4/lib/ldb/modules/ldb_map_outbound.c
source4/lib/ldb/modules/ldb_map_private.h
testprogs/ejs/samba3sam.js