samba.git
8 years agowintest Allow substitute to cope with objects like pexpect.EOF
Andrew Bartlett [Mon, 22 Nov 2010 10:24:56 +0000 (21:24 +1100)]
wintest Allow substitute to cope with objects like pexpect.EOF

These are not strings, but may get passed into this function on the
way to pexpect.

Andrew Bartlett

8 years agowintest Set the virtual machine IP to match it's dynamic IP, but don't use DHCP
Andrew Bartlett [Mon, 22 Nov 2010 10:23:38 +0000 (21:23 +1100)]
wintest Set the virtual machine IP to match it's dynamic IP, but don't use DHCP

The idea here is that the virtual machine stays on the address
allocated by DHCP, but is configured statically.  This avoids the need
to manually set the address on the host, but avoids the host being
instructed by DHCP not to do Dynamic DNS.

Andrew Bartlett

8 years agowintest Force krb5.conf for BIND so we use the one generated for this test
Andrew Bartlett [Mon, 22 Nov 2010 10:21:57 +0000 (21:21 +1100)]
wintest Force krb5.conf for BIND so we use the one generated for this test

This avoids needing to set the krb5.conf for the whole host to match
the test environment.

Andrew Bartlett

8 years agos3: Add a word of warning about "winbind use default domain"
Volker Lendecke [Mon, 22 Nov 2010 21:39:45 +0000 (22:39 +0100)]
s3: Add a word of warning about "winbind use default domain"

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Nov 22 23:26:11 CET 2010 on sn-devel-104

8 years agos3: Fix some typos
Volker Lendecke [Mon, 22 Nov 2010 21:37:56 +0000 (22:37 +0100)]
s3: Fix some typos

8 years agos3: Use sid_check_is..
Volker Lendecke [Mon, 22 Nov 2010 21:22:32 +0000 (22:22 +0100)]
s3: Use sid_check_is..

8 years agoservice_ldap, service_smb: Lowercase output file names.
Jelmer Vernooij [Mon, 22 Nov 2010 18:42:47 +0000 (19:42 +0100)]
service_ldap, service_smb: Lowercase output file names.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Nov 22 20:28:14 CET 2010 on sn-devel-104

8 years agos4-tests: Adapted passwords.py to use set_minPwdAge from SamDB.
Nadezhda Ivanova [Mon, 22 Nov 2010 16:51:55 +0000 (18:51 +0200)]
s4-tests: Adapted passwords.py to use set_minPwdAge from SamDB.

Autobuild-User: Nadezhda Ivanova <nivanova@samba.org>
Autobuild-Date: Mon Nov 22 18:39:06 CET 2010 on sn-devel-104

8 years agos4-tests: Adapted acl.py to use set_minPwdAge from SamDB.
Nadezhda Ivanova [Mon, 22 Nov 2010 16:50:35 +0000 (18:50 +0200)]
s4-tests: Adapted acl.py to use set_minPwdAge from SamDB.

8 years agos4-dsdb: Added a helper to python SamDB for retrieving and setting minPwdAge.
Nadezhda Ivanova [Mon, 22 Nov 2010 16:34:18 +0000 (18:34 +0200)]
s4-dsdb: Added a helper to python SamDB for retrieving and setting minPwdAge.

8 years agos4-test/repl_schema: Remote global ldb connections
Kamen Mazdrashki [Mon, 22 Nov 2010 13:06:36 +0000 (15:06 +0200)]
s4-test/repl_schema: Remote global ldb connections

Although unlikely, Jelmer pointed out that using persistent
SamDB connections between test may interfere with tests
behaviour (and is not xUnit compliant anyway)

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Mon Nov 22 15:24:03 CET 2010 on sn-devel-104

8 years agos4-tests: Wrap connect_samdb() into a connect_samdb_ex() helper
Kamen Mazdrashki [Mon, 22 Nov 2010 13:03:59 +0000 (15:03 +0200)]
s4-tests: Wrap connect_samdb() into a connect_samdb_ex() helper

