nivanova/samba.git
13 years agos4-dsdb: Implemented value restrictions for the dSHeuristcs attribute
Nadezhda Ivanova [Sun, 31 Oct 2010 21:26:49 +0000 (23:26 +0200)]
s4-dsdb: Implemented value restrictions for the dSHeuristcs attribute

Only on modify as it is missing by default. Currently it should be no more then 18 characters
and every 10th character must have a value of 1

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>

13 years agos4-cmdline: make cmdline-credentials a private library
Andrew Tridgell [Sat, 30 Oct 2010 03:19:11 +0000 (14:19 +1100)]
s4-cmdline: make cmdline-credentials a private library

13 years agos4-dns: make the dns update task an external module
Andrew Tridgell [Sat, 30 Oct 2010 03:17:15 +0000 (14:17 +1100)]
s4-dns: make the dns update task an external module

this simplifies some dependencies

13 years agos4-cluster: make cluster a private shared lib
Andrew Tridgell [Sat, 30 Oct 2010 03:16:35 +0000 (14:16 +1100)]
s4-cluster: make cluster a private shared lib

13 years agos4-replace: make libreplace a private shared lib in s4
Andrew Tridgell [Sat, 30 Oct 2010 03:16:07 +0000 (14:16 +1100)]
s4-replace: make libreplace a private shared lib in s4

13 years agos4-tdb: make tdb-wrap into a private library
Andrew Tridgell [Sat, 30 Oct 2010 01:14:15 +0000 (12:14 +1100)]
s4-tdb: make tdb-wrap into a private library

this prevents double linking of the tdb wrap code

13 years agos4-auth: make KERBEROS subsystem into authkrb5 private library
Andrew Tridgell [Sat, 30 Oct 2010 00:46:20 +0000 (11:46 +1100)]
s4-auth: make KERBEROS subsystem into authkrb5 private library

this fixes some double linking. The name 'KERBEROS' was also a bit
confusing, as it sounded like a base kerberos library, when it is in
fact part of auth

13 years agos4-credentials: make a private library from CREDENTIALS subsystem
Andrew Tridgell [Sat, 30 Oct 2010 00:44:07 +0000 (11:44 +1100)]
s4-credentials: make a private library from CREDENTIALS subsystem

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

13 years agos4-ldb: add explicit depenencies on ldb library in ldb modules
Andrew Tridgell [Sat, 30 Oct 2010 00:42:51 +0000 (11:42 +1100)]
s4-ldb: add explicit depenencies on ldb library in ldb modules

ldb modules call module functions from the main ldb library

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

13 years agos4-ldbwrap: split ldb-wrap out from the LDBSAMBA subsystem
Andrew Tridgell [Sat, 30 Oct 2010 00:41:11 +0000 (11:41 +1100)]
s4-ldbwrap: split ldb-wrap out from the LDBSAMBA subsystem

ldb-wrap and the ldif-handlers are not really related, and this allows
us to remove another dependency loop

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

13 years agozlib: use the real library name 'z' instead of ZLIB
Andrew Tridgell [Sat, 30 Oct 2010 00:37:42 +0000 (11:37 +1100)]
zlib: use the real library name 'z' instead of ZLIB

using subsystem aliases has a lot of potential for confusion. Better
to use the real name of the library.

13 years agos4-rpc: split the dcesrv reply code out of dcerpc_server
Andrew Tridgell [Sat, 30 Oct 2010 00:33:53 +0000 (11:33 +1100)]
s4-rpc: split the dcesrv reply code out of dcerpc_server

this allows us to remove a dependency on the dcerpc_server from code
that uses rpc forwarding

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

13 years agos4-modules: remove LD_SAMBA_MODULE_PATH
Andrew Tridgell [Sat, 30 Oct 2010 00:29:49 +0000 (11:29 +1100)]
s4-modules: remove LD_SAMBA_MODULE_PATH

this isn't needed now that we automatically get the module path right
in our build and install trees

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

13 years agos4-torture: simplify the depenencies for TORTURE_DRS
Andrew Tridgell [Sat, 30 Oct 2010 00:28:22 +0000 (11:28 +1100)]
s4-torture: simplify the depenencies for TORTURE_DRS

it doesn't need to depend on the kitchen sink

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

13 years agos4-smbd: make our process models into real modules
Andrew Tridgell [Sat, 30 Oct 2010 00:27:33 +0000 (11:27 +1100)]
s4-smbd: make our process models into real modules

this simplifies some of the dependencies between bin/samba and the
various services, making it easier to get a clean depenency tree

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

13 years agos4-smbd: don't initialise process models more than once
Andrew Tridgell [Sat, 30 Oct 2010 00:24:15 +0000 (11:24 +1100)]
s4-smbd: don't initialise process models more than once

