metze/samba/wip.git
13 years agos4:dsdb/repl/drepl* - move "lib/messaging/irpc.h" include into "drepl_service.h"
Matthias Dieter Wallnöfer [Sun, 28 Nov 2010 10:53:48 +0000 (11:53 +0100)]
s4:dsdb/repl/drepl* - move "lib/messaging/irpc.h" include into "drepl_service.h"

This is needed to fix a Tru64 "cc" warning regarding "enum drepl_role_master".

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

13 years agos4-selftest: Ignore broken pipe error from grep.
Jelmer Vernooij [Sun, 28 Nov 2010 03:58:52 +0000 (04:58 +0100)]
s4-selftest: Ignore broken pipe error from grep.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Nov 28 05:45:05 CET 2010 on sn-devel-104

13 years agosamba.provision: Fix setup_path.
Jelmer Vernooij [Sun, 28 Nov 2010 03:22:46 +0000 (04:22 +0100)]
samba.provision: Fix setup_path.

13 years agosamba.provision: Add package with provision and backend modules.
Jelmer Vernooij [Sun, 28 Nov 2010 03:02:28 +0000 (04:02 +0100)]
samba.provision: Add package with provision and backend modules.

13 years agos4-python: Fix formatting of docstrings for the purpose of pydoctor.
Jelmer Vernooij [Sun, 28 Nov 2010 02:34:47 +0000 (03:34 +0100)]
s4-python: Fix formatting of docstrings for the purpose of pydoctor.

13 years agoMakefile: Add rule for pydoctor.
Jelmer Vernooij [Sun, 28 Nov 2010 02:29:35 +0000 (03:29 +0100)]
Makefile: Add rule for pydoctor.

13 years agosamba.tests: Fix formatting.
Jelmer Vernooij [Sun, 28 Nov 2010 02:15:36 +0000 (03:15 +0100)]
samba.tests: Fix formatting.

13 years agos4-tests/bind.py: Use samba.tests.connect_samdb() instead of directly using SamDB...
Kamen Mazdrashki [Sun, 28 Nov 2010 01:05:05 +0000 (03:05 +0200)]
s4-tests/bind.py: Use samba.tests.connect_samdb() instead of directly using SamDB class

connect_samdb() functino will correctly handle things like:
- session_info param - it will create system_session() using supplied
  LoadParm parameter and thus avoiding creation of multiple LoadParm
  instances (LoadParm() will mask certain command line supplied options)
- host url will be prefixed with ldap:// automatically

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Sun Nov 28 03:00:41 CET 2010 on sn-devel-104

13 years agos4-samba-tool: support help, and show description of commands
Andrew Tridgell [Sat, 27 Nov 2010 23:52:09 +0000 (10:52 +1100)]
s4-samba-tool: support help, and show description of commands

when you don't specify a subcommand, show the description of the
subcommands in the list of available subcommands. Also show the list
of subcommands when you use 'help', '--help' or '-h' as a subcommand

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Sun Nov 28 01:56:46 CET 2010 on sn-devel-104

13 years agos4-drs: fixed credit for C version
Andrew Tridgell [Sat, 27 Nov 2010 23:41:53 +0000 (10:41 +1100)]
s4-drs: fixed credit for C version

13 years agos4:netcmd/drs.py - use "objectClass" for discovering the server and it's NTDS setting...
Matthias Dieter Wallnöfer [Sat, 27 Nov 2010 21:44:55 +0000 (22:44 +0100)]
s4:netcmd/drs.py - use "objectClass" for discovering the server and it's NTDS settings object

Small optimisation: we don't need to look for "nTDSDSARO" since it's a subclass
of "ntDSDSA".

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

13 years agotdb:common/open.c - use "discard_const_p" for certain "tdb->name" assignments
Matthias Dieter Wallnöfer [Sat, 27 Nov 2010 19:19:34 +0000 (20:19 +0100)]
tdb:common/open.c - use "discard_const_p" for certain "tdb->name" assignments

In order to suppress compiler warnings.

13 years agos4:dsdb/repl/drepl_service.c - return the correct WERR result
Matthias Dieter Wallnöfer [Sat, 27 Nov 2010 19:13:02 +0000 (20:13 +0100)]
s4:dsdb/repl/drepl_service.c - return the correct WERR result