Thus caller will be able to connect to SamDB and fetch
RootDSE info in a single step

8 years agos4-samba.tests: Explicitly pass LoadParm() instance to system_session() function
Kamen Mazdrashki [Sun, 21 Nov 2010 22:28:45 +0000 (00:28 +0200)]
s4-samba.tests: Explicitly pass LoadParm() instance to system_session() function

Otherwise system_session() creates a LoadParm() instance
wich resets certain params to their defaults from smb.conf
("log level" for instance)

8 years agos4-pfm_verify: fix usage string
Kamen Mazdrashki [Sun, 21 Nov 2010 20:38:14 +0000 (22:38 +0200)]
s4-pfm_verify: fix usage string

Thanks Tridge!

8 years agos3-net: use dns_errstr() when dns commands fail.
Günther Deschner [Fri, 19 Nov 2010 12:36:22 +0000 (13:36 +0100)]
s3-net: use dns_errstr() when dns commands fail.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Nov 22 12:31:33 CET 2010 on sn-devel-104

8 years agolibaddns: add dns_errstr().
Günther Deschner [Fri, 19 Nov 2010 12:34:18 +0000 (13:34 +0100)]
libaddns: add dns_errstr().

Guenther

8 years agos3-waf: move build rules into libaddns directory.
Günther Deschner [Fri, 19 Nov 2010 12:33:06 +0000 (13:33 +0100)]
s3-waf: move build rules into libaddns directory.

Guenther

8 years agoAvoid the use of PyAPI_DATA, which is for internal Python API's.
Arnaud Faucher [Sun, 21 Nov 2010 23:07:21 +0000 (00:07 +0100)]
Avoid the use of PyAPI_DATA, which is for internal Python API's.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Nov 22 00:52:56 CET 2010 on sn-devel-104

8 years agoselftest: When running on the buildfarm, pipe everything through
Jelmer Vernooij [Sun, 21 Nov 2010 22:09:49 +0000 (23:09 +0100)]
selftest: When running on the buildfarm, pipe everything through
filter-subunit for the exit code.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Nov 21 23:56:23 CET 2010 on sn-devel-104

8 years agoselftest: Even if setting up an environment failed, the next tests may
Jelmer Vernooij [Sun, 21 Nov 2010 21:06:02 +0000 (22:06 +0100)]
selftest: Even if setting up an environment failed, the next tests may
still work.

8 years agosubunithelper: Exit with 1 if more than zero testsuites failed or
Jelmer Vernooij [Sun, 21 Nov 2010 19:26:59 +0000 (20:26 +0100)]
subunithelper: Exit with 1 if more than zero testsuites failed or
errorred.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Nov 21 21:13:00 CET 2010 on sn-devel-104

8 years agoselftest: fix tap2subunit detection on system with tap2subunit but not correct subuni...
Matthieu Patou [Sat, 20 Nov 2010 09:22:57 +0000 (12:22 +0300)]
selftest: fix tap2subunit detection on system with tap2subunit but not correct subunit libs

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sun Nov 21 16:21:54 CET 2010 on sn-devel-104

8 years agos4:provision_rootdse_add.ldif - add all possible LDAP policy values but outcommented...
Matthias Dieter Wallnöfer [Sun, 21 Nov 2010 12:31:19 +0000 (13:31 +0100)]
s4:provision_rootdse_add.ldif - add all possible LDAP policy values but outcommented for the moment

It would be nice if someone could activate them as needed.

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sun Nov 21 14:41:53 CET 2010 on sn-devel-104

8 years agos4-ldb: fixed the build with a space in the ldb modules directory name
Andrew Tridgell [Sun, 21 Nov 2010 12:05:59 +0000 (23:05 +1100)]
s4-ldb: fixed the build with a space in the ldb modules directory name

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Sun Nov 21 13:57:14 CET 2010 on sn-devel-104

8 years agoheimdal: fixed the waf build with a space in the directory name
Andrew Tridgell [Sun, 21 Nov 2010 12:05:37 +0000 (23:05 +1100)]
heimdal: fixed the waf build with a space in the directory name

