samba.git
13 years agos4-ldb: use ldb_set_modules_dir() to load additional ldb modules
Andrew Tridgell [Mon, 1 Nov 2010 11:48:16 +0000 (22:48 +1100)]
s4-ldb: use ldb_set_modules_dir() to load additional ldb modules

this allows ldb_wrap to enable s4 modules in a standalone ldb install
without any additional installation

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Mon Nov  1 13:47:33 UTC 2010 on sn-devel-104

13 years agos4-ldb: enable version checking in dsdb ldb modules
Andrew Tridgell [Mon, 1 Nov 2010 11:30:45 +0000 (22:30 +1100)]
s4-ldb: enable version checking in dsdb ldb modules

13 years agos4-ldb: enable ldb module version checking
Andrew Tridgell [Mon, 1 Nov 2010 11:30:23 +0000 (22:30 +1100)]
s4-ldb: enable ldb module version checking

13 years agos4-ldb: added support for ldb module version checking
Andrew Tridgell [Mon, 1 Nov 2010 11:28:59 +0000 (22:28 +1100)]
s4-ldb: added support for ldb module version checking

13 years agos3:winbindd: fix query_user for users with NULL full name.
Michael Adam [Mon, 1 Nov 2010 11:33:43 +0000 (12:33 +0100)]
s3:winbindd: fix query_user for users with NULL full name.

Not sure whether query_user ever sends a NULL full name.
Query Display Info does, and it does not harm to add the
check here, too.

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Mon Nov  1 13:03:33 UTC 2010 on sn-devel-104

13 years agos3:winbindd: fix query_user_list for users with NULL full_name
Michael Adam [Mon, 1 Nov 2010 11:31:34 +0000 (12:31 +0100)]
s3:winbindd: fix query_user_list for users with NULL full_name

13 years agos4:setup/spn_update_list - the DNS SPN is only used in DNS mode
Matthias Dieter Wallnöfer [Sun, 31 Oct 2010 21:42:38 +0000 (22:42 +0100)]
s4:setup/spn_update_list - the DNS SPN is only used in DNS mode

Not all DCs are automatically DNS servers.

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Mon Nov  1 12:20:36 UTC 2010 on sn-devel-104

13 years agos4:ldap.py/sam.py - simplify the objectclass specifications
Matthias Dieter Wallnöfer [Sun, 31 Oct 2010 21:39:49 +0000 (22:39 +0100)]
s4:ldap.py/sam.py - simplify the objectclass specifications

- For user accounts we only need to specify "user" ("person" is an inherited
  objectclass)
- Don't use the brackets when we have only one objectclass specified

13 years agos4:sam.py - test "objectSid" modification lockdown
Matthias Dieter Wallnöfer [Sun, 31 Oct 2010 21:34:22 +0000 (22:34 +0100)]
s4:sam.py - test "objectSid" modification lockdown

13 years agos4:samldb LDB module - unify objectSid assignment error messages
Matthias Dieter Wallnöfer [Mon, 1 Nov 2010 11:33:00 +0000 (12:33 +0100)]
s4:samldb LDB module - unify objectSid assignment error messages

13 years agos4:samldb LDB module - deny "objectSid" modifications
Matthias Dieter Wallnöfer [Sun, 31 Oct 2010 21:31:53 +0000 (22:31 +0100)]
s4:samldb LDB module - deny "objectSid" modifications

The same as with Windows

13 years agos4:provision - adapt the "provision" so that SIDs are only set on entry creation
Matthias Dieter Wallnöfer [Mon, 1 Nov 2010 10:30:19 +0000 (11:30 +0100)]
s4:provision - adapt the "provision" so that SIDs are only set on entry creation

SID modifications are denied.

13 years agos4:torture - suppress printf "%llu" on uint64_t variables warnings
Matthias Dieter Wallnöfer [Mon, 1 Nov 2010 10:17:37 +0000 (11:17 +0100)]
s4:torture - suppress printf "%llu" on uint64_t variables warnings

