1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-19 23:33:15 +03:00
Commit Graph

285 Commits

Author SHA1 Message Date
Jelmer Vernooij
47ffbbf674 Install public header files again and include required prototypes. 2008-04-02 04:53:27 +02:00
Jelmer Vernooij
c46b7e90e3 Rename libsamba-config to libsamba-hostconfig. 2008-04-01 15:08:30 +02:00
Andrew Bartlett
eefd46289b Fix more valgrind issues.
This passes down the timeout more consistantly, and ensures that no
matter how the modules screw up, we don't free() the memory we are
going to write into the ASN1 packet until we actually write it out.

Andrew Bartlett
2008-03-29 13:32:15 +11:00
Andrew Bartlett
95314f29a9 Fix some valgrind issues.
These small changes seem to fix some of the early issues in 'make
valgrindtest'

Previously, the subtree_delete code didn't pass on the timeout,
leaving it uninitialised.

The ldap_server/ldap_backend.c change tidies up the talloc hierarchy a
bit.

Andrew Bartlett
2008-03-29 11:18:00 +11:00
Andrew Bartlett
9c9a4731ca Remove useless layer of indirection, where every service called
task_service_init() manually.  Now this is called from service.c for
all services.

Andrew Bartlett
2008-02-04 21:58:29 +11:00
Andrew Bartlett
0d830580e3 Rework service init functions to pass down service name. This is
needed to change prefork behaviour based on what service is being
started.

Andrew Bartlett and David Disseldorp
2008-02-04 17:48:51 +11:00
Jelmer Vernooij
44e1cfd2d0 util: Move asn1 to lib/util to trim down the number of subsystems. 2008-01-15 01:04:38 +01:00
Jelmer Vernooij
18cd08623e r26672: Janitorial: Remove uses of global_loadparm. 2008-01-05 13:06:03 -06:00
Jelmer Vernooij
50c46160d9 r26669: Janitorial: Remove uses of global_loadparm. 2008-01-05 09:42:02 -06:00
Andrew Bartlett
592c10ae11 r26648: Move detection of global catalog captability to a central function, so
this can be shared with the CLDAP server (for the netlogon reply).

Andrew Bartlett
2008-01-03 12:33:35 -06:00
Jelmer Vernooij
1b947fe0e6 r26430: require explicit specification of loadparm context. 2007-12-21 05:49:58 +01:00
Jelmer Vernooij
a35e51871b r26402: Require a talloc context in libnetif. 2007-12-21 05:49:33 +01:00
Jelmer Vernooij
9f975417cc r26401: Don't cache interfaces context in libnetif. 2007-12-21 05:49:32 +01:00
Jelmer Vernooij
78bb444b4b r26385: Integrate gensec-socket into gensec. 2007-12-21 05:49:19 +01:00
Jelmer Vernooij
e452cb2859 r26325: Remove use of global_loadparm in netif. 2007-12-21 05:48:37 +01:00
Jelmer Vernooij
6fd0d9d3b7 r26313: Fix more uses of static loadparm. 2007-12-21 05:48:25 +01:00
Jelmer Vernooij
99113075c4 r26266: Remove more global_loadparm uses. 2007-12-21 05:47:42 +01:00
Jelmer Vernooij
b9e3a4862e r26260: Store loadparm context in gensec context. 2007-12-21 05:47:34 +01:00
Jelmer Vernooij
7280c1e941 r26252: Specify loadparm_context explicitly when creating sessions. 2007-12-21 05:47:29 +01:00
Jelmer Vernooij
2c6b755309 r26250: Avoid global_loadparm in a couple more places. 2007-12-21 05:47:28 +01:00
Jelmer Vernooij
a33a553054 r26238: Add a loadparm context parameter to torture_context, remove more uses of global_loadparm. 2007-12-21 05:47:20 +01:00
Jelmer Vernooij
1386c5c925 r26237: Add loadparm context to the server service interface. 2007-12-21 05:47:15 +01:00
Jelmer Vernooij
84892d030d r26234: More global_loadparm fixes. 2007-12-21 05:47:12 +01:00
Jelmer Vernooij
37d05fdc7b r26229: Set loadparm context as opaque pointer in ldb, remove more uses of global_loadparm. 2007-12-21 05:47:06 +01:00
Jelmer Vernooij
ba75f1613a r26228: Store loadparm context in auth context, move more loadparm_contexts up the call stack. 2007-12-21 05:47:05 +01:00
Jelmer Vernooij
0721a07aad r26227: Make loadparm_context part of a server task, move loadparm_contexts further up the call stack. 2007-12-21 05:47:04 +01:00
Andrew Bartlett
230a60c191 r26193: In the LDAP server, use the new 'controls_decoded' element to
determine if this (possibly critical) control has been decoded.  This
allows us to return an error, rather than just dropping the socket.

Andrew Bartlett
2007-12-21 05:46:44 +01:00
Jelmer Vernooij
abf2600a04 r26136: Attempt to fix dependencies for auth. 2007-12-21 05:46:18 +01:00
Jelmer Vernooij
56dfcb4f2f r26003: Split up DB_WRAP, as first step in an attempt to sanitize dependencies. 2007-12-21 05:45:40 +01:00
Andrew Bartlett
ed57862b90 r25960: Enable checks on the validity of the search base on sam.ldb in Samba4.
Remove bogus check to return NO_SUCH_ENTRY in ldap_backend.c, as this
error is now correctly emited from ldb.

