samba.git
8 years agoFix bug #7812 - vfs_acl_xattr/vfs_acl_tdb: ACL inheritance cannot be disabled
Jeremy Allison [Tue, 23 Nov 2010 22:31:43 +0000 (14:31 -0800)]
Fix bug #7812 - vfs_acl_xattr/vfs_acl_tdb: ACL inheritance cannot be disabled

We were losing the incoming security descriptor revision number and
most importantly the "type" field as sent by the client. Ensure we
correctly store these in the xattr object.

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Nov 24 00:18:57 CET 2010 on sn-devel-104

8 years agopyldb: Fix broken test.
Jelmer Vernooij [Tue, 23 Nov 2010 20:39:34 +0000 (21:39 +0100)]
pyldb: Fix broken test.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue Nov 23 23:20:38 CET 2010 on sn-devel-104

8 years agoMake log level of the server configurable in make test
Matthieu Patou [Tue, 23 Nov 2010 20:47:36 +0000 (23:47 +0300)]
Make log level of the server configurable in make test

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Tue Nov 23 22:36:37 CET 2010 on sn-devel-104

8 years agos4-tests: Modified acl.py to use samdb.newgroup instead of custom methods.
Nadezhda Ivanova [Tue, 23 Nov 2010 19:59:39 +0000 (21:59 +0200)]
s4-tests: Modified acl.py to use samdb.newgroup instead of custom methods.

Autobuild-User: Nadezhda Ivanova <nivanova@samba.org>
Autobuild-Date: Tue Nov 23 21:46:07 CET 2010 on sn-devel-104

8 years agos4-dsdb: Changed filter to find the account of a user by samAccountName
Nadezhda Ivanova [Tue, 23 Nov 2010 19:54:09 +0000 (21:54 +0200)]
s4-dsdb: Changed filter to find the account of a user by samAccountName

In newuser, a filter by dn was given to setpassword to find the account whose password is to be reset.
It appears however that if given filter of type (dn=CN=smth) Windows fails to return the entry, and the
tests that use newuser fail against it. Changed to use samAccountName instead.

8 years agoFix bug #7785 - atime limit.
Jeremy Allison [Tue, 23 Nov 2010 19:12:17 +0000 (11:12 -0800)]
Fix bug #7785 - atime limit.

On a 64-bit time_t system make MAX_TIME_T the max value that
can be represented in a struct tm. This allows applications to
set times in the future beyond the 32-bit time_t limit (2037).