13 years agos4:drepl_service.c - fix error macro (use "_werr" and not "werr")
Matthias Dieter Wallnöfer [Sat, 27 Nov 2010 19:12:25 +0000 (20:12 +0100)]
s4:drepl_service.c - fix error macro (use "_werr" and not "werr")

Detected by Tru64 "cc".

13 years agos4:dsdb/repl/drepl_out_helpers.c - print out the correct error message (werr)
Matthias Dieter Wallnöfer [Sat, 27 Nov 2010 19:06:18 +0000 (20:06 +0100)]
s4:dsdb/repl/drepl_out_helpers.c - print out the correct error message (werr)

Also detected by Tru64 "cc".

13 years agos4:lib/registry/rpc.c - remove a duplicate assignment
Matthias Dieter Wallnöfer [Sat, 27 Nov 2010 19:03:53 +0000 (20:03 +0100)]
s4:lib/registry/rpc.c - remove a duplicate assignment

13 years agos4:torture/rpc/samr.c - fix uninitialised "status" variables
Matthias Dieter Wallnöfer [Sat, 27 Nov 2010 18:52:46 +0000 (19:52 +0100)]
s4:torture/rpc/samr.c - fix uninitialised "status" variables

Detected by Tru64. I wonder how this tests even worked.

13 years agos4:torture/rpc/samsync.c - remove uninitialised "nt_status" check
Matthias Dieter Wallnöfer [Sat, 27 Nov 2010 18:45:45 +0000 (19:45 +0100)]
s4:torture/rpc/samsync.c - remove uninitialised "nt_status" check

Found by Tru64 compiler.

13 years agos4:drsuapi RPC server - fix "enum security_user_level" warning on Tru64
Matthias Dieter Wallnöfer [Sat, 27 Nov 2010 18:42:31 +0000 (19:42 +0100)]
s4:drsuapi RPC server - fix "enum security_user_level" warning on Tru64

13 years agos4:param/secrets.h - fix "enum netr_SchannelType" include correctly
Matthias Dieter Wallnöfer [Sat, 27 Nov 2010 18:32:03 +0000 (19:32 +0100)]
s4:param/secrets.h - fix "enum netr_SchannelType" include correctly

13 years agos4:wkssvc RPC server - better solution for srvsvc* enum's in server_info.c
Matthias Dieter Wallnöfer [Sat, 27 Nov 2010 18:16:00 +0000 (19:16 +0100)]
s4:wkssvc RPC server - better solution for srvsvc* enum's in server_info.c

Reworked version of commit 7e710c4de92c310897817acc06d229cce763d2d7

13 years agoRevert "s4:rpc_server/common/common.h - introduce two forward declarations to suppres...
Matthias Dieter Wallnöfer [Sat, 27 Nov 2010 18:10:27 +0000 (19:10 +0100)]
Revert "s4:rpc_server/common/common.h - introduce two forward declarations to suppress parameter declaration warnings"

This reverts commit 7e710c4de92c310897817acc06d229cce763d2d7.
This causes more noise than it's useful.

13 years agos4:libcli/security/session.h - fix include ordering for "enum security_user_level"
Matthias Dieter Wallnöfer [Sat, 27 Nov 2010 17:33:42 +0000 (18:33 +0100)]
s4:libcli/security/session.h - fix include ordering for "enum security_user_level"

13 years agos4:dsdb/samdb/samdb.h - fix include ordering in order to prevent warnings on Tru64
Matthias Dieter Wallnöfer [Sat, 27 Nov 2010 17:30:12 +0000 (18:30 +0100)]
s4:dsdb/samdb/samdb.h - fix include ordering in order to prevent warnings on Tru64

13 years agos3: Use localtime_r, libreplace defines it
Volker Lendecke [Sat, 27 Nov 2010 18:52:11 +0000 (19:52 +0100)]
s3: Use localtime_r, libreplace defines it

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

13 years agolibwbclient: Correctly order the wbcAllocateMemory args
Volker Lendecke [Sat, 27 Nov 2010 18:07:40 +0000 (19:07 +0100)]
libwbclient: Correctly order the wbcAllocateMemory args

