svn commit: samba r1598 - in trunk/source: . include lib libsmb utils

vlendec at samba.org vlendec at samba.org
Wed Jul 28 16:12:57 GMT 2004


Author: vlendec
Date: 2004-07-28 16:12:57 +0000 (Wed, 28 Jul 2004)
New Revision: 1598

Added:
   trunk/source/include/smb_ldap.h
   trunk/source/lib/smb_ldap.c
Modified:
   trunk/source/Makefile.in
   trunk/source/include/asn_1.h
   trunk/source/include/includes.h
   trunk/source/lib/talloc.c
   trunk/source/libsmb/asn1.c
   trunk/source/utils/net_ads.c
Log:
This is an alternative approach to connect to LDAP servers. I had problems
understanding the OpenLDAP client libraries, so I tried to implement that
protocol myself. The central routines are ldap_encode and ldap_decode that
convert a struct ldap_message to a byte stream and vice versa. You are free to
deliver that to the LDAP server in any way you want, including non-blocking
network calls.

For an example how to use the API see utils/net_ads.c, routine
net_ads_test.c. This certainly does not belong there, but this is HEAD, isn't
it? ;-)

Volker

P.S: Not being able to figure out how to do async requests reliably with
OpenLDAP libs was my incentive to do this....


WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/trunk/source&rev=1598&nolog=1


More information about the samba-cvs mailing list