The signed/unsignedness does match (always unsigned). The bitlength (64 bit) on
all regular platforms does also. Therefore simply add a cast to
"unsigned long long".

13 years agoldb:tools/ldbtest.c - fix build warning
Matthias Dieter Wallnöfer [Mon, 1 Nov 2010 10:03:38 +0000 (11:03 +0100)]
ldb:tools/ldbtest.c - fix build warning

Cause was an incomplete declaration.

13 years agos4-ldb: fixed build of paged searches
Andrew Tridgell [Mon, 1 Nov 2010 07:46:02 +0000 (18:46 +1100)]
s4-ldb: fixed build of paged searches

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Mon Nov  1 09:41:27 UTC 2010 on sn-devel-104

13 years agos4-ldb: fixed build of oLschema2ldif
Andrew Tridgell [Mon, 1 Nov 2010 07:45:44 +0000 (18:45 +1100)]
s4-ldb: fixed build of oLschema2ldif

13 years agos4-ldb: convert existing ldb tools to use new command line hooks
Andrew Tridgell [Mon, 1 Nov 2010 07:45:25 +0000 (18:45 +1100)]
s4-ldb: convert existing ldb tools to use new command line hooks

the usage() function needs to take a ldb context, as the popt_options
is specific to the ldb context

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

13 years agos4-ldb: added ldb command line hook support
Andrew Tridgell [Mon, 1 Nov 2010 04:41:07 +0000 (15:41 +1100)]
s4-ldb: added ldb command line hook support

ldb modules can now add hooks to the command line processing for ldb
tools

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

13 years agos4-ldb: added samba_extensions ldb module
Andrew Tridgell [Mon, 1 Nov 2010 07:43:46 +0000 (18:43 +1100)]
s4-ldb: added samba_extensions ldb module

this module hooks into the ldb command line processing, to add extra
command line options and initialisation of samba4 internal subsystems
such as gensec

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

13 years agos4-ldb: moved the ldb_ildap backend into lib/ldb-samba
Andrew Tridgell [Mon, 1 Nov 2010 07:42:39 +0000 (18:42 +1100)]
s4-ldb: moved the ldb_ildap backend into lib/ldb-samba

this backend is samba4 specific

13 years agos4-ldb: added support for general ldb hooks in modules
Andrew Tridgell [Mon, 1 Nov 2010 07:41:32 +0000 (18:41 +1100)]
s4-ldb: added support for general ldb hooks in modules

this allows a ldb module to register a hook function called at various
stages of processing. It will be initially used for ldb command line
hooks, but should work generally.

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

13 years agos4-ldb: added an override flag to ldb_register_backend()
Andrew Tridgell [Mon, 1 Nov 2010 05:42:21 +0000 (16:42 +1100)]
s4-ldb: added an override flag to ldb_register_backend()

this will be used to allow a system ldb build with an ldb backend to
have its ldap handler overridden by the s4 one

13 years agos4-ldb: it is not an error for the modules directory to not exist
Andrew Tridgell [Mon, 1 Nov 2010 05:07:35 +0000 (16:07 +1100)]
s4-ldb: it is not an error for the modules directory to not exist

13 years agos4-modules: get rid of the remaining static prototypes for modules
Andrew Tridgell [Mon, 1 Nov 2010 04:38:37 +0000 (15:38 +1100)]
s4-modules: get rid of the remaining static prototypes for modules

the waf build now generates the prototype declarations for us

13 years agowaf: removed the module aliases code
Andrew Tridgell [Mon, 1 Nov 2010 04:28:29 +0000 (15:28 +1100)]
waf: removed the module aliases code

This is not needed with the new ldb modules approacg

13 years agos4-dsdb: convert the rest of the ldb modules to the new module type
Andrew Tridgell [Mon, 1 Nov 2010 04:28:02 +0000 (15:28 +1100)]
s4-dsdb: convert the rest of the ldb modules to the new module type

