1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-31 12:23:52 +03:00
Commit Graph

240 Commits

Author SHA1 Message Date
Stefan Metzmacher
5c3f3b4072 r2877: the Bind and Unbind function are already moved...
metze
2007-10-10 12:59:41 -05:00
Stefan Metzmacher
0b30ec593f r2876: - more than one rootDSE entry in the database is an error!
- don't say that we provide the same functionality as w2k3

- netbiosname is always upper case hostname

- minor fixes rootdse.pl

metze
2007-10-10 12:59:41 -05:00
Simo Sorce
d878c3c365 r2875: some fixes + (C) note 2007-10-10 12:59:41 -05:00
Simo Sorce
923c936088 r2874: Italian CodeJam commit :-)
implemented rootDSE on ldb with rootdse.ldif and related script to populate a basic rootDSE tree
2007-10-10 12:59:41 -05:00
Stefan Metzmacher
3aa1a29897 r2864: - Bind and Unbind are no directory partition operations
- move Bind Unbind code to a seperate file

metze
2007-10-10 12:59:40 -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
d23335bc14 r2855: fix error codes for Compare
metze
2007-10-10 12:59:39 -05:00
Andrew Tridgell
391b09dad1 r2836: removed a couple of unused variables 2007-10-10 12:59:38 -05:00
Stefan Metzmacher
a8f2fe0ff0 r2825: fix the build
this function names are unsed elsewhere in the code too

metze
2007-10-10 12:59:37 -05:00
Simo Sorce
3af61cb6cd r2820: complete the parsing routing with correct support for escaped chars
clean up simple_ldb functions
2007-10-10 12:59:37 -05:00
Stefan Metzmacher
ae4b99d15c r2816: fix 'Default-First-Site-Name' dn
metze
2007-10-10 12:59:36 -05:00
Simo Sorce
1bc5a94488 r2815: add some more docs
add a nearly complete rfc conformat dn parsing function
2007-10-10 12:59:36 -05:00
Andrew Tridgell
1246f80d80 r2792: got rid of talloc_ldb_alloc() and instead created talloc_realloc_fn(),
so talloc now doesn't contain any ldb specific functions.

allow NULL to be passed to a couple more talloc() functions
2007-10-10 12:59:34 -05:00
Simo Sorce
5f9b58c785 r2758: keep docos handy while developing it 2007-10-10 12:59:31 -05:00
Stefan Metzmacher
991b4777c8 r2757: some minor fixes
metze
2007-10-10 12:59:30 -05:00
Simo Sorce
ba2970c3a4 r2754: Change sldb_trim_dn() to be sldb_fix_dn() as we are not really trimming.
Make it handle all cases:
- remove spaces before and after ','
- remove spaces after '='

TODO: check if there are escape chars in the RFC, they are not handled here yet.

Simo.
2007-10-10 12:59:30 -05:00
Stefan Metzmacher
6825e78e01 r2748: implement sldb_Compare()
Simo: this commit should not conflict much with your changes:-)

metze
2007-10-10 12:59:30 -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
Stefan Metzmacher
60dcba3e91 r2722: remove tmp debug messages
metze
2007-10-10 12:59:26 -05:00
Stefan Metzmacher
e74d3895f0 r2720: -implement sldb_Modify() call
metze
2007-10-10 12:59:26 -05:00
Stefan Metzmacher
7419c6dabb r2714: - add sldb_Add() implementation
- fix some errstr settings

metze
2007-10-10 12:59:25 -05:00
Simo Sorce
ddd74dae8e r2695: revert "Del" renaming 2007-10-10 12:59:24 -05:00
Stefan Metzmacher
1de1beca66 r2693: - send a reply when no attributes there
- add some debug messages

metze
2007-10-10 12:59:23 -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
Stefan Metzmacher
e62cd75d37 r2685: ALLOC_CHECK() after talloc_steal() isn't needed
(thanks simo:-)

metze
2007-10-10 12:59:22 -05:00
Stefan Metzmacher
740347255b r2682: as sambdb holds all search data, don't double free the data
metze
2007-10-10 12:59:21 -05:00
Stefan Metzmacher
67bb491725 r2681: commit the first semi working search implementation
which exports data from a ldb.

I commit this code, so that someone can help me to find a strange
bug

metze
2007-10-10 12:59:21 -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