1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-24 02:04:21 +03:00

21 Commits

Author SHA1 Message Date
Andrew Tridgell
7f2c771b0e r3278: - rewrote the client side rpc connection code to use lib/socket/
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)
2007-10-10 13:04:49 -05:00
Jelmer Vernooij
d560dcbdb8 r3136: - Allow specifying socket type when adding smbd service
- Make sure a epm_tower struct is completely initialized
- Some more minor fixes
2007-10-10 13:02:25 -05:00
Stefan Metzmacher
7d17122c71 r2881: also bind the ldap service on the global catalog service port
(port 3268)

metze
2007-10-10 12:59:42 -05:00
Stefan Metzmacher
34fe29c04a r2878: add server sasl support
(there are a lot of clean ups following later, but the LDAP-BASIC test
 works :-)

metze
2007-10-10 12:59:41 -05:00
Stefan Metzmacher
5173c4d4fe r2863: move the logical ldapsrv functions to a seperate file
metze
2007-10-10 12:59:40 -05:00
Stefan Metzmacher
9a7505bd74 r2862: prepare LDAP SASL support for the server
metze
2007-10-10 12:59:40 -05:00
Stefan Metzmacher
a0e4dca3da r2731: use debug level 10 everywhere
metze
2007-10-10 12:59:27 -05:00
Stefan Metzmacher
0aa622bdc4 r2724: - use ldapsrv_service and set it up with the rootDSE and default partition
(this is not complete yet)

- call asn1_free() after each call

metze
2007-10-10 12:59:26 -05:00
Simo Sorce
ddd74dae8e r2695: revert "Del" renaming 2007-10-10 12:59:24 -05:00
Simo Sorce
5ed9a6eb18 r2689: Use consistent naming Del -> Delete
Add delete functionality to ldb simple lda server backend
add some const in ldap.h
2007-10-10 12:59:22 -05:00
Stefan Metzmacher
af1501a28d r2688: - fix case where listed attributes are asked
- 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
2007-10-10 12:59:22 -05:00
Andrew Tridgell
2dc334a328 r2646: - use a talloc destructor to ensure that sockets from the new socket
library are closed on abnormal termination

- convert the service.h structures to the new talloc methods
2007-10-10 12:59:16 -05:00
Andrew Tridgell
26da45a801 r2628: got rid of some warnings and converted a few more places to use hierarchical memory allocation 2007-10-10 12:59:14 -05:00
Stefan Metzmacher
6fc904a71c r2527: - add a dummy for a simple ldb backend
- handle the complete rootDSE search (maybe this will be also a partition module)

metze
2007-10-10 12:59:02 -05:00
Stefan Metzmacher
e2fe685849 r2526: use LDAP error 53 (unwillingToPerform)
when the backend didn't implement the call

metze
2007-10-10 12:59:02 -05:00
Stefan Metzmacher
f9dc34cd0b r2525: fix a search response when the backend didn't support Search
we return LDAP error 32 (noSuchObject) now instead of a protocol error

metze
2007-10-10 12:59:02 -05:00
Stefan Metzmacher
5103e7fe78 r2523: - readd rootDSE reply
- add infrastructure start for having multiple directory partitions (backends)

metze
2007-10-10 12:59:02 -05:00
Stefan Metzmacher
dc1f8212ff r2509: add a struct ldapsrv_call which is simular to the dcesrv_call_state struct
and related stuff...

metze
2007-10-10 12:59:00 -05:00
Stefan Metzmacher
2fd577d241 r2447: let the server code use the new lib/socket/ stuff
metze
2007-10-10 12:58:54 -05:00
Stefan Metzmacher
3a9ca35116 r2401: make our LDAP server useable:
- 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
2007-10-10 12:58:48 -05:00
Stefan Metzmacher
5387bc423d r2321: add complately untested LDAP server start
based on volker's patch

this is compiled by default but not started by default

metze
2007-10-10 12:58:43 -05:00