13 years agos4-test: we don't need to set LDB_MODULES_PATH any more
Andrew Tridgell [Mon, 1 Nov 2010 04:27:30 +0000 (15:27 +1100)]
s4-test: we don't need to set LDB_MODULES_PATH any more

13 years agos4-ldb: removed the old ldb module loading style
Andrew Tridgell [Mon, 1 Nov 2010 04:00:11 +0000 (15:00 +1100)]
s4-ldb: removed the old ldb module loading style

this gets rid of some particularly obscure cpp macros for module lists

13 years agos4-ldb: convert the rest of the ldb modules to the new style
Andrew Tridgell [Mon, 1 Nov 2010 03:59:28 +0000 (14:59 +1100)]
s4-ldb: convert the rest of the ldb modules to the new style

13 years agos4-process_model: use the static module prototyping
Andrew Tridgell [Mon, 1 Nov 2010 03:58:32 +0000 (14:58 +1100)]
s4-process_model: use the static module prototyping

remove the manual prototyping of static init functions

13 years agowaf: added automatic prototyping of static module init functions
Andrew Tridgell [Mon, 1 Nov 2010 03:57:57 +0000 (14:57 +1100)]
waf: added automatic prototyping of static module init functions

this avoids the need to manually list all our static init functions in
the code

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

13 years agos4-dsdb: convert the simple_ldap_map module to the new module style
Andrew Tridgell [Mon, 1 Nov 2010 01:39:49 +0000 (12:39 +1100)]
s4-dsdb: convert the simple_ldap_map module to the new module style

13 years agos4-dsdb: convert the extended_dn_out module to the new ldb module style
Andrew Tridgell [Mon, 1 Nov 2010 01:39:06 +0000 (12:39 +1100)]
s4-dsdb: convert the extended_dn_out module to the new ldb module style

13 years agos4-ldb: convert the openldap ldb backend to the new style of module
Andrew Tridgell [Mon, 1 Nov 2010 01:37:35 +0000 (12:37 +1100)]
s4-ldb: convert the openldap ldb backend to the new style of module

13 years agos4-ldb: convert the ildap module to the new type of ldb module
Andrew Tridgell [Mon, 1 Nov 2010 01:33:11 +0000 (12:33 +1100)]
s4-ldb: convert the ildap module to the new type of ldb module

this gets rid of the module aliases, which caused issues on some
systems (eg. gentoo).

13 years agos4-ldb: support a new type of ldb module loading
Andrew Tridgell [Mon, 1 Nov 2010 01:32:18 +0000 (12:32 +1100)]
s4-ldb: support a new type of ldb module loading

this supports module loading in ldb which uses the approach of "load
all modules in a directory". This is much more flexible than the
current module loading, as it will allow us to load modules for
command line parsing and authentication.

Modules are loaded from a colon separated path, in the environment
variable LDB_MODULES_PATH. If unset, it defaults to LDB_MODULESDIR.

Within each directory modules are loaded recursively (traversing down
the directory tree). The device/inode number of each module is
remembered to prevent us loading a module twice.

Each module is checked for a ldb_init_module() function with
dlsym(). If found, it is called with the ldb module version as an
argument.

13 years agowaf: added module_init_name parameter to SAMBA_MODULE()
Andrew Tridgell [Mon, 1 Nov 2010 01:29:04 +0000 (12:29 +1100)]
waf: added module_init_name parameter to SAMBA_MODULE()

this will be used for ldb module loading

13 years agotdb: Use waf by default.
Jelmer Vernooij [Mon, 1 Nov 2010 05:18:55 +0000 (06:18 +0100)]
tdb: Use waf by default.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Nov  1 06:04:14 UTC 2010 on sn-devel-104

