summaryrefslogtreecommitdiffstats
path: root/source3/lib/tldap.c
Commit message (Collapse)AuthorAgeFilesLines
* s3: tldap: Ensure all asn1_XX returns are checked.Jeremy Allison2014-09-261-143/+172
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
* s3:lib/tldap: make use of tevent_req_set_cleanup_fn()Stefan Metzmacher2014-01-171-7/+13
| | | | | | | | | | This is more better than a custom tevent_req destructor. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri Jan 17 14:34:06 CET 2014 on sn-devel-104
* s3:lib/tldap: make use of tevent_req_defer_callback()Stefan Metzmacher2014-01-171-0/+2
| | | | | | | | | | In tldap_msg_received() we call tevent_req_error() for more than one request, if we do that we need to use tevent_req_defer_callback() otherwise we're likely to crash, as a triggered callback may invalidate our state. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3-tldap: Make sure we don't deref a null pointer.Andreas Schneider2013-02-221-0/+3
| | | | Reviewed-by: Alexander Bokovoy <ab@samba.org>
* s3:lib: make use of samba_tevent_context_init()Stefan Metzmacher2013-02-191-5/+5
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s3-tldap: Fix dead code in tldap_sasl_bind_send().Andreas Schneider2012-12-211-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>
* Use tevent_req_oomVolker Lendecke2011-06-201-2/+2
| | | | This fixes a few Coverity errors
* s3-lib Replace StrnCaseCmp() with strncasecmp_m()Andrew Bartlett2011-05-181-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
* Fix many const compiler warnings.Jeremy Allison2011-05-051-5/+5
|
* s3-tevent: only include ../lib/util/tevent wrappers where needed.Günther Deschner2011-04-291-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
* s3-tsocket: only include ../lib/tsocket/tsocket.h where needed.Günther Deschner2011-04-291-0/+1
| | | | Guenther
* s3: Remove an unused variableVolker Lendecke2011-04-161-3/+0
|
* s3: Fix early tldap_search cancelsVolker Lendecke2011-03-201-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
* s3-build: only include asn1 headers where actually needed.Günther Deschner2011-03-161-0/+1
| | | | Guenther
* s3: Change tldap_entry_attributes to the "array,count" conventionVolker Lendecke2011-03-141-2/+3
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Mar 14 22:02:35 CET 2011 on sn-devel-104
* s3: Use tlap_simple_recv in tldap_sasl_bind_recvVolker Lendecke2011-02-131-6/+3
|
* s3: Add error checking to asn1_read_OctetString_tallocVolker Lendecke2011-02-131-2/+15
|
* Fix typosVolker Lendecke2011-02-131-1/+1
|
* s3: Align the args in tldap_modifyVolker Lendecke2011-02-101-3/+3
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Feb 10 23:20:05 CET 2011 on sn-devel-104
* s3: Align tldap_add and tldap_add_sendVolker Lendecke2011-02-101-1/+1
|
* s3-lib: Fixed a missing return value in tldap.Andreas Schneider2011-01-261-0/+1
| | | | s3-lib: Fixed a missing return value in tldap.
* s3: Fix two uninitialized variablesVolker Lendecke2010-07-201-2/+2
|
* tldap: Fix a type-punned warningVolker Lendecke2010-06-211-1/+1
|
* s3-tldap: only include tldap when actually needed.Günther Deschner2010-05-181-0/+1
| | | | Guenther
* s3: Make TLDAP_IS_ALPHA and TLDAP_IS_ADH static functionsVolker Lendecke2010-03-101-5/+12
|
* Fix typoSimo Sorce2010-03-091-2/+2
|
* s3:tldap add own filter parsingSimo Sorce2010-03-091-114/+600
| | | | Also add torture test to check filter parsing.
* s3:tldap: fix the build - a void function should not return a valueStefan Metzmacher2009-07-151-3/+3
| | | | metze
* If the connection is down, don't try another write.Volker Lendecke2009-06-281-0/+17
|
* tldap_msg_received: Properly free the asn1_struct in case of an errorVolker Lendecke2009-06-281-0/+1
|
* Move read_ldap_done after read_ldap_sendVolker Lendecke2009-06-271-24/+25
|
* Convert tldap to tstreamVolker Lendecke2009-06-271-11/+17
|
* tldap: Don't fire off more than one read_ldap request during searchesVolker Lendecke2009-06-271-10/+22
|
* Reorganize retrieving errors and server-sent controlsVolker Lendecke2009-06-201-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.
* Move asn1_load_nocopy() to lib/util/asn1.cVolker Lendecke2009-06-201-7/+0
|
* Move asn1_blob() to lib/util/asn1.cVolker Lendecke2009-06-201-13/+0
|
* tldap control supportVolker Lendecke2009-06-201-7/+122
|
* Prepare control supportVolker Lendecke2009-06-201-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.
* Fix empty linesVolker Lendecke2009-06-201-3/+0
|
* Add a missing talloc_move() in tldap_search_recvVolker Lendecke2009-06-191-1/+1
|
* Make tevent_req_is_ldap_error publicVolker Lendecke2009-06-191-1/+1
|
* Add tldap_context_[gs]etattrVolker Lendecke2009-06-191-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.
* Add basic tracing of tldap messagesVolker Lendecke2009-06-121-0/+10
|
* Add debugging facility to tldap, analogous to teventVolker Lendecke2009-06-121-0/+32
|
* Fix syntax of sending a delete requestVolker Lendecke2009-06-071-1/+1
|
* Add the early start of an async ldap libraryVolker Lendecke2009-06-061-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.