8 years agopidl: fixed call to cpp with a space in the directory name
Andrew Tridgell [Sun, 21 Nov 2010 12:05:07 +0000 (23:05 +1100)]
pidl: fixed call to cpp with a space in the directory name

8 years agowaf: fixed the build with a space in the source directory
Andrew Tridgell [Sun, 21 Nov 2010 12:04:43 +0000 (23:04 +1100)]
waf: fixed the build with a space in the source directory

8 years agos4-rpc: make rpc connect less verbose
Andrew Tridgell [Sat, 20 Nov 2010 06:57:54 +0000 (17:57 +1100)]
s4-rpc: make rpc connect less verbose

8 years agowaf:lib/util - add missing dependency on talloc
Matthias Dieter Wallnöfer [Sat, 20 Nov 2010 21:48:05 +0000 (22:48 +0100)]
waf:lib/util - add missing dependency on talloc

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Nov 20 23:35:48 CET 2010 on sn-devel-104

8 years agos4:repl_meta_data LDB module - fix a counter type
Matthias Dieter Wallnöfer [Sat, 20 Nov 2010 20:45:53 +0000 (21:45 +0100)]
s4:repl_meta_data LDB module - fix a counter type

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Nov 20 22:32:06 CET 2010 on sn-devel-104

8 years agos4:repl_meta_data LDB module - move the "objectGUID" checks a bit higher
Matthias Dieter Wallnöfer [Sat, 20 Nov 2010 20:37:31 +0000 (21:37 +0100)]
s4:repl_meta_data LDB module - move the "objectGUID" checks a bit higher

- they don't need the allocated "ac" context
- some small code cleanups

8 years agos4:objectclass_attrs LDB module - add more delete protected attributes
Matthias Dieter Wallnöfer [Sat, 20 Nov 2010 20:15:57 +0000 (21:15 +0100)]
s4:objectclass_attrs LDB module - add more delete protected attributes

And enhance the testsuite

8 years agos4:samldb LDB module - objectclass trigger - reorder template attributes
Matthias Dieter Wallnöfer [Sat, 20 Nov 2010 20:01:27 +0000 (21:01 +0100)]
s4:samldb LDB module - objectclass trigger - reorder template attributes

8 years agopyrpc: Build the samba.dcerpc.srvsvc module.
Ricardo Jorge [Sat, 20 Nov 2010 15:18:10 +0000 (16:18 +0100)]
pyrpc: Build the samba.dcerpc.srvsvc module.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Nov 20 19:52:36 CET 2010 on sn-devel-104

8 years agoheimdal: Don't depend on compile_asn1 and et_compile when using system versions.
Arnaud Faucher [Sat, 20 Nov 2010 14:58:30 +0000 (15:58 +0100)]
heimdal: Don't depend on compile_asn1 and et_compile when using system versions.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Nov 20 16:43:47 CET 2010 on sn-devel-104

8 years agos3: Remove a #define used just once
Volker Lendecke [Tue, 16 Nov 2010 18:46:12 +0000 (19:46 +0100)]
s3: Remove a #define used just once

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Nov 20 15:28:26 CET 2010 on sn-devel-104

8 years agos3: Remove unused ads_get_attrname_by_oid
Volker Lendecke [Tue, 16 Nov 2010 18:22:17 +0000 (19:22 +0100)]
s3: Remove unused ads_get_attrname_by_oid

8 years agos3: Make ads_get_attrnames_by_oids static
Volker Lendecke [Tue, 16 Nov 2010 18:20:43 +0000 (19:20 +0100)]
s3: Make ads_get_attrnames_by_oids static

8 years agos3: Make ads_ranged_search_internal static
Volker Lendecke [Tue, 16 Nov 2010 18:18:56 +0000 (19:18 +0100)]
s3: Make ads_ranged_search_internal static