Andrew Bartlett
2007-12-21 05:45:19 +01:00
Andrew Bartlett
54f4c8ba61 r25921: Now also listen on ldapi by default in the LDAP server
Create a phpLDAPadmin configuration file example to use ldapi to talk
to Samba4

Andrew Bartlett
2007-12-21 05:45:03 +01:00
Jelmer Vernooij
190d73b44b r25548: Convert to standard bool type. 2007-10-10 15:07:53 -05:00
Jelmer Vernooij
3468952e77 r25446: Merge some changes I made on the way home from SFO:
2007-09-29 More higher-level passing around of lp_ctx.
2007-09-29 Fix warning.
2007-09-29 Pass loadparm contexts on a higher level.
2007-09-29 Avoid using global loadparm context.
2007-10-10 15:07:34 -05:00
Stefan Metzmacher
b945aaa9da r25428: forward declarations of enums are not portable,
so pass struct cli_credentials *cred instead of
enum credentials_use_kerberos use_kerberos.

metze
2007-10-10 15:07:31 -05:00
Jelmer Vernooij
3fcc960839 r25398: Parse loadparm context to all lp_*() functions. 2007-10-10 15:07:25 -05:00
Andrew Bartlett
4cc4ed7719 r25299: Modify the provision script to take an additional argument: --server-role
This must be set to either 'domain controller', 'domain member' or 'standalone'.

The default for the provision now changes to 'standalone'.

This is not because Samba4 is particularlly useful in that mode, but
because we still want a positive sign from the administrator that we
should advertise as a DC.

We now do more to ensure the 'standalone' and 'member server'
provision output is reasonable, and try not to set odd things into the
database that only belong for the DC.

Andrew Bartlett
2007-10-10 15:07:09 -05:00
Jelmer Vernooij
abe8349f9b r25026: Move param/param.h out of includes.h 2007-10-10 15:05:38 -05:00
Jelmer Vernooij
0bcb21ed74 r25001: Fix more C++ and other warnings, fix some of the indentation with ts=4 lines that I accidently added earlier. 2007-10-10 15:05:28 -05:00
Jelmer Vernooij
31993cf67b r24780: More work allowing libutil to be used by external users. 2007-10-10 15:03:10 -05:00
Jelmer Vernooij
1ce32673d9 r24712: No longer expose the 'BOOL' data type in any interfaces. 2007-10-10 15:02:54 -05:00
Andrew Bartlett
46abf82675 r23849: ldap_server: Provide more info in debug traces
blackbox tests:  increase test coverage by running more options.

Andrew Bartlett
2007-10-10 14:59:24 -05:00
Andrew Bartlett
6679003c05 r23816: A little more static, but leave the dead code testjoin.c as documentation.
Andrew Bartlett
2007-10-10 14:59:23 -05:00
Andrew Tridgell
fcf38a38ac r23792: convert Samba4 to GPLv3
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
2007-10-10 14:59:12 -05:00
Andrew Bartlett
3f3da9c471 r23762: Fix DN renames over LDAP, and instrument the partition module. Add a
test to prove the behaviour of LDAP renames etc.

Fix LDB to return correct error code when failing to rename one DN
onto another.

Andrew Bartlett
2007-10-10 14:59:11 -05:00
Andrew Tridgell
26cf849408 r23036: error checking on asn1_init() failure 2007-10-10 14:52:43 -05:00
Andrew Tridgell
3db49c2ec9 r23030: finally fixed up our asn1 code to use better memory allocation. This
should allow us to fix some long standing memory leaks.
2007-10-10 14:52:42 -05:00
Stefan Metzmacher
c3cc03ffb2 r22403: this dependencies should be private
metze
2007-10-10 14:51:14 -05:00
Andrew Bartlett
eef710668f r21806: I've been working over the last week to fix up the LDAP backend for
Samba4.  This only broke on global catalog queries, which turned out to
be due to changes in the partitions module that metze needed for his
DRSUAPI work.

I've reworked partitions.c to always include the 'problematic' control,
and therefore demonstrated that this is the issue.  This ensures
consistency, and should help with finding issues like this in future.

As this control (DSDB_CONTROL_CURRENT_PARTITION_OID) is not intended to
be linearised, I've added logic to allow it to be skipped when creating
network packets.

I've likewise make our LDAP server skip unknown controls, when marked
'not critical' on it's input, rather than just dropping the entire
request.  I need some help to generate a correct error packet when it is
marked critical.

Further work could perhaps be to have the ldap_encode routine return a
textual description of what failed to encode, as that would have saved
me a lot of time...

Andrew Bartlett
2007-10-10 14:49:29 -05:00
Stefan Metzmacher
d40465470f r21511: this seems to be the nicer fix for the problem with
the windows 2000 LDAP client

metze
2007-10-10 14:48:47 -05:00
Andrew Bartlett
2b3df7f38d r21496: A number of ldb control and LDAP changes, surrounding the
'phantom_root' flag in the search_options control

- Add in support for LDB controls to the js layer
- Test the behaviour
- Implement support for the 'phantom_root' flag in the partitions module
- Make the LDAP server set the 'phantom_root' flag in the search_options control
  - This replaces the global_catalog flag passed down as an opaque pointer
- Rework the string-format control parsing function into
  ldb_parse_control_strings(), returning errors by ldb_errorstring()
  method, rather than with printf to stderr
- Rework some of the ldb_control handling logic

Andrew Bartlett
2007-10-10 14:48:44 -05:00