In these cases, it does not make a functional difference.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Nov 27 19:56:02 CET 2010 on sn-devel-104

13 years agolibwbclient: Fix a division by zero
Volker Lendecke [Sat, 27 Nov 2010 18:02:33 +0000 (19:02 +0100)]
libwbclient: Fix a division by zero

If wbinfo -r returns no groups, wbcAllocateMemory divides by zero

13 years agos3: Return the correct result from winbindd_dual_auth_passdb
Volker Lendecke [Sat, 27 Nov 2010 17:56:41 +0000 (18:56 +0100)]
s3: Return the correct result from winbindd_dual_auth_passdb

13 years agoMAINTAINERS.txt - fix typo
Matthias Dieter Wallnöfer [Sat, 27 Nov 2010 17:25:28 +0000 (18:25 +0100)]
MAINTAINERS.txt - fix typo

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

13 years agotdb:tdbstore.c - remove an useless '\'
Matthias Dieter Wallnöfer [Sat, 27 Nov 2010 17:21:32 +0000 (18:21 +0100)]
tdb:tdbstore.c - remove an useless '\'

Discovered by a warning of the Tru64 host on the buildfarm.

13 years agobuild: change compile flags on mac os x if we face pb with common symbols
Matthieu Patou [Sat, 27 Nov 2010 14:11:35 +0000 (17:11 +0300)]
build: change compile flags on mac os x if we face pb with common symbols

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sat Nov 27 18:02:41 CET 2010 on sn-devel-104

13 years agoremove useless debug message :-)
Matthieu Patou [Sat, 27 Nov 2010 10:44:50 +0000 (13:44 +0300)]
remove useless debug message :-)

13 years agoshow_test_time: Move to root scripting directory as it's useful for s3
Jelmer Vernooij [Sat, 27 Nov 2010 15:31:53 +0000 (16:31 +0100)]
show_test_time: Move to root scripting directory as it's useful for s3
and s4.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Nov 27 17:17:29 CET 2010 on sn-devel-104

13 years agos4:role transfer - use always type "enum drepl_role_master" for role specifications
Matthias Dieter Wallnöfer [Sat, 27 Nov 2010 13:40:53 +0000 (14:40 +0100)]
s4:role transfer - use always type "enum drepl_role_master" for role specifications

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Nov 27 16:03:43 CET 2010 on sn-devel-104

13 years agos4:samba3sam LDB module - correctly print out an unsigned value
Matthias Dieter Wallnöfer [Sat, 27 Nov 2010 13:17:53 +0000 (14:17 +0100)]
s4:samba3sam LDB module - correctly print out an unsigned value

Here we can print it out as unsigned since we are generating a string
attribute.

13 years agos4:samba3sam LDB module - make the "pw_uid"/"pw_gid" conversion a bit clearer
Matthias Dieter Wallnöfer [Sat, 27 Nov 2010 13:07:31 +0000 (14:07 +0100)]
s4:samba3sam LDB module - make the "pw_uid"/"pw_gid" conversion a bit clearer

And remove the "long" specifier since at least on the major platforms
(Linux, BSD and Solaris) these types are defined as "uint32_t".

13 years agos4:dsdb tests - make use of "ldb.get_domain_sid()"
Matthias Dieter Wallnöfer [Sat, 27 Nov 2010 11:32:22 +0000 (12:32 +0100)]
s4:dsdb tests - make use of "ldb.get_domain_sid()"

13 years agos4:dsdb/tests/python/sam.py - we don't need the domain SID
Matthias Dieter Wallnöfer [Sat, 27 Nov 2010 11:21:59 +0000 (12:21 +0100)]
s4:dsdb/tests/python/sam.py - we don't need the domain SID

13 years agos4:torture/drs/python/fsmo.py - fix comments and an error message
Matthias Dieter Wallnöfer [Sat, 27 Nov 2010 11:08:03 +0000 (12:08 +0100)]
s4:torture/drs/python/fsmo.py - fix comments and an error message