8 years agos3: Fix some nonempty blank lines
Volker Lendecke [Tue, 16 Nov 2010 18:17:32 +0000 (19:17 +0100)]
s3: Fix some nonempty blank lines

8 years agos3: Remove unused ads_search_retry_extended_dn
Volker Lendecke [Tue, 16 Nov 2010 18:12:35 +0000 (19:12 +0100)]
s3: Remove unused ads_search_retry_extended_dn

8 years agos3: Make ads_do_search_retry_args() static
Volker Lendecke [Tue, 16 Nov 2010 18:10:50 +0000 (19:10 +0100)]
s3: Make ads_do_search_retry_args() static

8 years agos4:acl LDB module - it's more correct to count the password attributes using "unsigne...
Matthias Dieter Wallnöfer [Sat, 20 Nov 2010 09:42:01 +0000 (10:42 +0100)]
s4:acl LDB module - it's more correct to count the password attributes using "unsigned int"

Since these are derived from a LDB result.

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Nov 20 11:29:07 CET 2010 on sn-devel-104

8 years agoswitch from mtime to ctime which is more reliable if files can be accessed outside...
olivier [Wed, 10 Nov 2010 16:48:06 +0000 (17:48 +0100)]
switch from mtime to ctime which is more reliable if files can be accessed outside samba as well

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Nov 20 03:07:04 CET 2010 on sn-devel-104

8 years agoMove the uglyness of #ifdef REALPATH_TAKES_NULL into the vfs_default
Jeremy Allison [Sat, 20 Nov 2010 00:29:26 +0000 (16:29 -0800)]
Move the uglyness of #ifdef REALPATH_TAKES_NULL into the vfs_default
module, change the signature of VFS_REALPATH to always return a
malloc'ed string.

Needed to make some privileges work I plan on doing shortly
easier to code.

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Nov 20 02:15:50 CET 2010 on sn-devel-104

8 years agoldb:rdn_name LDB module - add more RDN name constraints
Matthias Dieter Wallnöfer [Thu, 11 Nov 2010 08:12:17 +0000 (09:12 +0100)]
ldb:rdn_name LDB module - add more RDN name constraints

And some small cleanups

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Nov 20 00:06:35 CET 2010 on sn-devel-104

8 years agoldb:ldb_rename on ldap backends - handle the case when the RDN value is empty
Matthias Dieter Wallnöfer [Fri, 19 Nov 2010 22:01:39 +0000 (23:01 +0100)]
ldb:ldb_rename on ldap backends - handle the case when the RDN value is empty

Otherwise we get "<RDN name>=(null),..."

8 years agos4:netlogon/LogonGetDomainInfo - handle a NULL "dns_hostname"
Matthias Dieter Wallnöfer [Thu, 18 Nov 2010 21:26:13 +0000 (22:26 +0100)]
s4:netlogon/LogonGetDomainInfo - handle a NULL "dns_hostname"

- Performs the short computer name check against the sam account name.
- Enhances the LogonGetDomainInfo testsuite which checks the NULL
  "dns_hostname" behaviour

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Fri Nov 19 12:50:33 CET 2010 on sn-devel-104

8 years agos4:torture/ldb/ldb.c - add a small test for a DN with an escaped comma
Matthias Dieter Wallnöfer [Thu, 18 Nov 2010 21:13:10 +0000 (22:13 +0100)]
s4:torture/ldb/ldb.c - add a small test for a DN with an escaped comma

8 years agos4:dsdb tests - use even more already defined pyldb functions to retrieve NCs
Matthias Dieter Wallnöfer [Fri, 19 Nov 2010 08:07:53 +0000 (09:07 +0100)]
s4:dsdb tests - use even more already defined pyldb functions to retrieve NCs

8 years agos3-spoolss: fix typo in debug message.
Günther Deschner [Thu, 18 Nov 2010 14:25:13 +0000 (15:25 +0100)]
s3-spoolss: fix typo in debug message.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Nov 19 12:05:10 CET 2010 on sn-devel-104