this also removes the event_context parameter from process model
initialisation. It isn't needed, and is confusing when a process model
init can be called from more than one place, possibly with different
event contexts.

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

13 years agowaf: save the samba_deps_extended
Andrew Tridgell [Sat, 30 Oct 2010 00:23:09 +0000 (11:23 +1100)]
waf: save the samba_deps_extended

this is needed for the symbols.py extension

13 years agowaf: give a better error on a bad grouping library
Andrew Tridgell [Sat, 30 Oct 2010 00:22:29 +0000 (11:22 +1100)]
waf: give a better error on a bad grouping library

give a clear error on an unknown dependency in a grouping library

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

13 years agowaf: cope with subsystems with no static modules
Andrew Tridgell [Sat, 30 Oct 2010 00:21:35 +0000 (11:21 +1100)]
waf: cope with subsystems with no static modules

we still need the STATIC_xx_MODULES define when there are no static
modules. It contains just the sentinal.

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

13 years agowaf: don't auto-depend on subsystems
Andrew Tridgell [Sat, 30 Oct 2010 00:19:08 +0000 (11:19 +1100)]
waf: don't auto-depend on subsystems

this is part of an effort to reduce the amount of automatic dependency
munging we do. When working on the correct dependency tree for Samba
it is easier to add the right dependencies in the wscript files than
rely on them being added by the waf rules. This change removes the
automatic dependency of modules on their subsystem. Many modules don't
actually need this dependency anyway, so it is better to add it where
they are needed (for example, for ldb modules)

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

13 years agowaf: added --symbol-check option
Andrew Tridgell [Sat, 30 Oct 2010 00:17:30 +0000 (11:17 +1100)]
waf: added --symbol-check option

this adds checking of the symbols in all our object files, libraries
and syslibs. It will form the basis in future for a lot more checks,
but for now it just checks basic rules like not allowing us to use
symbols that are in system libs.

Currently this is enabled only if you use the --symbol-check option,
(or use make with SYMBOLCHECK=1) but I intend to make this always
enabled once it has had more testing.

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

13 years agowaf: build all libraries after all object files
Andrew Tridgell [Sat, 30 Oct 2010 00:07:40 +0000 (11:07 +1100)]
waf: build all libraries after all object files

this makes it easier to perform symbol checking before the link
stage. The two new build groups symbolcheck and syslibcheck will be
used by the symbols.py extension

13 years agowaf: use Utils.WafError() instead of raising an AssertionError
Andrew Tridgell [Sat, 30 Oct 2010 00:06:13 +0000 (11:06 +1100)]
waf: use Utils.WafError() instead of raising an AssertionError

this produces clearer output on errors

13 years agowaf: cope with rules with no inputs
Andrew Tridgell [Fri, 29 Oct 2010 00:53:15 +0000 (11:53 +1100)]
waf: cope with rules with no inputs

when we display a rule with no inputs, just call the original display
function

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

13 years agowaf: separate out get_tgt_list()
Andrew Tridgell [Fri, 29 Oct 2010 00:52:25 +0000 (11:52 +1100)]
waf: separate out get_tgt_list()

this is a useful function for the new symbols code, so separate it out
of samba_deps.py

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

13 years agowaf: display the paths in library loops
Andrew Tridgell [Fri, 29 Oct 2010 00:51:17 +0000 (11:51 +1100)]
waf: display the paths in library loops

when we detect a library loop, try to display the paths between the
two libraries. This should make it easier to fix.

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

13 years agowaf: added env.DEVELOPER_MODE flag
Andrew Tridgell [Fri, 29 Oct 2010 00:50:25 +0000 (11:50 +1100)]
waf: added env.DEVELOPER_MODE flag

this makes it easier to add project rules that are only run in
developer mode

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

13 years agowaf: added suncc_wrap
Andrew Tridgell [Fri, 29 Oct 2010 00:49:31 +0000 (11:49 +1100)]
waf: added suncc_wrap

this should solve a problem with creating alias modules with Sun CC.

Thanks to Matthieu for the idea, and Thomas for the waf code

13 years agos4-kdc: create a 'pac' private grouping library
Andrew Tridgell [Fri, 29 Oct 2010 00:48:06 +0000 (11:48 +1100)]
s4-kdc: create a 'pac' private grouping library

this removes the final case where we have an object file linked into
two libraries

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

13 years agos4-heimdal: removed the use of signal.c from roken
Andrew Tridgell [Fri, 29 Oct 2010 00:47:11 +0000 (11:47 +1100)]
s4-heimdal: removed the use of signal.c from roken

we don't need to replace signal()

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

13 years agos4-heimdal: fixed the use of error_message() in heimdal
Andrew Tridgell [Fri, 29 Oct 2010 00:46:44 +0000 (11:46 +1100)]
s4-heimdal: fixed the use of error_message() in heimdal