13 years agos4-samba-tool: removed old C implementation of samba-tool drs
Andrew Tridgell [Sat, 27 Nov 2010 12:53:00 +0000 (23:53 +1100)]
s4-samba-tool: removed old C implementation of samba-tool drs

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Sat Nov 27 15:16:02 CET 2010 on sn-devel-104

13 years agos4-samba-tool: switched over to python version of samba-tool drs
Andrew Tridgell [Sat, 27 Nov 2010 12:50:25 +0000 (23:50 +1100)]
s4-samba-tool: switched over to python version of samba-tool drs

13 years agos4-samba-tool: added python implementation of samba-tool drs commands
Andrew Tridgell [Sat, 27 Nov 2010 12:48:20 +0000 (23:48 +1100)]
s4-samba-tool: added python implementation of samba-tool drs commands

much simpler than the C code, and this brings us one step closer to a
python samba-tool

13 years agos4-pyglue: expose the remaining NTTIME functions from glue
Andrew Tridgell [Sat, 27 Nov 2010 12:47:30 +0000 (23:47 +1100)]
s4-pyglue: expose the remaining NTTIME functions from glue

13 years agos4-drs: allow DrsReplicaGetInfo as a DC
Andrew Tridgell [Sat, 27 Nov 2010 12:47:03 +0000 (23:47 +1100)]
s4-drs: allow DrsReplicaGetInfo as a DC

13 years agos4-pydsdb: use cpp macro to simplify flags definitions
Andrew Tridgell [Sat, 27 Nov 2010 12:46:33 +0000 (23:46 +1100)]
s4-pydsdb: use cpp macro to simplify flags definitions

also added some more from flags.h

13 years agolibds: added mS-DS-ReplicatesNCReason flags
Andrew Tridgell [Sat, 27 Nov 2010 12:45:53 +0000 (23:45 +1100)]
libds: added mS-DS-ReplicatesNCReason flags

these define why a KCC connection was made

13 years agos4-samba-tool: fixed "-k no" for disabling kerberos auth
Andrew Tridgell [Sat, 27 Nov 2010 11:03:07 +0000 (22:03 +1100)]
s4-samba-tool: fixed "-k no" for disabling kerberos auth

The option "-k no" was not correctly disabling kerberos in python
programs

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

13 years agoAdd timestamp when running with --maximum-runtime
Matthieu Patou [Sat, 27 Nov 2010 10:00:57 +0000 (13:00 +0300)]
Add timestamp when running with --maximum-runtime

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sat Nov 27 11:51:12 CET 2010 on sn-devel-104

13 years agoblackbox.ldb: Support using system ldbsearch.
Jelmer Vernooij [Sat, 27 Nov 2010 02:13:08 +0000 (03:13 +0100)]
blackbox.ldb: Support using system ldbsearch.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Nov 27 04:32:11 CET 2010 on sn-devel-104

13 years agoselftest: Allow using ldb* utilities from system.
Jelmer Vernooij [Sat, 27 Nov 2010 02:03:50 +0000 (03:03 +0100)]
selftest: Allow using ldb* utilities from system.

13 years agos4-libnet: use the full DNS domain for CLDAP lookups if possible
Andrew Tridgell [Sat, 27 Nov 2010 01:59:51 +0000 (12:59 +1100)]
s4-libnet: use the full DNS domain for CLDAP lookups if possible

many of the internal libnet interfaces use the short domain name,
which leads to unreliable NBT lookups. If we are trying to look for
our workgroup, then look for our DNS domain instead

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

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Sat Nov 27 03:47:52 CET 2010 on sn-devel-104

13 years agowintest: cope with VMs sometimes not rebooting
Andrew Tridgell [Sat, 27 Nov 2010 00:33:52 +0000 (11:33 +1100)]
wintest: cope with VMs sometimes not rebooting

my w2k8 image occasionally gets stuck in the early stages of
booting. This adds code to detect a failed reboot, in which case the
VM is reset

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

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Sat Nov 27 02:42:19 CET 2010 on sn-devel-104

13 years agowintest: avoid adding a blank line to resolv.conf on each run
Andrew Tridgell [Fri, 26 Nov 2010 23:28:15 +0000 (10:28 +1100)]
wintest: avoid adding a blank line to resolv.conf on each run

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Sat Nov 27 01:47:48 CET 2010 on sn-devel-104

