r19731: Modify the ldb_map infrustructure to always map from requested
commitccdbdce443721823088f9ef73cab5d07610d736b
authorAndrew Bartlett <abartlet@samba.org>
Thu, 16 Nov 2006 09:16:17 +0000 (16 09:16 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 16 Nov 2006 09:16:17 +0000 (16 09:16 +0000)
tree6f3557dba4ca52da2729f97ef8208f7b6f25afb9
parentb7faa4694a4e6d58ec6cbe0da1d43b9666917588
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
source/dsdb/samdb/ldb_modules/samba3sam.c
source/lib/ldb/common/ldb_msg.c
source/lib/ldb/include/ldb_private.h
source/lib/ldb/modules/ldb_map.c
source/lib/ldb/modules/ldb_map_outbound.c
source/lib/ldb/modules/ldb_map_private.h
testprogs/ejs/samba3sam.js