8 years agos3: Remove some unused code
Volker Lendecke [Fri, 19 Nov 2010 09:35:04 +0000 (10:35 +0100)]
s3: Remove some unused code

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Nov 19 11:21:00 CET 2010 on sn-devel-104

8 years agowintest: the start of a S3 testing script for wintest
Andrew Tridgell [Fri, 19 Nov 2010 03:08:56 +0000 (14:08 +1100)]
wintest: the start of a S3 testing script for wintest

this is just a skeleton at this stage.

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Fri Nov 19 06:03:55 CET 2010 on sn-devel-104

8 years agowintest: added del_files, write_file and casefold
Andrew Tridgell [Fri, 19 Nov 2010 03:08:18 +0000 (14:08 +1100)]
wintest: added del_files, write_file and casefold

8 years agowintest: move conf files to conf/
Andrew Tridgell [Fri, 19 Nov 2010 03:07:37 +0000 (14:07 +1100)]
wintest: move conf files to conf/

8 years agowintest: rename test-howto.py to test-s4-howto.py
Andrew Tridgell [Fri, 19 Nov 2010 01:07:02 +0000 (12:07 +1100)]
wintest: rename test-howto.py to test-s4-howto.py

ready for test-s3.py

8 years agowintest: moved to top level
Andrew Tridgell [Fri, 19 Nov 2010 01:06:02 +0000 (12:06 +1100)]
wintest: moved to top level

the plan is to expand wintest to test a lot more of Samba against
windows, including testing the Samba3 file server, winbind, nmbd etc

8 years agotalloc: added TALLOC_FREE_FILL environment variable
Andrew Tridgell [Fri, 19 Nov 2010 00:04:33 +0000 (11:04 +1100)]
talloc: added TALLOC_FREE_FILL environment variable

when this environment variable is set, talloc will fill freed memory
with the value from that environment variable. This can be used to
help find use after free bugs when valgrind is too slow to be used

8 years agos4-wintest: reliability and usability improvements
Andrew Tridgell [Thu, 18 Nov 2010 12:56:22 +0000 (23:56 +1100)]
s4-wintest: reliability and usability improvements

- allow for missing VMs
- improved VM names
- added join of w2k3 to Samba domain
- cope with w2k3 dcpromo output
- wait for port 139 not 23, to avoid windows telnet server bug

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Nov 18 23:56:11 CET 2010 on sn-devel-104

8 years agos4-rodc: enable the DRS_GET_ALL_GROUP_MEMBERSHIP flag for RODC replication
Andrew Tridgell [Thu, 18 Nov 2010 07:48:42 +0000 (18:48 +1100)]
s4-rodc: enable the DRS_GET_ALL_GROUP_MEMBERSHIP flag for RODC replication

see the description of this flag in [MS-DRSR]

8 years agos4-join: initially disable the machine account
Andrew Tridgell [Thu, 18 Nov 2010 07:48:03 +0000 (18:48 +1100)]
s4-join: initially disable the machine account

enable after a password is set

8 years agos4-drs: fixed a typo
Andrew Tridgell [Thu, 18 Nov 2010 07:47:21 +0000 (18:47 +1100)]
s4-drs: fixed a typo

8 years agos4-wintest: remove files in var/ when reprovisioning
Andrew Tridgell [Thu, 18 Nov 2010 07:47:07 +0000 (18:47 +1100)]
s4-wintest: remove files in var/ when reprovisioning

8 years agos4-test: added --rebase and --clean options
Andrew Tridgell [Thu, 18 Nov 2010 04:27:45 +0000 (15:27 +1100)]
s4-test: added --rebase and --clean options

8 years agos4-test: use --fail-immediately for samba_dnsupdate testing
Andrew Tridgell [Thu, 18 Nov 2010 04:27:20 +0000 (15:27 +1100)]
s4-test: use --fail-immediately for samba_dnsupdate testing

8 years agos4-spnupdate: only enable NDR print at log level above 5
Andrew Tridgell [Thu, 18 Nov 2010 04:26:48 +0000 (15:26 +1100)]
s4-spnupdate: only enable NDR print at log level above 5