13 years agowintest: handle missing firewall commands
Andrew Tridgell [Fri, 26 Nov 2010 23:27:22 +0000 (10:27 +1100)]
wintest: handle missing firewall commands

my w2k3 box doesn't have these firewall commands

13 years agos3-param Fix lp_set_cmdline() to set the flag on alias values too
Andrew Bartlett [Fri, 26 Nov 2010 21:17:09 +0000 (08:17 +1100)]
s3-param Fix lp_set_cmdline() to set the flag on alias values too

Otherwise, -d10 would be overridden by 'debug level = 1', because
debug level is an alias of 'log level' which -d was setting.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Sat Nov 27 01:02:40 CET 2010 on sn-devel-104

13 years agoFix endianess problems as discovered on the build farm
Matthieu Patou [Fri, 26 Nov 2010 20:45:13 +0000 (23:45 +0300)]
Fix endianess problems as discovered on the build farm

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Fri Nov 26 22:32:16 CET 2010 on sn-devel-104

13 years agoldb-tdb: Add more information about full scan
Matthieu Patou [Tue, 23 Nov 2010 21:14:10 +0000 (00:14 +0300)]
ldb-tdb: Add more information about full scan

13 years agos3/configure: fix GNU ld version detection with old gcc releases
Björn Jacke [Fri, 26 Nov 2010 14:14:14 +0000 (15:14 +0100)]
s3/configure: fix GNU ld version detection with old gcc releases

needed as old gcc releases output everything to stderr, even stdout output from
ld

Fixes #7825

Autobuild-User: Björn Jacke <bj@sernet.de>
Autobuild-Date: Fri Nov 26 20:15:24 CET 2010 on sn-devel-104

13 years agos3: Fix filling in the pam_auth_crap domain name
Volker Lendecke [Fri, 26 Nov 2010 09:55:48 +0000 (10:55 +0100)]
s3: Fix filling in the pam_auth_crap domain name

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Nov 26 14:43:20 CET 2010 on sn-devel-104

13 years agos4:rootdse LDB module - remove unused variable
Matthias Dieter Wallnöfer [Fri, 26 Nov 2010 12:10:20 +0000 (13:10 +0100)]
s4:rootdse LDB module - remove unused variable

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Fri Nov 26 13:58:27 CET 2010 on sn-devel-104

13 years agos4:objectclass LDB module - simply use "msg" when requesting the message
Matthias Dieter Wallnöfer [Fri, 26 Nov 2010 12:08:27 +0000 (13:08 +0100)]
s4:objectclass LDB module - simply use "msg" when requesting the message

13 years agos4:objectclass LDB module - move the "mem_ctx" allocation to a better place
Matthias Dieter Wallnöfer [Fri, 26 Nov 2010 12:03:59 +0000 (13:03 +0100)]
s4:objectclass LDB module - move the "mem_ctx" allocation to a better place

It's only needed if we've a schema around.

13 years agos4-dsdb Reorganise and clarify the LSA objectClass check (forbidden on LDAP)
Andrew Bartlett [Thu, 25 Nov 2010 23:11:30 +0000 (10:11 +1100)]
s4-dsdb Reorganise and clarify the LSA objectClass check (forbidden on LDAP)

This arranged the check to avoid talloc_strdup() (the schema pointers
are constant, and can be relied upon), and checks the untrusted bit
first (it is faster), before the ldb_attr_cmp().

The strcmp() here was valid, if unusual, because the ldapDisplayName
values are already in the correct case, but strcasecmp() is more
correct, as for the small extra cost, we avoid a difficult to diagnose
bug later.

Andrew Bartlett

Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
13 years agos4-objectclass Use a specific local variable name, not 'value'
Andrew Bartlett [Thu, 25 Nov 2010 23:10:01 +0000 (10:10 +1100)]
s4-objectclass Use a specific local variable name, not 'value'

This makes it clearer what the local variable in use here does.