13 years agos4-dsdb_schema: Use DRSUAPI_ATTID_INVALID instead of 0xFFFFFFFF magic value
Kamen Mazdrashki [Sun, 31 Oct 2010 22:46:58 +0000 (00:46 +0200)]
s4-dsdb_schema: Use DRSUAPI_ATTID_INVALID instead of 0xFFFFFFFF magic value

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Mon Nov  1 00:36:20 UTC 2010 on sn-devel-104

13 years agos4-druspia.idl: rename DRSUAPI_ATTID_NONE to DRSUAPI_ATTID_INVALID
Kamen Mazdrashki [Fri, 29 Oct 2010 20:46:05 +0000 (23:46 +0300)]
s4-druspia.idl: rename DRSUAPI_ATTID_NONE to DRSUAPI_ATTID_INVALID

0xFFFFFFFF is actually an invalid value for an ATTID
and *_INVALID will make it more easy to notice in logs

13 years agoidl: Use DRSUAPI_ATTID_ prefix instead of DRSUAPI_ATTRIBUTE_ for ATTID values
Kamen Mazdrashki [Thu, 28 Oct 2010 23:22:35 +0000 (02:22 +0300)]
idl: Use DRSUAPI_ATTID_ prefix instead of DRSUAPI_ATTRIBUTE_ for ATTID values

Those values are actually ATTID values and such, they are used
for ATTIDs for Attributes, Classes and Syntaxes.

13 years agos4-server: avoid using environ as it is not portable
Andrew Tridgell [Sun, 31 Oct 2010 22:47:12 +0000 (09:47 +1100)]
s4-server: avoid using environ as it is not portable

we can just use execv() instead, which passes through the environment,
which is all we need

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Sun Oct 31 23:53:49 UTC 2010 on sn-devel-104

13 years agounit tests: remove trailling white spaces
Matthieu Patou [Sun, 31 Oct 2010 22:05:03 +0000 (01:05 +0300)]
unit tests: remove trailling white spaces

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sun Oct 31 23:10:55 UTC 2010 on sn-devel-104

13 years agounit tests: allow make test to correctly and quickly exit in case of problem while...
Matthieu Patou [Sun, 31 Oct 2010 22:00:46 +0000 (01:00 +0300)]
unit tests: allow make test to correctly and quickly exit in case of problem while provisionning a test environment

13 years agoreplace/talloc: Avoid automatically pulling in new configure/Makefile,
Jelmer Vernooij [Sun, 31 Oct 2010 21:43:48 +0000 (22:43 +0100)]
replace/talloc: Avoid automatically pulling in new configure/Makefile,
as these files are checked in, and the source might not be available.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Oct 31 22:27:56 UTC 2010 on sn-devel-104

13 years agos4:sam.py - test the "sAMAccountName" attribute
Matthias Dieter Wallnöfer [Sun, 31 Oct 2010 20:13:55 +0000 (21:13 +0100)]
s4:sam.py - test the "sAMAccountName" attribute

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sun Oct 31 21:02:48 UTC 2010 on sn-devel-104

13 years agos4:samldb LDB module - validate "sAMAccountName" modifications
Matthias Dieter Wallnöfer [Sun, 31 Oct 2010 20:04:26 +0000 (21:04 +0100)]
s4:samldb LDB module - validate "sAMAccountName" modifications

Also the "sAMAccountName" attribute is protected against corruption (e.g. two
accounts with the same name).

13 years agos4:netlogon RPC server - "LogonGetDomainInfo" - always check the LDB return codes
Matthias Dieter Wallnöfer [Sun, 31 Oct 2010 18:41:12 +0000 (19:41 +0100)]
s4:netlogon RPC server - "LogonGetDomainInfo" - always check the LDB return codes

Plus some cosmetic indentation fixes

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sun Oct 31 19:26:45 UTC 2010 on sn-devel-104

13 years agos4:libnet_join.c - only write the really essential SPNs
Matthias Dieter Wallnöfer [Sun, 31 Oct 2010 18:11:34 +0000 (19:11 +0100)]
s4:libnet_join.c - only write the really essential SPNs

