1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-29 11:21:54 +03:00
samba-mirror/source4/libcli/ldap
Andrew Tridgell bdee131f30 r7860: switch our ldb storage format to use a NDR encoded objectSid. This is
quite a large change as we had lots of code that assumed that
objectSid was a string in S- format.

metze and simo tried to convince me to use NDR format months ago, but
I didn't listen, so its fair that I have the pain of fixing all the
code now :-)

This builds on the ldb_register_samba_handlers() and ldif handlers
code I did earlier this week. There are still three parts of this
conversion I have not finished:

 - the ltdb index records need to use the string form of the objectSid
   (to keep the DNs sane). Until that it done I have disabled indexing on
   objectSid, which is a big performance hit, but allows us to pass
   all our tests while I rejig the indexing system to use a externally
   supplied conversion function

 - I haven't yet put in place the code that allows client to use the
   "S-xxx-yyy" form for objectSid in ldap search expressions. w2k3
   supports this, presumably by looking for the "S-" prefix to
   determine what type of objectSid form is being used by the client. I
   have been working on ways to handle this, but am not happy with
   them yet so they aren't part of this patch

 - I need to change pidl to generate push functions that take a
   "const void *" instead of a "void*" for the data pointer. That will
   fix the couple of new warnings this code generates.

Luckily it many places the conversion to NDR formatted records
actually simplified the code, as it means we no longer need as many
calls to dom_sid_parse_talloc(). In some places it got more complex,
but not many.
(This used to be commit d40bc2fa8d)
2007-10-10 13:18:44 -05:00
..
config.mk r7770: added ldaps support to our ldap client library 2007-10-10 13:18:34 -05:00
ldap_bind.c r7855: fixed a typo 2007-10-10 13:18:43 -05:00
ldap_client.c r7810: don't give errors when the ldap server sends us reference replies 2007-10-10 13:18:38 -05:00
ldap_client.h r7770: added ldaps support to our ldap client library 2007-10-10 13:18:34 -05:00
ldap_ildap.c r7713: fixed error display in ildap_search() 2007-10-10 13:18:25 -05:00
ldap_msg.c r7720: - simplify the asn1 decode of ldap_search() a lot, taking advantage of 2007-10-10 13:18:26 -05:00
ldap_ndr.c r7860: switch our ldb storage format to use a NDR encoded objectSid. This is 2007-10-10 13:18:44 -05:00
ldap.c r7749: some bug fixes from testing with socket:testnonblock 2007-10-10 13:18:30 -05:00
ldap.h r7665: - added a ildap_*() interface to our internal ldap library. This 2007-10-10 13:18:19 -05:00