Andrew Bartlett

Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
13 years agos4-kcc: fixed valgrind errors in drs replicaInfo server side
Andrew Tridgell [Fri, 26 Nov 2010 01:38:06 +0000 (12:38 +1100)]
s4-kcc: fixed valgrind errors in drs replicaInfo server side

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

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Fri Nov 26 03:52:30 CET 2010 on sn-devel-104

13 years agos4-provision: fixed eadb automatic and manual setting in provision
Andrew Tridgell [Fri, 26 Nov 2010 01:10:55 +0000 (12:10 +1100)]
s4-provision: fixed eadb automatic and manual setting in provision

we should not set posix:eadb in lp in the acl native test code

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

13 years agowintest: do an initial replication of CN=Configuration to transfer dnsHostname
Andrew Tridgell [Fri, 26 Nov 2010 00:36:29 +0000 (11:36 +1100)]
wintest: do an initial replication of CN=Configuration to transfer dnsHostname

this fixes the drs replication in the dcpromo test

13 years agowintest: fixed "rndc command" option in provision
Andrew Tridgell [Fri, 26 Nov 2010 00:33:49 +0000 (11:33 +1100)]
wintest: fixed "rndc command" option in provision

we need to point at the generated rndc.conf

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

13 years agowintest: make IPv6 optional in wintest
Andrew Tridgell [Fri, 26 Nov 2010 00:33:10 +0000 (11:33 +1100)]
wintest: make IPv6 optional in wintest

we need some more work on IPv6 support in s4 before this works

13 years agos4-provision: don't try to look for an IPv6 address when not specified
Andrew Tridgell [Thu, 25 Nov 2010 23:20:03 +0000 (10:20 +1100)]
s4-provision: don't try to look for an IPv6 address when not specified

the getaddrinfo() method of finding an IPv6 address is incorrect. We
could do it via the Samba interfaces code, but until we have that it
is better to not try to auto-detect IPv6

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

13 years agolibrpc: fix builds without IPv6 suport (HP-UX 11.00)
Björn Jacke [Fri, 26 Nov 2010 01:17:14 +0000 (02:17 +0100)]
librpc: fix builds without IPv6 suport (HP-UX 11.00)

Kai, please check.

Autobuild-User: Björn Jacke <bj@sernet.de>
Autobuild-Date: Fri Nov 26 03:07:21 CET 2010 on sn-devel-104

13 years agos3/smbtorture: use $MAKE to build to make sure we use the make that makes our build
Björn Jacke [Fri, 26 Nov 2010 01:14:09 +0000 (02:14 +0100)]
s3/smbtorture: use $MAKE to build to make sure we use the make that makes our build

13 years agoѕ3/configue: set Tru64 cc's PIC switch right (none)
Björn Jacke [Fri, 26 Nov 2010 00:32:53 +0000 (01:32 +0100)]
ѕ3/configue: set Tru64 cc's PIC switch right (none)

-fPIC made shared library builds fail there

13 years agos4-dsdb Remove rootDSE and anonymous checks from acl_read
Andrew Bartlett [Thu, 25 Nov 2010 05:17:10 +0000 (16:17 +1100)]
s4-dsdb Remove rootDSE and anonymous checks from acl_read

The rootdse module handles rootDSE requests, and blocks anonymous
access, so we on't need to do it again here.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Nov 26 00:36:19 CET 2010 on sn-devel-104

13 years agos4-dsdb Add 'block anonymous' checks to the rootdse module
Andrew Bartlett [Thu, 25 Nov 2010 05:13:17 +0000 (16:13 +1100)]
s4-dsdb Add 'block anonymous' checks to the rootdse module

This ensures that one single point checks for and blocks anonymous
read access to the database over LDAP.

Andrew Bartlett

13 years agos4-dsdb Remove mem_ctx argument from dsdb_module_find_dsheuristics().
Andrew Bartlett [Thu, 25 Nov 2010 05:12:39 +0000 (16:12 +1100)]
s4-dsdb Remove mem_ctx argument from dsdb_module_find_dsheuristics().

A function that does not return memory should not take a memory context.

Andrew Bartlett

