summaryrefslogtreecommitdiff
path: root/source3/lib/tldap.c
AgeCommit message (Collapse)AuthorFilesLines
2013-02-22s3-tldap: Make sure we don't deref a null pointer.Andreas Schneider1-0/+3
Reviewed-by: Alexander Bokovoy <ab@samba.org>
2013-02-19s3:lib: make use of samba_tevent_context_init()Stefan Metzmacher1-5/+5
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
2012-12-21s3-tldap: Fix dead code in tldap_sasl_bind_send().Andreas Schneider1-1/+1
dn can't be NULL cause it is set to "" in that case. Found by Coverity. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
2011-06-20Use tevent_req_oomVolker Lendecke1-2/+2
This fixes a few Coverity errors
2011-05-18s3-lib Replace StrnCaseCmp() with strncasecmp_m()Andrew Bartlett1-1/+1
strncasecmp_m() never needs to call to talloc, and via next_codepoint() still has an ASCII fast-path bypassing iconv() calls. Andrew Bartlett
2011-05-05Fix many const compiler warnings.Jeremy Allison1-5/+5
2011-04-29s3-tevent: only include ../lib/util/tevent wrappers where needed.Günther Deschner1-0/+1
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri Apr 29 14:00:30 CEST 2011 on sn-devel-104
2011-04-29s3-tsocket: only include ../lib/tsocket/tsocket.h where needed.Günther Deschner1-0/+1
Guenther
2011-04-16s3: Remove an unused variableVolker Lendecke1-3/+0
2011-03-20s3: Fix early tldap_search cancelsVolker Lendecke1-1/+1
A callback of tldap_search_send might not interested in the rest of the results and could do a TALLOC_FREE of the search request. In this case, "subreq" is already free'ed. So we have to set it to pending before the callback is called. The TALLOC_FREE of the search request will set it to non-pending again via tldap_msg_destructor. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Mar 20 11:26:57 CET 2011 on sn-devel-104
2011-03-16s3-build: only include asn1 headers where actually needed.Günther Deschner1-0/+1
Guenther
2011-03-14s3: Change tldap_entry_attributes to the "array,count" conventionVolker Lendecke1-2/+3
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Mar 14 22:02:35 CET 2011 on sn-devel-104
2011-02-13s3: Use tlap_simple_recv in tldap_sasl_bind_recvVolker Lendecke1-6/+3
2011-02-13s3: Add error checking to asn1_read_OctetString_tallocVolker Lendecke1-2/+15
2011-02-13Fix typosVolker Lendecke1-1/+1
2011-02-10s3: Align the args in tldap_modifyVolker Lendecke1-3/+3
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Feb 10 23:20:05 CET 2011 on sn-devel-104
2011-02-10s3: Align tldap_add and tldap_add_sendVolker Lendecke1-1/+1
2011-01-26s3-lib: Fixed a missing return value in tldap.Andreas Schneider1-0/+1
s3-lib: Fixed a missing return value in tldap.
2010-07-20s3: Fix two uninitialized variablesVolker Lendecke1-2/+2
2010-06-21tldap: Fix a type-punned warningVolker Lendecke1-1/+1
2010-05-18s3-tldap: only include tldap when actually needed.Günther Deschner1-0/+1
Guenther
2010-03-10s3: Make TLDAP_IS_ALPHA and TLDAP_IS_ADH static functionsVolker Lendecke1-5/+12
2010-03-09Fix typoSimo Sorce1-2/+2
2010-03-09s3:tldap add own filter parsingSimo Sorce1-114/+600
Also add torture test to check filter parsing.
2009-07-15s3:tldap: fix the build - a void function should not return a valueStefan Metzmacher1-3/+3
metze
2009-06-28If the connection is down, don't try another write.Volker Lendecke1-0/+17
2009-06-28tldap_msg_received: Properly free the asn1_struct in case of an errorVolker Lendecke1-0/+1
2009-06-27Move read_ldap_done after read_ldap_sendVolker Lendecke1-24/+25
2009-06-27Convert tldap to tstreamVolker Lendecke1-11/+17
2009-06-27tldap: Don't fire off more than one read_ldap request during searchesVolker Lendecke1-10/+22
2009-06-20Reorganize retrieving errors and server-sent controlsVolker Lendecke1-83/+66
This attaches the data to the tldap_message instead of the tevent_req. It adds tldap_ctx_lastmsg() to retrieve the last message for the users of the sync wrappers.
2009-06-20Move asn1_load_nocopy() to lib/util/asn1.cVolker Lendecke1-7/+0
2009-06-20Move asn1_blob() to lib/util/asn1.cVolker Lendecke1-13/+0
2009-06-20tldap control supportVolker Lendecke1-7/+122
2009-06-20Prepare control supportVolker Lendecke1-27/+44
We will have arrays of controls passed to tldap.c. Follow a mantra from the classic book "Thinking Forth" by Leo Brodie: Favor counts over terminators :-) This makes the parameter lists to tldap pretty long, but everyone will have wrapper routines anyway, see for example tldap_search_fmt. And the OpenLDAP manpages call the non-_ext routines deprecated, probably for a reason.
2009-06-20Fix empty linesVolker Lendecke1-3/+0
2009-06-19Add a missing talloc_move() in tldap_search_recvVolker Lendecke1-1/+1
2009-06-19Make tevent_req_is_ldap_error publicVolker Lendecke1-1/+1
2009-06-19Add tldap_context_[gs]etattrVolker Lendecke1-0/+78
This adds the ability to attach extended information to a tldap_context. This will become useful once we start to do automatic reconnects for example, a callback function might want attach a pointer to credentials so that it can rebind. The initial user of this will be a cached rootdse, so that things like the ability to do paged searches can be cached.
2009-06-12Add basic tracing of tldap messagesVolker Lendecke1-0/+10
2009-06-12Add debugging facility to tldap, analogous to teventVolker Lendecke1-0/+32
2009-06-07Fix syntax of sending a delete requestVolker Lendecke1-1/+1
2009-06-06Add the early start of an async ldap libraryVolker Lendecke1-0/+1835
There's a lot of things this does not do yet: For example it does not parse the reply blob in the sasl bind, it does not do anything with controls yet, a lot of the ldap requests are not covered yet. But it provides a basis for me to play with a pdb_ads passdb module.