This is only in source3/configure.in, needs adding to the waf
configure/build system (but I'll need help with that).

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Nov 23 21:00:14 CET 2010 on sn-devel-104

8 years agos4-test/repl_schema: Refactor the test a little bit to
Kamen Mazdrashki [Tue, 23 Nov 2010 15:15:21 +0000 (17:15 +0200)]
s4-test/repl_schema: Refactor the test a little bit to

- Cleanup imports
- make sure we have testtools and subunit imported
- use dictionaries instead of LDIFs for schema modification
  so now callers for _make_class can easily add new attributes
  for created class
- simplify a little bit classSchema creation
- test attributeSchema replication

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

8 years agos4-tests: Make all DRS python tests to start with samba4.drs.* prefix
Kamen Mazdrashki [Wed, 10 Nov 2010 04:15:19 +0000 (06:15 +0200)]
s4-tests: Make all DRS python tests to start with samba4.drs.* prefix

8 years agos4-pfm_verify: Explicitly pass LoadParm() instance to system_session() function
Kamen Mazdrashki [Tue, 23 Nov 2010 15:19:29 +0000 (17:19 +0200)]
s4-pfm_verify: 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-tests: Modified sec_descriptor.py to use samdb.newuser instead of custom methods.
Nadezhda Ivanova [Tue, 23 Nov 2010 15:52:55 +0000 (17:52 +0200)]
s4-tests: Modified sec_descriptor.py to use samdb.newuser instead of custom methods.

Autobuild-User: Nadezhda Ivanova <nivanova@samba.org>
Autobuild-Date: Tue Nov 23 17:58:38 CET 2010 on sn-devel-104

8 years agos4-tests: Modified acl.py to use samdb.newuser instead of custom methods.
Nadezhda Ivanova [Tue, 23 Nov 2010 15:51:40 +0000 (17:51 +0200)]
s4-tests: Modified acl.py to use samdb.newuser instead of custom methods.

8 years agos4-dsdb: Extended samdb.newuser to accept security descriptor for the object and...
Nadezhda Ivanova [Tue, 23 Nov 2010 15:48:53 +0000 (17:48 +0200)]
s4-dsdb: Extended samdb.newuser to accept security descriptor for the object and optionally skip password reset

Sometimes for testing purposes we create users without any permissions on their objects and password reset
cannot be performed at that point, and is not necessary. For this purpose we can now optionally skip this step.
The default is still to reset the user password.
Also, a security.descriptor object can be specified during the user creation to override using the default one.
defaultSecurityDescriptor is still used by default.

8 years agos3-docs: Update 3.2 features.
Samba-JP oota [Tue, 23 Nov 2010 16:06:48 +0000 (17:06 +0100)]
s3-docs: Update 3.2 features.

8 years agos4-tests: Modified sec_descriptor.py to use SamDB.create_ou()
Nadezhda Ivanova [Tue, 23 Nov 2010 12:33:11 +0000 (14:33 +0200)]
s4-tests: Modified sec_descriptor.py to use SamDB.create_ou()

Autobuild-User: Nadezhda Ivanova <nivanova@samba.org>
Autobuild-Date: Tue Nov 23 14:19:34 CET 2010 on sn-devel-104

8 years agos4-tests: Modified acl.py to use SamDB.create_ou()
Nadezhda Ivanova [Tue, 23 Nov 2010 12:32:42 +0000 (14:32 +0200)]
s4-tests: Modified acl.py to use SamDB.create_ou()

8 years agos4-dsdb: Added a python method to SamDB for creating organizationalUnits
Nadezhda Ivanova [Tue, 23 Nov 2010 12:31:34 +0000 (14:31 +0200)]
s4-dsdb: Added a python method to SamDB for creating organizationalUnits

8 years agowintest: tidyups and new conf variables
Andrew Tridgell [Tue, 23 Nov 2010 09:20:18 +0000 (20:20 +1100)]
wintest: tidyups and new conf variables

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue Nov 23 13:01:10 CET 2010 on sn-devel-104

8 years agos4-ldb: added an environment varibale LDB_WARN_UNINDEXED
Andrew Tridgell [Tue, 23 Nov 2010 09:19:49 +0000 (20:19 +1100)]
s4-ldb: added an environment varibale LDB_WARN_UNINDEXED

when LDB_WARN_UNINDEXED is set, we produce warnings about unindexed
searches. This makes it easier to find performance problems caused by
unindexed searches.

8 years agos4-tests: Ldap tests now use the get_dsheuristics and set_dsheuristics from SamDB.
Nadezhda Ivanova [Tue, 23 Nov 2010 09:22:10 +0000 (11:22 +0200)]
s4-tests: Ldap tests now use the get_dsheuristics and set_dsheuristics from SamDB.

Autobuild-User: Nadezhda Ivanova <nivanova@samba.org>
Autobuild-Date: Tue Nov 23 11:08:37 CET 2010 on sn-devel-104

8 years agos4-tests: Password tests now use the get_dsheuristics and set_dsheuristics from SamDB.
Nadezhda Ivanova [Tue, 23 Nov 2010 09:21:47 +0000 (11:21 +0200)]
s4-tests: Password tests now use the get_dsheuristics and set_dsheuristics from SamDB.

8 years agos4-tests: Acl tests now use the get_dsheuristics and set_dsheuristics from SamDB.
Nadezhda Ivanova [Tue, 23 Nov 2010 09:21:22 +0000 (11:21 +0200)]
s4-tests: Acl tests now use the get_dsheuristics and set_dsheuristics from SamDB.

8 years agos4-dsdb: Added python helpers for getting and seting dSHeuristics to SamDB
Nadezhda Ivanova [Tue, 23 Nov 2010 09:20:12 +0000 (11:20 +0200)]
s4-dsdb: Added python helpers for getting and seting dSHeuristics to SamDB

8 years agowintest Evolve wintest to handle it's own BIND nameserver
Andrew Bartlett [Tue, 23 Nov 2010 06:38:31 +0000 (17:38 +1100)]
wintest Evolve wintest to handle it's own BIND nameserver

The changes here start our own copy of BIND, listening on a new
interface that we create at the start of the script.  The user must
specify the IP address etc that this interface will have, and BIND and
Samba will bind to that interface only.

This means that we won't conflict with an existing BIND on the system,
so long as it isn't configured to listen on all interfaces.

We also auto-create the /etc/resolv.conf and restore it at the end of
the script, using the existing server value from the script as a
forwarder.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Nov 23 08:30:34 CET 2010 on sn-devel-104

8 years agowintest Improve wintest's handling of IP addresses and add more auto-setup
Andrew Bartlett [Tue, 23 Nov 2010 04:04:31 +0000 (15:04 +1100)]
wintest Improve wintest's handling of IP addresses and add more auto-setup

 - Don't change the IP address if DHCP is not in use

   The main reason to 'fix' the IP is to get around Dynamic DNS issues caused
   by the DHCP server, if the VM is already on a fixed IP, it does not matter.

 - Set the maximum telnet connection limit to 1024

   This ensures that we can always make a new connection, regardless
   of the existing configuration.  We also catch more conditions when
   the server has restricted the number of connections, and try again.

 - Set the route after the connection drops out

   My WinXP box always wants to drop the default route

 - Set the DNS as a distinct step

   My WinXP box drops the connection when we set DNS servers

Andrew Bartlett

8 years agowintest Explian that this is my KVM/libvirt configuration
Andrew Bartlett [Tue, 23 Nov 2010 04:02:30 +0000 (15:02 +1100)]
wintest Explian that this is my KVM/libvirt configuration

8 years agowintest example configuration file for a KVM based wintest
Andrew Bartlett [Mon, 22 Nov 2010 10:26:13 +0000 (21:26 +1100)]
wintest example configuration file for a KVM based wintest

Andrew Bartlett

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