If we are a DC then the others are added by the "samba_spnupdate" script.

This fixes bug #7614.

13 years agos4:provision - remove the "servicePrincipalName" creation on the DC object
Matthias Dieter Wallnöfer [Sun, 31 Oct 2010 13:00:14 +0000 (14:00 +0100)]
s4:provision - remove the "servicePrincipalName" creation on the DC object

This is now done by the "samba_spnupdate" script.

13 years agos4:setup/spn_update_list - reorder and update with other SPNs
Matthias Dieter Wallnöfer [Sun, 31 Oct 2010 13:36:41 +0000 (14:36 +0100)]
s4:setup/spn_update_list - reorder and update with other SPNs

13 years agos4:scripting/bin/samba_spnupdate - also support adding all possible "servicePrincipal...
Matthias Dieter Wallnöfer [Sun, 31 Oct 2010 13:07:52 +0000 (14:07 +0100)]
s4:scripting/bin/samba_spnupdate - also support adding all possible "servicePrincipalName"s

13 years agos4:dsdb/dns/dns_update.c - increase the timeout for the SPN and DNS update scripts
Matthias Dieter Wallnöfer [Sun, 31 Oct 2010 13:46:15 +0000 (14:46 +0100)]
s4:dsdb/dns/dns_update.c - increase the timeout for the SPN and DNS update scripts

Sometimes it can take longer than 10 sec.

13 years agos4:netlogon RPC server - point out that the "LogonGetDomainInfo" "servicePrincipalNam...
Matthias Dieter Wallnöfer [Sun, 31 Oct 2010 11:30:52 +0000 (12:30 +0100)]
s4:netlogon RPC server - point out that the "LogonGetDomainInfo" "servicePrincipalName" generation is still needed

13 years agos4:sam.py - add a test for the "dNSHostName" - "servicePrincipalName" update mechanism
Matthias Dieter Wallnöfer [Sun, 31 Oct 2010 16:24:08 +0000 (17:24 +0100)]
s4:sam.py - add a test for the "dNSHostName" - "servicePrincipalName" update mechanism

13 years agos4:samldb LDB module - implement the "dNSHostName" - "servicePrincipalName" change...
Matthias Dieter Wallnöfer [Sun, 31 Oct 2010 11:07:04 +0000 (12:07 +0100)]
s4:samldb LDB module - implement the "dNSHostName" - "servicePrincipalName" change trigger

When the "dNSHostName" changes then also the "servicePrincipalName"s are
changed as well.

13 years agos4:samldb LDB module - check for the number of results after a search operation
Matthias Dieter Wallnöfer [Sun, 31 Oct 2010 10:03:59 +0000 (11:03 +0100)]
s4:samldb LDB module - check for the number of results after a search operation

Should always be done.

13 years agos4:drsuapi RPC server - fix counter variables
Matthias Dieter Wallnöfer [Sun, 31 Oct 2010 10:01:00 +0000 (11:01 +0100)]
s4:drsuapi RPC server - fix counter variables

13 years agotalloc: Look harder for waf.
Jelmer Vernooij [Sun, 31 Oct 2010 17:24:02 +0000 (18:24 +0100)]
talloc: Look harder for waf.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Oct 31 18:06:16 UTC 2010 on sn-devel-104

13 years agoreplace: Look harder for waf.
Jelmer Vernooij [Sun, 31 Oct 2010 17:19:19 +0000 (18:19 +0100)]
replace: Look harder for waf.

13 years agobuild: In some case the flags for the sun studio linker are wrong
Matthieu Patou [Sun, 31 Oct 2010 15:50:15 +0000 (18:50 +0300)]
build: In some case the flags for the sun studio linker are wrong

In this case we test if the -Wl,-h,%s works and if so use this form

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sun Oct 31 16:35:17 UTC 2010 on sn-devel-104

