r21806: I've been working over the last week to fix up the LDAP backend for
commiteef710668f91d1bbaa2d834d9e653e11c8aac817
authorAndrew Bartlett <abartlet@samba.org>
Tue, 13 Mar 2007 00:59:06 +0000 (13 00:59 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:49:29 +0000 (10 14:49 -0500)
tree408b4d6542b3d19ccc6f1425ed0aa65c5ce65d23
parent6fb3b4be10d204bec61a1fddd1c50c1c24d52ebf
r21806: I've been working over the last week to fix up the LDAP backend for
Samba4.  This only broke on global catalog queries, which turned out to
be due to changes in the partitions module that metze needed for his
DRSUAPI work.

I've reworked partitions.c to always include the 'problematic' control,
and therefore demonstrated that this is the issue.  This ensures
consistency, and should help with finding issues like this in future.

As this control (DSDB_CONTROL_CURRENT_PARTITION_OID) is not intended to
be linearised, I've added logic to allow it to be skipped when creating
network packets.

I've likewise make our LDAP server skip unknown controls, when marked
'not critical' on it's input, rather than just dropping the entire
request.  I need some help to generate a correct error packet when it is
marked critical.

Further work could perhaps be to have the ldap_encode routine return a
textual description of what failed to encode, as that would have saved
me a lot of time...

Andrew Bartlett
source/dsdb/samdb/ldb_modules/partition.c
source/ldap_server/ldap_server.c
source/libcli/cldap/cldap.c
source/libcli/ldap/ldap.c
source/libcli/ldap/ldap_client.c
source/libcli/ldap/ldap_controls.c