the lex code in heimdal had a function error_message() which conflicts
with a function from the com_err library. This replaces it with
lex_err_message()

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

13 years agoreplace: create a private replace-test library
Andrew Tridgell [Wed, 27 Oct 2010 03:25:39 +0000 (14:25 +1100)]
replace: create a private replace-test library

used by replace_testuite and smbtorture

13 years agos4-ldb: create a private library ldb-cmdline
Andrew Tridgell [Wed, 27 Oct 2010 03:25:06 +0000 (14:25 +1100)]
s4-ldb: create a private library ldb-cmdline

this prevents duplicate linking of the cmdline support code

13 years agotalloc: Fix manual pages in standalone build.
Jelmer Vernooij [Sat, 30 Oct 2010 06:27:12 +0000 (08:27 +0200)]
talloc: Fix manual pages in standalone build.

13 years agoFix bug #7700 - Improvement of return code of smbclient
Jeremy Allison [Fri, 29 Oct 2010 18:56:51 +0000 (11:56 -0700)]
Fix bug #7700 - Improvement of return code of smbclient

Based on an initial patch from H Hasegawa <hasegawa.hiroyuki@fujixerox.co.jp>.
Convert cli_list and associated functions to take calls that return NTSTATUS.

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Oct 29 19:40:16 UTC 2010 on sn-devel-104

13 years agos4:torture/rpc/samr.c - fix NTTIME warnings by casts
Matthias Dieter Wallnöfer [Fri, 29 Oct 2010 09:26:47 +0000 (11:26 +0200)]
s4:torture/rpc/samr.c - fix NTTIME warnings by casts

And also the format specifier is wrong since NTTIME is "uint64_t" and
therefore unsigned.

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Fri Oct 29 10:36:46 UTC 2010 on sn-devel-104

13 years agos4:torture/rpc/samr.c - test the "ReplicaSourceNodeName" only against s3
Matthias Dieter Wallnöfer [Sun, 19 Sep 2010 08:54:29 +0000 (10:54 +0200)]
s4:torture/rpc/samr.c - test the "ReplicaSourceNodeName" only against s3

AD handles this differently (see MS-SAMR 2.2.4.1)

13 years agos4:samr RPC server - fix trailing whitespaces
Matthias Dieter Wallnöfer [Fri, 29 Oct 2010 08:55:07 +0000 (10:55 +0200)]
s4:samr RPC server - fix trailing whitespaces

13 years agos4:samr RPC server - fix indentation of function parameters
Matthias Dieter Wallnöfer [Fri, 29 Oct 2010 08:53:39 +0000 (10:53 +0200)]
s4:samr RPC server - fix indentation of function parameters

13 years agos4:samr RPC server - DomainGeneralInformation - never return NULL on the oem name
Matthias Dieter Wallnöfer [Fri, 29 Oct 2010 09:03:26 +0000 (11:03 +0200)]
s4:samr RPC server - DomainGeneralInformation - never return NULL on the oem name

As far as I can tell Windows SAMR never returns NULL on unknown values in this
call.

13 years agos4:samr RPC server - provide the right "ReplicaSourceNodeName"
Matthias Dieter Wallnöfer [Fri, 29 Oct 2010 08:45:47 +0000 (10:45 +0200)]
s4:samr RPC server - provide the right "ReplicaSourceNodeName"

It's the content of the "domainReplica" attribute if it exists and has only a
meaning on interim/mixed domain function levels (with NT4 dcs).

13 years agos4:samr RPC server - remove wrong implementation of ReplicaSourceNodeName
Matthias Dieter Wallnöfer [Sun, 19 Sep 2010 08:50:28 +0000 (10:50 +0200)]
s4:samr RPC server - remove wrong implementation of ReplicaSourceNodeName

This should represent a replication partner - never the DC iself

13 years agos4-drs_tests: drs_util_DsAttributeId_to_string() is not used anymore
Kamen Mazdrashki [Thu, 28 Oct 2010 22:54:51 +0000 (01:54 +0300)]
s4-drs_tests: drs_util_DsAttributeId_to_string() is not used anymore

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Fri Oct 29 09:54:01 UTC 2010 on sn-devel-104

13 years agos4-resolve_oids: Remove redundant check - resolve_oids_need_value() handle this
Kamen Mazdrashki [Thu, 28 Oct 2010 22:18:31 +0000 (01:18 +0300)]
s4-resolve_oids: Remove redundant check - resolve_oids_need_value() handle this

13 years agos4-schema_init: we should be able to resolve Syntax OIDs with prefixMap we have
Kamen Mazdrashki [Wed, 27 Oct 2010 19:29:40 +0000 (22:29 +0300)]
s4-schema_init: we should be able to resolve Syntax OIDs with prefixMap we have

If Syntax OID is not in the prefixMap then we are getting
an unknown Attribute Syntax (which we can't handle anyway)