8 years agos4-dns: added support for --fail-immediately for RODC netlogon dns updates
Andrew Tridgell [Thu, 18 Nov 2010 03:53:20 +0000 (14:53 +1100)]
s4-dns: added support for --fail-immediately for RODC netlogon dns updates

8 years agos4-ldb.python: Use $SELFTEST_PREFIX/tmp as a temporary directory for testing
Kamen Mazdrashki [Thu, 18 Nov 2010 19:42:26 +0000 (21:42 +0200)]
s4-ldb.python: Use $SELFTEST_PREFIX/tmp as a temporary directory for testing

This way we won't flood /tmp directory with temp files

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Thu Nov 18 23:11:18 CET 2010 on sn-devel-104

8 years agos4-ldb.python: add test for ldb.Message.from_dict() method
Kamen Mazdrashki [Thu, 18 Nov 2010 15:46:33 +0000 (17:46 +0200)]
s4-ldb.python: add test for ldb.Message.from_dict() method

8 years agos4-pyldb: ldb.Message.from_dict class method to create LdbMessage object from dictionary
Kamen Mazdrashki [Thu, 18 Nov 2010 20:11:30 +0000 (22:11 +0200)]
s4-pyldb: ldb.Message.from_dict class method to create LdbMessage object from dictionary

8 years agos4-pyldb: Move code to create a ldb_message from a Python Dictionary object into...
Kamen Mazdrashki [Thu, 18 Nov 2010 20:09:01 +0000 (22:09 +0200)]
s4-pyldb: Move code to create a ldb_message from a Python Dictionary object into a separate function

8 years agos4-samdb.py: Use ldb.get_default_basedn() to avoid RootDSE search
Kamen Mazdrashki [Mon, 15 Nov 2010 05:41:59 +0000 (07:41 +0200)]
s4-samdb.py: Use ldb.get_default_basedn() to avoid RootDSE search

8 years agos4-pyldb_util: Move ldb Type searching into separate function
Kamen Mazdrashki [Mon, 15 Nov 2010 05:41:50 +0000 (07:41 +0200)]
s4-pyldb_util: Move ldb Type searching into separate function

8 years agos4-pyldb: Few miss-alignments aligned
Kamen Mazdrashki [Mon, 15 Nov 2010 03:30:54 +0000 (05:30 +0200)]
s4-pyldb: Few miss-alignments aligned

8 years agos4-pyldb: Move PyLdbMessage_FromMessage() in PyMessage group of functions
Kamen Mazdrashki [Mon, 15 Nov 2010 02:53:05 +0000 (04:53 +0200)]
s4-pyldb: Move PyLdbMessage_FromMessage() in PyMessage group of functions

8 years agos4-pyldb: Fix wrong type of 'self' parameter
Kamen Mazdrashki [Mon, 15 Nov 2010 02:20:31 +0000 (04:20 +0200)]
s4-pyldb: Fix wrong type of 'self' parameter

8 years agos4-tests: Modified descriptor tests to use pyldb api to retrieve configuration and...
Nadezhda Ivanova [Thu, 18 Nov 2010 18:44:22 +0000 (20:44 +0200)]
s4-tests: Modified descriptor tests to use pyldb api to retrieve configuration and schema dn.

Autobuild-User: Nadezhda Ivanova <nivanova@samba.org>
Autobuild-Date: Thu Nov 18 22:25:07 CET 2010 on sn-devel-104

8 years agos4-tests: Modified acl tests to use pyldb api to retrieve configuration dn.
Nadezhda Ivanova [Thu, 18 Nov 2010 18:43:16 +0000 (20:43 +0200)]
s4-tests: Modified acl tests to use pyldb api to retrieve configuration dn.