13 years agos4-tests: Made acl tests to reconnect if dSHeuristics is being manipulated
Nadezhda Ivanova [Thu, 25 Nov 2010 19:01:05 +0000 (21:01 +0200)]
s4-tests: Made acl tests to reconnect if dSHeuristics is being manipulated

Also made password tests set dSHeuristics only once rather that once per test.

Autobuild-User: Nadezhda Ivanova <nivanova@samba.org>
Autobuild-Date: Thu Nov 25 20:48:38 CET 2010 on sn-devel-104

13 years agos4-tests: Modified create_ou to only accept security.descriptor type for sd to avoid...
Nadezhda Ivanova [Thu, 25 Nov 2010 17:57:51 +0000 (19:57 +0200)]
s4-tests: Modified create_ou to only accept security.descriptor type for sd to avoid confusion

It used to work with sddl as well, but this is confusing and could lead to errors. It also caused a message about tallocing a security descriptor to appear.

Autobuild-User: Nadezhda Ivanova <nivanova@samba.org>
Autobuild-Date: Thu Nov 25 19:46:42 CET 2010 on sn-devel-104

13 years agos4-dsdb: Switched to using a dictionary in create_ou for consistency.
Nadezhda Ivanova [Thu, 25 Nov 2010 12:25:28 +0000 (14:25 +0200)]
s4-dsdb: Switched to using a dictionary in create_ou for consistency.

Autobuild-User: Nadezhda Ivanova <nivanova@samba.org>
Autobuild-Date: Thu Nov 25 14:12:52 CET 2010 on sn-devel-104

13 years agos4-dsdb: Fixed wrong assignment of name attribute to description atribute in create_ou.
Nadezhda Ivanova [Thu, 25 Nov 2010 12:02:51 +0000 (14:02 +0200)]
s4-dsdb: Fixed wrong assignment of name attribute to description atribute in create_ou.

13 years agos4:lsa RPC server / objectclass LDB module - fix the creation of trusted domain objects
Matthias Dieter Wallnöfer [Thu, 25 Nov 2010 08:33:47 +0000 (09:33 +0100)]
s4:lsa RPC server / objectclass LDB module - fix the creation of trusted domain objects

Tridge pointed out that it is to dangerous to allow them to be created
with SYSTEM permissions. The solution using the "untrusted" flag should
be much more viable.

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Thu Nov 25 13:05:56 CET 2010 on sn-devel-104

13 years agos4-tests: Modified speedtest.py to use samba.tests.delete_force
Nadezhda Ivanova [Wed, 24 Nov 2010 23:16:14 +0000 (01:16 +0200)]
s4-tests: Modified speedtest.py to use samba.tests.delete_force

Autobuild-User: Nadezhda Ivanova <nivanova@samba.org>
Autobuild-Date: Thu Nov 25 01:28:19 CET 2010 on sn-devel-104

13 years agos4-tests: Modified sec_descriptor.py to use samba.tests.delete_force
Nadezhda Ivanova [Wed, 24 Nov 2010 23:15:24 +0000 (01:15 +0200)]
s4-tests: Modified sec_descriptor.py to use samba.tests.delete_force

13 years agos4-tests: Modified sam.py to use samba.tests.delete_force
Nadezhda Ivanova [Wed, 24 Nov 2010 23:14:58 +0000 (01:14 +0200)]
s4-tests: Modified sam.py to use samba.tests.delete_force

13 years agos4-tests: Modified passwords.py to use samba.tests.delete_force
Nadezhda Ivanova [Wed, 24 Nov 2010 23:13:47 +0000 (01:13 +0200)]
s4-tests: Modified passwords.py to use samba.tests.delete_force

13 years agos4-tests: delete_force was unused, removed it.
Nadezhda Ivanova [Wed, 24 Nov 2010 23:13:24 +0000 (01:13 +0200)]
s4-tests: delete_force was unused, removed it.

13 years agos4-tests: Modified ldap_schema.py to use samba.tests.delete_force
Nadezhda Ivanova [Wed, 24 Nov 2010 23:12:42 +0000 (01:12 +0200)]
s4-tests: Modified ldap_schema.py to use samba.tests.delete_force