13 years agobuild: check that if we provide -liconv we can build shared libs
Matthieu Patou [Sun, 31 Oct 2010 13:24:46 +0000 (16:24 +0300)]
build: check that if we provide -liconv we can build shared libs

On Solaris with sun studio compiling an executable with -liconv even if
there is no libiconv.so or libiconv.a will work but not for a shared
lib.

This problem leads to build problem as the linker won't be able to find
libiconv when building shared lib as liconv is wrongly specified

13 years agos4-auth: added a dependency on com_err
Andrew Tridgell [Sun, 31 Oct 2010 12:30:50 +0000 (23:30 +1100)]
s4-auth: added a dependency on com_err

this helps with the gentoo build. The problem is that without the
depenency, we don't add the cflags from the pkgconfig for com_err to
the build of auth/gensec. That really reflects a more general problem
with propogation of include dependencies, but this simple fix should
be enough for now.

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Sun Oct 31 13:13:33 UTC 2010 on sn-devel-104

13 years agoreplace: Build using waf by default.
Jelmer Vernooij [Sun, 31 Oct 2010 01:44:32 +0000 (02:44 +0100)]
replace: Build using waf by default.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Oct 31 02:45:21 UTC 2010 on sn-devel-104

13 years agotalloc: Switch over to using waf as the default build system for the standalone build.
Jelmer Vernooij [Sun, 31 Oct 2010 01:31:59 +0000 (02:31 +0100)]
talloc: Switch over to using waf as the default build system for the standalone build.

13 years agos4: Remove the old perl/m4/make/mk-based build system.
Jelmer Vernooij [Sun, 31 Oct 2010 01:17:29 +0000 (02:17 +0100)]
s4: Remove the old perl/m4/make/mk-based build system.

The new waf-based build system now has all the same functionality, and
the old build system has been broken for quite some time.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Oct 31 02:01:44 UTC 2010 on sn-devel-104

13 years agos4:samldb LDB module - make the "userAccountControl" and "groupType" modify handlers...
Matthias Dieter Wallnöfer [Sat, 30 Oct 2010 17:56:54 +0000 (19:56 +0200)]
s4:samldb LDB module - make the "userAccountControl" and "groupType" modify handlers separate functions

It's easier to maintain afterwards

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Oct 30 19:07:20 UTC 2010 on sn-devel-104

13 years agos4:samldb LDB module - add a new function which handles special cases for single...
Matthias Dieter Wallnöfer [Sat, 30 Oct 2010 17:37:30 +0000 (19:37 +0200)]
s4:samldb LDB module - add a new function which handles special cases for single-valued attribute on SAM modifications

This saves quiet some work.

13 years agos4:samldb LDB module - primary group change - free temporary messages to save memory
Matthias Dieter Wallnöfer [Sat, 30 Oct 2010 17:56:24 +0000 (19:56 +0200)]
s4:samldb LDB module - primary group change - free temporary messages to save memory

13 years agos4:sam.py - add a short double swap "primaryGroupID" test
Matthias Dieter Wallnöfer [Sat, 30 Oct 2010 15:48:51 +0000 (17:48 +0200)]
s4:sam.py - add a short double swap "primaryGroupID" test

It's not really meaningful but can happen.

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Oct 30 18:15:31 UTC 2010 on sn-devel-104

13 years agos4:samldb LDB module - adapt the "samldb_prim_group_change" trigger to support multip...
Matthias Dieter Wallnöfer [Sat, 30 Oct 2010 15:43:17 +0000 (17:43 +0200)]
s4:samldb LDB module - adapt the "samldb_prim_group_change" trigger to support multiple "primaryGroupID" modification entries

13 years agos4:samr RPC server - the LDB error codes for adding or deleting a group member have...
Matthias Dieter Wallnöfer [Sat, 30 Oct 2010 16:32:43 +0000 (18:32 +0200)]
s4:samr RPC server - the LDB error codes for adding or deleting a group member have changed