8 years agoMake 'net rpc printer driver' behave the same as rpcclient enumdrivers
Joerg Pulz [Thu, 18 Nov 2010 19:47:23 +0000 (11:47 -0800)]
Make 'net rpc printer driver' behave the same as rpcclient enumdrivers
when dealing with unsupported architectures.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Nov 18 21:40:40 CET 2010 on sn-devel-104

8 years agos4-tests: Changed descriptor tests to use existing method in samdb for adding users...
Nadezhda Ivanova [Thu, 18 Nov 2010 17:13:41 +0000 (19:13 +0200)]
s4-tests: Changed descriptor tests to use existing method in samdb for adding users to a group.

Autobuild-User: Nadezhda Ivanova <nivanova@samba.org>
Autobuild-Date: Thu Nov 18 18:30:55 UTC 2010 on sn-devel-104

8 years agos4-tests: Changed acl tests to use existing method in samdb for adding users to a...
Nadezhda Ivanova [Thu, 18 Nov 2010 17:12:36 +0000 (19:12 +0200)]
s4-tests: Changed acl tests to use existing method in samdb for adding users to a group.

8 years agoRevert "s4:api.py - DN tests - test a bit more special DNs and merge the comparison...
Matthias Dieter Wallnöfer [Thu, 18 Nov 2010 15:37:10 +0000 (16:37 +0100)]
Revert "s4:api.py - DN tests - test a bit more special DNs and merge the comparison tests"

This reverts commit 732ef9353dff56384e8bb01aa20d2a371cd995c2.
Jelmer doesn't like to have these tests there.

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Thu Nov 18 17:46:38 UTC 2010 on sn-devel-104

8 years agos4:dsdb python tests - use "ldb.domain_dn"
Matthias Dieter Wallnöfer [Thu, 18 Nov 2010 15:06:46 +0000 (16:06 +0100)]
s4:dsdb python tests - use "ldb.domain_dn"

By inspiration of Nadya's patches

8 years agos4/operational: Fix swapped parameters for ldb_msg_copy_attr
Anatoliy Atanasov [Thu, 18 Nov 2010 14:51:22 +0000 (16:51 +0200)]
s4/operational: Fix swapped parameters for ldb_msg_copy_attr

Autobuild-User: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
Autobuild-Date: Thu Nov 18 17:02:07 UTC 2010 on sn-devel-104

8 years agos4/ldap: ldap_syntaxes.py cleanup
Anatoliy Atanasov [Thu, 18 Nov 2010 15:11:55 +0000 (17:11 +0200)]
s4/ldap: ldap_syntaxes.py cleanup

Autobuild-User: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
Autobuild-Date: Thu Nov 18 16:16:27 UTC 2010 on sn-devel-104

8 years agos3: Call sid_check_is_domain instead of dom_sid_equal
Volker Lendecke [Thu, 18 Nov 2010 14:20:38 +0000 (15:20 +0100)]
s3: Call sid_check_is_domain instead of dom_sid_equal

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Nov 18 15:32:32 UTC 2010 on sn-devel-104

8 years agos3: Make winbind recover from a signing error
Volker Lendecke [Thu, 18 Nov 2010 12:28:47 +0000 (13:28 +0100)]
s3: Make winbind recover from a signing error

When winbind sees a signing error on the smb connection to a DC (for whatever
reason, our bug, network glitch, etc) it should recover properly. The "old"
code in clientgen.c just closed the socket in this case. This is the right
thing to do, this connection is spoiled anyway. The new, async code did not do
this so far, which led to the code in winbindd_cm.c not detect that we need to
reconnect.

8 years agos3/vfs_tsmsm: remove unneeded cast to off_t
Björn Jacke [Wed, 17 Nov 2010 16:52:06 +0000 (17:52 +0100)]
s3/vfs_tsmsm: remove unneeded cast to off_t

"off_t" is wrong on 32 bit systems anyhow ...

Autobuild-User: Björn Jacke <bj@sernet.de>
Autobuild-Date: Thu Nov 18 14:47:59 UTC 2010 on sn-devel-104