13 years agos4-tests: Modified ldap.py to use samba.tests.delete_force
Nadezhda Ivanova [Wed, 24 Nov 2010 23:12:18 +0000 (01:12 +0200)]
s4-tests: Modified ldap.py to use samba.tests.delete_force

13 years agos4-tests: Modified deletetest.py to use samba.tests.delete_force
Nadezhda Ivanova [Wed, 24 Nov 2010 23:11:57 +0000 (01:11 +0200)]
s4-tests: Modified deletetest.py to use samba.tests.delete_force

13 years agos4-tests: Modified bind.py to use samba.tests.delete_force
Nadezhda Ivanova [Wed, 24 Nov 2010 23:11:29 +0000 (01:11 +0200)]
s4-tests: Modified bind.py to use samba.tests.delete_force

13 years agos4-tests: Modified acly.py to use common delete_force instead of defining its own.
Nadezhda Ivanova [Wed, 24 Nov 2010 15:48:56 +0000 (17:48 +0200)]
s4-tests: Modified acly.py to use common delete_force instead of defining its own.

13 years agos4-tests: Added a common definition of delete_force.
Nadezhda Ivanova [Wed, 24 Nov 2010 15:47:27 +0000 (17:47 +0200)]
s4-tests: Added a common definition of delete_force.

13 years agos4-smbtorture: pick a better printer in RPC-SPOOLSS-ACCESS.
Günther Deschner [Wed, 24 Nov 2010 09:57:09 +0000 (10:57 +0100)]
s4-smbtorture: pick a better printer in RPC-SPOOLSS-ACCESS.

Guenther

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

13 years agos4:objectclass LDB module - LSA objects - allow them if the SYSTEM control is specified
Matthias Dieter Wallnöfer [Tue, 23 Nov 2010 14:15:09 +0000 (15:15 +0100)]
s4:objectclass LDB module - LSA objects - allow them if the SYSTEM control is specified

This fits better than the RELAX one.

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Wed Nov 24 18:23:01 CET 2010 on sn-devel-104

13 years agos4:objectclass LDB module - move one checks into the "objectclass derivation loop"
Matthias Dieter Wallnöfer [Tue, 23 Nov 2010 14:07:49 +0000 (15:07 +0100)]
s4:objectclass LDB module - move one checks into the "objectclass derivation loop"

This denies objects created from possible derivated classes from the prohibited
ones.

Also small cosmetic improvements for another check.

13 years agos4:objectclass LDB module - some more or less cosmetic return value macro changes
Matthias Dieter Wallnöfer [Wed, 24 Nov 2010 16:02:35 +0000 (17:02 +0100)]
s4:objectclass LDB module - some more or less cosmetic return value macro changes

Sometimes "ldb_module_oom" fits better than "ldb_operr" or "ldb_oom".

13 years agos4-tests: Modified sec_descriptor to use samdb.newgroup instead of locally defined...
Nadezhda Ivanova [Wed, 24 Nov 2010 15:18:09 +0000 (17:18 +0200)]
s4-tests: Modified sec_descriptor to use samdb.newgroup instead of locally defined method.

Autobuild-User: Nadezhda Ivanova <nivanova@samba.org>
Autobuild-Date: Wed Nov 24 17:38:28 CET 2010 on sn-devel-104

13 years agos4-dsdb: Extended samdb.newgroup to set the group's security descriptor.
Nadezhda Ivanova [Wed, 24 Nov 2010 15:17:15 +0000 (17:17 +0200)]
s4-dsdb: Extended samdb.newgroup to set the group's security descriptor.

13 years agos3:winbind correct a copy&paste error
Christian Ambach [Wed, 24 Nov 2010 10:57:59 +0000 (11:57 +0100)]
s3:winbind correct a copy&paste error

negative results of sid->gid lookups should be stored with
idmap_cache_set_sid2gid instead of idmap_cache_set_sid2uid

This seems to be a copy&paste error when similar logic from the
sid2uid path was copied here in 84b88f4b.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Nov 24 16:53:01 CET 2010 on sn-devel-104

13 years agos3: Correctly calculate the wbinfo -s result
Volker Lendecke [Tue, 23 Nov 2010 13:28:45 +0000 (14:28 +0100)]
s3: Correctly calculate the wbinfo -s result