13 years agos4:sam.py - enhance "member" tests
Matthias Dieter Wallnöfer [Sat, 30 Oct 2010 16:09:12 +0000 (18:09 +0200)]
s4:sam.py - enhance "member" tests

13 years agos4:samldb LDB module - "member" trigger
Matthias Dieter Wallnöfer [Sat, 30 Oct 2010 15:12:48 +0000 (17:12 +0200)]
s4:samldb LDB module - "member" trigger

- adapt the "samldb_member_check" trigger to support multiple "member"
  modification entries. There can exist special modification messages which
  delete and add members in one operation
- support the right error codes when modifications do fail
  (ERR_ENTRY_ALREADY_EXISTS, ERR_UNWILLING_TO_PERFORM)

13 years agos4:rpc_server/common.h - quiet compilation warnings
Matthias Dieter Wallnöfer [Sat, 30 Oct 2010 15:55:56 +0000 (17:55 +0200)]
s4:rpc_server/common.h - quiet compilation warnings

13 years agoprovision: fix wrong tests
Matthieu Patou [Sat, 30 Oct 2010 16:42:50 +0000 (20:42 +0400)]
provision: fix wrong tests

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sat Oct 30 17:31:23 UTC 2010 on sn-devel-104

13 years agobuild: Remove zlib from the cache if we failed to pass all the tests
Matthieu Patou [Sat, 30 Oct 2010 16:47:45 +0000 (20:47 +0400)]
build: Remove zlib from the cache if we failed to pass all the tests

This will avoid problems with redefinition of libs tests

13 years agobuild: make this test darwin only as it mess a bit more the freebsd build
Matthieu Patou [Sat, 30 Oct 2010 16:22:22 +0000 (20:22 +0400)]
build: make this test darwin only as it mess a bit more the freebsd build

13 years agoreplace: Fix formatting.
Jelmer Vernooij [Sat, 30 Oct 2010 15:43:48 +0000 (17:43 +0200)]
replace: Fix formatting.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Oct 30 16:32:15 UTC 2010 on sn-devel-104

13 years agoldb: Drop autoconf-based build system.
Jelmer Vernooij [Sat, 30 Oct 2010 14:17:58 +0000 (16:17 +0200)]
ldb: Drop autoconf-based build system.

13 years agotevent: Drop autoconf-based build system for standalone build.
Jelmer Vernooij [Sat, 30 Oct 2010 14:16:33 +0000 (16:16 +0200)]
tevent: Drop autoconf-based build system for standalone build.

13 years agoreplace: Avoid autoproto as it breaks standalone builds.
Jelmer Vernooij [Sat, 30 Oct 2010 14:01:00 +0000 (16:01 +0200)]
replace: Avoid autoproto as it breaks standalone builds.

Automatic prototype generation uses ../../source4/script/mkproto.pl.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
13 years agoreplace: Only build replace-test in standalone build.
Jelmer Vernooij [Sat, 30 Oct 2010 13:59:14 +0000 (15:59 +0200)]
replace: Only build replace-test in standalone build.

This allows turning libreplace-test back into a subsystem.

13 years agos4:local_password LDB module - fix typos
Matthias Dieter Wallnöfer [Sat, 30 Oct 2010 14:58:34 +0000 (16:58 +0200)]
s4:local_password LDB module - fix typos

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Oct 30 15:41:46 UTC 2010 on sn-devel-104

13 years agos4:resolve_oids LDB module - fix counter types
Matthias Dieter Wallnöfer [Sat, 30 Oct 2010 14:46:13 +0000 (16:46 +0200)]
s4:resolve_oids LDB module - fix counter types

13 years agos4:partition_init LDB module - fix counter type
Matthias Dieter Wallnöfer [Sat, 30 Oct 2010 14:41:52 +0000 (16:41 +0200)]
s4:partition_init LDB module - fix counter type