8 years agos3/vfs_tsmsm: fix debug output for large files
Björn Jacke [Wed, 17 Nov 2010 16:45:01 +0000 (17:45 +0100)]
s3/vfs_tsmsm: fix debug output for large files

8 years agoldb: error out when modules are not found
Simo Sorce [Thu, 18 Nov 2010 13:01:15 +0000 (08:01 -0500)]
ldb: error out when modules are not found

We shouldn't proceed without all required modules, it could cause damage to the
ldb if operations are performed w/o the needed modules.

Autobuild-User: Simo Sorce <idra@samba.org>
Autobuild-Date: Thu Nov 18 14:02:34 UTC 2010 on sn-devel-104

8 years agos4-tests: Descriptor tests should use the existing samdb domain_dn method instead...
Nadezhda Ivanova [Thu, 18 Nov 2010 11:17:00 +0000 (13:17 +0200)]
s4-tests: Descriptor tests should use the existing samdb domain_dn method instead of defining a new one

Autobuild-User: Nadezhda Ivanova <nivanova@samba.org>
Autobuild-Date: Thu Nov 18 12:52:48 UTC 2010 on sn-devel-104

8 years agos4-tests: Acl tests should use the existing samdb domain_dn method instead of definin...
Nadezhda Ivanova [Thu, 18 Nov 2010 11:13:35 +0000 (13:13 +0200)]
s4-tests: Acl tests should use the existing samdb domain_dn method instead of defining a new one

8 years agoldb:skel.c - don't introduce trailing whitespaces by a module template
Matthias Dieter Wallnöfer [Thu, 18 Nov 2010 11:20:56 +0000 (12:20 +0100)]
ldb:skel.c - don't introduce trailing whitespaces by a module template

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Thu Nov 18 12:08:30 UTC 2010 on sn-devel-104

8 years agos4:password_hash LDB module - remove unused headers
Matthias Dieter Wallnöfer [Thu, 18 Nov 2010 11:20:10 +0000 (12:20 +0100)]
s4:password_hash LDB module - remove unused headers

8 years agos4:repl_meta_data LDB module - allow also special DNs to be renamed correctly
Matthias Dieter Wallnöfer [Thu, 18 Nov 2010 09:44:52 +0000 (10:44 +0100)]
s4:repl_meta_data LDB module - allow also special DNs to be renamed correctly

Do always escape RDN values - this fixes bug #7794

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Thu Nov 18 10:43:40 UTC 2010 on sn-devel-104

8 years agos4:api.py - DN tests - test a bit more special DNs and merge the comparison tests
Matthias Dieter Wallnöfer [Thu, 18 Nov 2010 08:22:07 +0000 (09:22 +0100)]
s4:api.py - DN tests - test a bit more special DNs and merge the comparison tests

8 years agoldb:ldb_dn_explode - point out that on error cases "data" is implicitly free'd
Matthias Dieter Wallnöfer [Thu, 18 Nov 2010 07:57:00 +0000 (08:57 +0100)]
ldb:ldb_dn_explode - point out that on error cases "data" is implicitly free'd

8 years agos4-test: added greater control over tests to run
Andrew Tridgell [Thu, 18 Nov 2010 03:43:53 +0000 (14:43 +1100)]
s4-test: added greater control over tests to run

now supports --list to list tests, and --skip to skip the named tests

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Nov 18 04:29:24 UTC 2010 on sn-devel-104

8 years agos4-test: rename scripting/devel/howto to scripting/devel/wintest
Andrew Tridgell [Wed, 17 Nov 2010 23:57:28 +0000 (10:57 +1100)]
s4-test: rename scripting/devel/howto to scripting/devel/wintest

this won't just be for the howto anymore

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Nov 18 00:45:18 UTC 2010 on sn-devel-104

8 years agos4-wintest: added wintest.py library
Andrew Tridgell [Wed, 17 Nov 2010 23:56:05 +0000 (10:56 +1100)]
s4-wintest: added wintest.py library

converted test-howto.py to use the wintest library.

The idea is for us to create other tests that test lots of different
interactions with windows