summaryrefslogtreecommitdiff
path: root/source4/ldap_server/ldap_server.c
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r3304: changed the API to lib/socket/ a little.Andrew Tridgell1-4/+19
The main change is to make socket_recv() take a pre-allocated buffer, rather than allocating one itself. This allows non-blocking users of this API to avoid a memcpy(). As a result our messaging code is now about 10% faster, and the ncacn_ip_tcp and ncalrpc code is also faster. The second change was to remove the unused mem_ctx argument from socket_send(). Having it there implied that memory could be allocated, which meant the caller had to worry about freeing that memory (if for example it is sending in a tight loop using the same memory context). Removing that unused argument keeps life simpler for users. (This used to be commit a16e4756cd68ca8aab4ffc59d4d9db0b6e44dbd1)
2007-10-10r3278: - rewrote the client side rpc connection code to use lib/socket/Andrew Tridgell1-5/+3
rather than doing everything itself. This greatly simplifies the code, although I really don't like the socket_recv() interface (it always allocates memory for you, which means an extra memcpy in this code) - fixed several bugs in the socket_ipv4.c code, in particular client side code used a non-blocking connect but didn't handle EINPROGRESS, so it had no chance of working. Also fixed the error codes, using map_nt_error_from_unix() - cleaned up and expanded map_nt_error_from_unix() - changed interpret_addr2() to not take a mem_ctx. It makes absolutely no sense to allocate a fixed size 4 byte structure like this. Dozens of places in the code were also using interpret_addr2() incorrectly (precisely because the allocation made no sense) (This used to be commit 7f2c771b0e0e98c5c9e5cf662592d64d34ff1205)
2007-10-10r3136: - Allow specifying socket type when adding smbd serviceJelmer Vernooij1-2/+2
- Make sure a epm_tower struct is completely initialized - Some more minor fixes (This used to be commit d560dcbdb85cb2c6915bdb9e2f82f1872b0f5a52)
2007-10-10r2881: also bind the ldap service on the global catalog service portStefan Metzmacher1-0/+3
(port 3268) metze (This used to be commit 7d17122c71e5a84c4804b5630790ba2d1dac73ee)
2007-10-10r2878: add server sasl supportStefan Metzmacher1-19/+29
(there are a lot of clean ups following later, but the LDAP-BASIC test works :-) metze (This used to be commit 34fe29c04a76f2f53f27adcaf9be2dce8d177516)
2007-10-10r2863: move the logical ldapsrv functions to a seperate fileStefan Metzmacher1-257/+0
metze (This used to be commit 5173c4d4fe78b2ca539e0b650745b63475d48e1d)
2007-10-10r2862: prepare LDAP SASL support for the serverStefan Metzmacher1-12/+188
metze (This used to be commit 9a7505bd74a453b10aa2d40071bb80eb656bc61f)
2007-10-10r2731: use debug level 10 everywhereStefan Metzmacher1-7/+7
metze (This used to be commit a0e4dca3dab1da02edc09fd5f80690ec0b764c17)
2007-10-10r2724: - use ldapsrv_service and set it up with the rootDSE and default ↵Stefan Metzmacher1-13/+42
partition (this is not complete yet) - call asn1_free() after each call metze (This used to be commit 0aa622bdc497e4ae1a23bd47ad9d9bf2757c8fd5)
2007-10-10r2695: revert "Del" renamingSimo Sorce1-7/+7
(This used to be commit ddd74dae8efe4e04b5a56ee9ecd9d4f87f99d104)
2007-10-10r2689: Use consistent naming Del -> DeleteSimo Sorce1-7/+7
Add delete functionality to ldb simple lda server backend add some const in ldap.h (This used to be commit 5ed9a6eb184f34eb572dd81202237042518ec7cd)
2007-10-10r2688: - fix case where listed attributes are askedStefan Metzmacher1-81/+70
- use the return code of the functions and only call ldapsrv_terminate_connection from ldapsrv_recv() or ldapsrv_send() - the rootdse is now a normal partition metze (This used to be commit af1501a28d700f90cd2243fbfdce6527a0f62961)
2007-10-10r2646: - use a talloc destructor to ensure that sockets from the new socketAndrew Tridgell1-1/+1
library are closed on abnormal termination - convert the service.h structures to the new talloc methods (This used to be commit 2dc334a3284858eb1c7190f9687c9b6c879ecc9d)
2007-10-10r2628: got rid of some warnings and converted a few more places to use ↵Andrew Tridgell1-1/+1
hierarchical memory allocation (This used to be commit 26da45a8019a2d6c9ff2ac2a6739c7d0b42b00de)
2007-10-10r2527: - add a dummy for a simple ldb backendStefan Metzmacher1-7/+5
- handle the complete rootDSE search (maybe this will be also a partition module) metze (This used to be commit 6fc904a71cf5305d0c5c260ad1665499ea6c6f9a)
2007-10-10r2526: use LDAP error 53 (unwillingToPerform)Stefan Metzmacher1-6/+6
when the backend didn't implement the call metze (This used to be commit e2fe6858494da311ee9a3f06dd84509572318893)
2007-10-10r2525: fix a search response when the backend didn't support SearchStefan Metzmacher1-1/+16
we return LDAP error 32 (noSuchObject) now instead of a protocol error metze (This used to be commit f9dc34cd0b5e5e05e5ca6b034a7056b34053c4d0)
2007-10-10r2523: - readd rootDSE replyStefan Metzmacher1-76/+86
- add infrastructure start for having multiple directory partitions (backends) metze (This used to be commit 5103e7fe7873c0309461ad471f0529223d7c38eb)
2007-10-10r2509: add a struct ldapsrv_call which is simular to the dcesrv_call_state ↵Stefan Metzmacher1-283/+245
struct and related stuff... metze (This used to be commit dc1f8212ff717765c40ea5668e841db50e636748)
2007-10-10r2447: let the server code use the new lib/socket/ stuffStefan Metzmacher1-18/+37
metze (This used to be commit 2fd577d2417e117a7e8c1a56feb147eae805df34)
2007-10-10r2401: make our LDAP server useable:Stefan Metzmacher1-3/+200
- we need to mark the fd event as writable otherwise we'll never senda packet to the client - a search response have to ended by a LDAP result message - return currentTime, supportedLDAPVersion and dnsHostName for testing ldap -x -s base -h ldap://localhost/ is now works against our LDAP server metze (This used to be commit 3a9ca351166cf56de878e4408e221df299271c32)
2007-10-10r2321: add complately untested LDAP server startStefan Metzmacher1-0/+455
based on volker's patch this is compiled by default but not started by default metze (This used to be commit 5387bc423d4dc669cbac6626f8dd3a5498a6519d)