13 years agos4:extended_dn_store LDB module - fix counter types
Matthias Dieter Wallnöfer [Sat, 30 Oct 2010 14:35:12 +0000 (16:35 +0200)]
s4:extended_dn_store LDB module - fix counter types

13 years agoprovision: when deriving netbiosname from hostname force the netbiosname to be compliant
Matthieu Patou [Thu, 28 Oct 2010 09:09:51 +0000 (13:09 +0400)]
provision: when deriving netbiosname from hostname force the netbiosname to be compliant

It means no space/_/-/@.... and less than 16 chars.

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sat Oct 30 14:26:22 UTC 2010 on sn-devel-104

13 years agobuild: strip -single_module when doing bundle on mac OS X
Matthieu Patou [Sat, 30 Oct 2010 12:51:20 +0000 (16:51 +0400)]
build: strip -single_module when doing bundle on mac OS X

13 years agobuild: set shared libraries flags correctly on mac os X
Matthieu Patou [Sat, 30 Oct 2010 12:50:33 +0000 (16:50 +0400)]
build: set shared libraries flags correctly on mac os X

13 years agotalloc.3: Remove documentation for deprecated talloc_append_string,
Jelmer Vernooij [Sat, 30 Oct 2010 13:42:41 +0000 (15:42 +0200)]
talloc.3: Remove documentation for deprecated talloc_append_string,
consistent with other deprecated functionality.

13 years agos4-smbd: initialise process models in smbtorture before use
Andrew Tridgell [Sat, 30 Oct 2010 12:42:27 +0000 (23:42 +1100)]
s4-smbd: initialise process models in smbtorture before use

the spoolss notify test needs to setup the process models before use

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Sat Oct 30 13:32:09 UTC 2010 on sn-devel-104

13 years agos4-smbd: leave the single process model as internal
Andrew Tridgell [Sat, 30 Oct 2010 10:44:17 +0000 (21:44 +1100)]
s4-smbd: leave the single process model as internal

This helps with the static smbtorture for samba3, and the spoolss
tests which start a server

13 years agowaf: fixed building of non-shared binaries that contain modules
Andrew Tridgell [Sat, 30 Oct 2010 05:37:27 +0000 (16:37 +1100)]
waf: fixed building of non-shared binaries that contain modules

we need to incorporate the module objects too

13 years agos4-heimdal: lex_err_message() should not be static
Andrew Tridgell [Sat, 30 Oct 2010 04:47:21 +0000 (15:47 +1100)]
s4-heimdal: lex_err_message() should not be static

13 years agos4-waf: added a lexyacc.sh script that manually rebuilds the heimdal parsers
Andrew Tridgell [Sat, 30 Oct 2010 04:47:03 +0000 (15:47 +1100)]
s4-waf: added a lexyacc.sh script that manually rebuilds the heimdal parsers

we so rarely need to rebuild these that it is simplest to just run
lexyacc.sh when we import a new heimdal release

13 years agos4-test: don't override modules dir
Andrew Tridgell [Sat, 30 Oct 2010 04:09:30 +0000 (15:09 +1100)]
s4-test: don't override modules dir

it is set correctly during the build

13 years agowaf: get rid of target aliases in wafsamba
Andrew Tridgell [Sat, 30 Oct 2010 03:33:06 +0000 (14:33 +1100)]
waf: get rid of target aliases in wafsamba

these aliases are no longer needed, and can cause a lot of confusion

13 years agos4-build: removed some unnecessary dependencies
Andrew Tridgell [Sat, 30 Oct 2010 03:25:14 +0000 (14:25 +1100)]
s4-build: removed some unnecessary dependencies

based on running waf --symbol-check

13 years agos4-ndr: make ndr-table a subsystem
Andrew Tridgell [Sat, 30 Oct 2010 03:24:04 +0000 (14:24 +1100)]
s4-ndr: make ndr-table a subsystem

its already part of the ndr-samba4 library

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>