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

70 Commits

Author SHA1 Message Date
Stefan Metzmacher
2783bf393f r4000: DATA_BLOB.data is uint8_t * not void * :-)
(thanks abartlet for telling me)

metze
2007-10-10 13:06:13 -05:00
Stefan Metzmacher
3bfb732187 r3962: fix compiler warnings
metze
2007-10-10 13:06:08 -05:00
Stefan Metzmacher
f5ee40d6ce r3783: - don't use make proto for ldb anymore
- split ldh.h out of samba's includes.h

- make ldb_context and ldb_module private to the subsystem

- use ltdb_ prefix for all ldb_tdb functions

metze
2007-10-10 13:05:52 -05:00
Stefan Metzmacher
7a931ea0f4 r3762: - only load the readed bytes into the input buffer
- fix compiler warnings with gcc-4.0

metze
2007-10-10 13:05:52 -05:00
Simo Sorce
71323f424b r3754: merge in ldb modules support from the tmp branch ldbPlugins 2007-10-10 13:05:51 -05:00
Jelmer Vernooij
64826da834 r3733: More build system fixes/features:
- Use .mk files directly (no need for a SMB_*_MK() macro when adding a new SUBSYSTEM, MODULE or BINARY). This allows addition of new modules and subsystems without running configure
 - Add support for generating .dot files with the Samba4 dependency tree (as used by the graphviz and springgraph utilities)
2007-10-10 13:05:47 -05:00
Andrew Tridgell
0d51511d40 r3507: - added deferred replies on sharing violation in pvfs open. The
deferred reply is short-circuited immediately when the file is
  closed by another user, allowing it to be opened by the waiting user.

- added a sane set of timeval manipulation routines

- converted all the events code and code that uses it to use struct
  timeval instead of time_t, which allows for microsecond resolution
  instead of 1 second resolution. This was needed for doing the pvfs
  deferred open code, and is why the patch is so big.
2007-10-10 13:05:23 -05:00
Andrew Tridgell
558de54ec6 r3494: got rid of include/rewrite.h, and split out the dynconfig.h header 2007-10-10 13:05:22 -05:00
Andrew Tridgell
c6f4865744 r3481: split out client.h and events.h 2007-10-10 13:05:20 -05:00
Andrew Tridgell
70d2090f6b r3464: split out registry.h, rap.h and ldap_server.h 2007-10-10 13:05:17 -05:00
Andrew Tridgell
b97e395c81 r3463: separated out some more headers (asn_1.h, messages.h, dlinklist.h and ioctl.h) 2007-10-10 13:05:17 -05:00
Andrew Tridgell
7b7477ac42 r3453: - split out the auth and popt includes
- tidied up some of the system includes

- moved a few more structures back from misc.idl to netlogon.idl and samr.idl now that pidl
  knows about inter-IDL dependencies
2007-10-10 13:05:13 -05:00
Andrew Tridgell
264ce91810 r3447: more include/system/XXX.h include files 2007-10-10 13:05:12 -05:00
Andrew Tridgell
2e25c71853 r3443: the next stage in the include files re-organisation.
I have created the include/system/ directory, which will contain the
wrappers for the system includes for logical subsystems. So far I have
created include/system/kerberos.h and include/system/network.h, which
contain all the system includes for kerberos code and networking code.
These are the included in subsystems that need kerberos or networking
respectively.

Note that this method avoids the mess of #ifdef HAVE_XXX_H in every C
file, instead each C module includes the include/system/XXX.h file for
the logical system support it needs, and the details are kept isolated
in include/system/

This patch also creates a "struct ipv4_addr" which replaces "struct
in_addr" in our code. That avoids every C file needing to import all
the system networking headers.
2007-10-10 13:05:11 -05:00
Andrew Tridgell
c35a8f92c2 r3316: give the LDAP server a chance of operating correctly non-blocking (it
didn't handle EINTR or EAGAIN)
2007-10-10 13:04:53 -05:00
Andrew Tridgell
a16e4756cd r3304: changed the API to lib/socket/ a little.
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.
2007-10-10 13:04:52 -05:00
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
a25d1c4419 r3099: implment sldb_ModifyDN()
metze
2007-10-10 13:02:21 -05:00
Stefan Metzmacher
4b8d90866e r3098: - fix segfault in sldb_Compare()
- be more verbose on the INVALID_DN errstr

metze
2007-10-10 13:02:20 -05:00
Stefan Metzmacher
d92eff2328 r3097: - an empty string is a valid DN
- detect in valid DN's

- some error handling fixes

metze
2007-10-10 13:02:20 -05:00
Simo Sorce
f544f83063 r2908: fix typo 2007-10-10 12:59:47 -05:00
Stefan Metzmacher
1a3b546fce r2892: fix compiler warning
metze
2007-10-10 12:59:44 -05:00
Stefan Metzmacher
071c19c25d r2891: call rootDSE only with LDAP_SEARCH_SCOPE_BASE
this is needed because of the global catalog

metze
2007-10-10 12:59:43 -05:00
Stefan Metzmacher
82e792a0ce r2890: fix segfault when call is destroyed and we dereference it
metze
2007-10-10 12:59:43 -05:00
Stefan Metzmacher
f3f2d1c676 r2886: missing stuff from last commit
metze
2007-10-10 12:59:42 -05:00
Stefan Metzmacher
0f5267c29c r2885: windows doesn't try to do sign or seal by default
metze
2007-10-10 12:59:42 -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
650713f7fe r2880: move the rootdse.ldif template to the source/ dir
so that that it will be easier found by running
./script/rootdse.pl

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