samba.git
13 years agos3-acl Merge source4-supported privileges into se_access_check
Andrew Bartlett [Sat, 18 Sep 2010 00:29:02 +0000 (10:29 +1000)]
s3-acl Merge source4-supported privileges into se_access_check

This will shortly be the common se_access_check function.

Andrew Bartlett

Signed-off-by: Andrew Tridgell <tridge@samba.org>
13 years agos3-util_nttoken.c Also copy the rights_mask when copying a security_token
Andrew Bartlett [Fri, 17 Sep 2010 06:23:53 +0000 (16:23 +1000)]
s3-util_nttoken.c Also copy the rights_mask when copying a security_token

These are unused in source3/ code at the moment, but it would be
unfortunate if that were to change, and this function not be updated.

Andrew Bartlett

Signed-off-by: Andrew Tridgell <tridge@samba.org>
13 years agos3-auth Use security_token_debug() from common code
Andrew Bartlett [Fri, 17 Sep 2010 05:31:28 +0000 (15:31 +1000)]
s3-auth Use security_token_debug() from common code

This prints the security token including the privileges as strings
instead of just a bitmap.

Andrew Bartlett

Signed-off-by: Andrew Tridgell <tridge@samba.org>
13 years agos3-auth use security_token_has_sid() from the common code
Andrew Bartlett [Fri, 17 Sep 2010 04:55:56 +0000 (14:55 +1000)]
s3-auth use security_token_has_sid() from the common code

The wrapper call is left here to avoid changing semantics for
the NULL parameter case.

Andrew Bartlett

Signed-off-by: Andrew Tridgell <tridge@samba.org>
13 years agos3 Replace is_sid_in_token() with security_token_has_sid() from common code
Andrew Bartlett [Fri, 17 Sep 2010 03:08:59 +0000 (13:08 +1000)]
s3 Replace is_sid_in_token() with security_token_has_sid() from common code

The two routines are identical, so there is no need to keep both.

Andrew Bartlett

Signed-off-by: Andrew Tridgell <tridge@samba.org>
13 years agos4: show samba version in bin/samba -b
Andrew Tridgell [Thu, 14 Oct 2010 01:42:40 +0000 (12:42 +1100)]
s4: show samba version in bin/samba -b

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Oct 14 02:24:47 UTC 2010 on sn-devel-104

13 years agos4:samldb LDB module - cosmetic fixups
Matthias Dieter Wallnöfer [Wed, 13 Oct 2010 20:13:37 +0000 (22:13 +0200)]
s4:samldb LDB module - cosmetic fixups

- Update the module description
- Fix indentation

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Wed Oct 13 20:55:18 UTC 2010 on sn-devel-104

13 years agoheimdal: Add soname for com_err.
Jelmer Vernooij [Wed, 13 Oct 2010 19:18:05 +0000 (21:18 +0200)]
heimdal: Add soname for com_err.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Oct 13 20:00:40 UTC 2010 on sn-devel-104

13 years agoheimdal: Add sonames.
Jelmer Vernooij [Wed, 13 Oct 2010 16:39:04 +0000 (18:39 +0200)]
heimdal: Add sonames.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Oct 13 18:15:04 UTC 2010 on sn-devel-104

13 years agosamdb: Set soname.
Jelmer Vernooij [Wed, 13 Oct 2010 16:00:10 +0000 (18:00 +0200)]
samdb: Set soname.

13 years agos4:sam.py - tests for "userAccountControl" attribute
Matthias Dieter Wallnöfer [Wed, 13 Oct 2010 14:41:54 +0000 (16:41 +0200)]
s4:sam.py - tests for "userAccountControl" attribute

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Wed Oct 13 17:31:29 UTC 2010 on sn-devel-104

13 years agos4:samldb LDB module - deny creation of temporary duplicate accounts
Matthias Dieter Wallnöfer [Wed, 13 Oct 2010 15:06:28 +0000 (17:06 +0200)]
s4:samldb LDB module - deny creation of temporary duplicate accounts

13 years agos4:samldb LDB module - proof the account type also on LDB modify operations
Matthias Dieter Wallnöfer [Wed, 13 Oct 2010 14:32:50 +0000 (16:32 +0200)]
s4:samldb LDB module - proof the account type also on LDB modify operations

13 years agoldb: Only build LIBLDB_MAIN when building ldb itself.
Jelmer Vernooij [Wed, 13 Oct 2010 14:59:45 +0000 (16:59 +0200)]
ldb: Only build LIBLDB_MAIN when building ldb itself.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Oct 13 15:41:29 UTC 2010 on sn-devel-104

13 years agos4:sam.py - add a test for the group type changing behaviour
Matthias Dieter Wallnöfer [Thu, 7 Oct 2010 07:59:29 +0000 (09:59 +0200)]
s4:sam.py - add a test for the group type changing behaviour

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Wed Oct 13 14:17:31 UTC 2010 on sn-devel-104

13 years agos4:samldb LDB module - support the group type changing properly
Matthias Dieter Wallnöfer [Thu, 7 Oct 2010 07:23:04 +0000 (09:23 +0200)]
s4:samldb LDB module - support the group type changing properly

This is exactly that what Windows allows. It was proven by a blackbox test.

And we also need to deny add operations of builtin groups.

13 years agos4:ldap.py - test the "isCriticalSystemObject" behaviour
Matthias Dieter Wallnöfer [Wed, 6 Oct 2010 17:40:42 +0000 (19:40 +0200)]
s4:ldap.py - test the "isCriticalSystemObject" behaviour

13 years agos4:setup/provision_self_join.ldif - let the samldb LDB module fill in "isCriticalSyst...
Matthias Dieter Wallnöfer [Thu, 7 Oct 2010 06:24:29 +0000 (08:24 +0200)]
s4:setup/provision_self_join.ldif - let the samldb LDB module fill in "isCriticalSystemObject"

It recognizes it now automatically.

13 years agos4:samldb LDB module - deny also the direct modification of "isCriticalSystemObject...
Matthias Dieter Wallnöfer [Wed, 6 Oct 2010 17:30:56 +0000 (19:30 +0200)]
s4:samldb LDB module - deny also the direct modification of "isCriticalSystemObject" on modify operations

13 years agos4:objectclass LDB module - deny the creation of "isCriticalSystemObject" entries
Matthias Dieter Wallnöfer [Mon, 11 Oct 2010 16:41:05 +0000 (18:41 +0200)]
s4:objectclass LDB module - deny the creation of "isCriticalSystemObject" entries

They're only allowed to be created with the RELAX control specified.

13 years agos4:samldb LDB module - first implementation of the samldb primary group trigger
Matthias Dieter Wallnöfer [Sun, 12 Sep 2010 16:19:56 +0000 (18:19 +0200)]
s4:samldb LDB module - first implementation of the samldb primary group trigger

This was done according to MS-SAMR 3.1.1.8.2

But do use it only for add operations at the moment.

13 years agos4:samldb LDB module - use the new "objectclass_trigger" for add operations
Matthias Dieter Wallnöfer [Wed, 6 Oct 2010 12:16:17 +0000 (14:16 +0200)]
s4:samldb LDB module - use the new "objectclass_trigger" for add operations

Additionally clean up "samldb_fill_object" which is now much easier to
comprehend.

13 years agos4:samldb LDB module - first implementation of the samldb objectclass trigger
Matthias Dieter Wallnöfer [Sun, 12 Sep 2010 16:19:56 +0000 (18:19 +0200)]
s4:samldb LDB module - first implementation of the samldb objectclass trigger

This was done according to MS-SAMR 3.1.1.8.1

I need to perform some RELAX checks since otherwise the provision wouldn't work
anymore.

13 years agoldb:ldb_match.c - fix a counter type
Matthias Dieter Wallnöfer [Wed, 13 Oct 2010 12:03:09 +0000 (14:03 +0200)]
ldb:ldb_match.c - fix a counter type

13 years agos3:gpfs: Add support for the gpfs_ftruncate call
Christian Ambach [Fri, 8 Oct 2010 11:43:17 +0000 (13:43 +0200)]
s3:gpfs: Add support for the gpfs_ftruncate call

ported from the v3-4-ctdb branch to master
This used to be commit 1f138cc9f4a

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Oct 13 13:34:25 UTC 2010 on sn-devel-104

13 years agos3:vfs:gpfs convert sharemodes/leases parameter
Christian Ambach [Fri, 8 Oct 2010 11:15:57 +0000 (13:15 +0200)]
s3:vfs:gpfs convert sharemodes/leases parameter

convert gpfs:sharemodes and gpfs:leases parameters from a global setting
to a per share setting

13 years agos3:vfs:syncops add option to disable module per share
Christian Ambach [Thu, 7 Oct 2010 14:56:19 +0000 (16:56 +0200)]
s3:vfs:syncops add option to disable module per share

add an option to disable the syncops module completely for a
share with
  syncops:disable = true

13 years agos3:vfs:syncops make it possible to specify syncops:onclose per share
Christian Ambach [Thu, 7 Oct 2010 14:09:52 +0000 (16:09 +0200)]
s3:vfs:syncops make it possible to specify syncops:onclose per share

convert the onclose option of the vfs_syncops module from a
global option to a service-specific one

as preparation for further flags, use a struct to store in the VFS handle
instead of just the onclose flag

13 years agowafsamba/developer: Forbid shared objects with unresolved symbols, if
Jelmer Vernooij [Wed, 13 Oct 2010 12:10:58 +0000 (14:10 +0200)]
wafsamba/developer: Forbid shared objects with unresolved symbols, if
the linker supports such a flag.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Oct 13 12:52:22 UTC 2010 on sn-devel-104

13 years agowafsamba: Don't allow circular dependencies involving libraries by
Jelmer Vernooij [Wed, 13 Oct 2010 11:58:25 +0000 (13:58 +0200)]
wafsamba: Don't allow circular dependencies involving libraries by
default.

13 years agodsdb/schema_data: Build as shared object.
Jelmer Vernooij [Wed, 13 Oct 2010 00:47:33 +0000 (02:47 +0200)]
dsdb/schema_data: Build as shared object.

13 years agodsdb/schema_load: Build as shared object.
Jelmer Vernooij [Wed, 13 Oct 2010 00:36:06 +0000 (02:36 +0200)]
dsdb/schema_load: Build as shared object.

13 years agosamdb: Build as library.
Jelmer Vernooij [Wed, 13 Oct 2010 00:27:20 +0000 (02:27 +0200)]
samdb: Build as library.

13 years agoldb: raise minor version number for new ldb_msg_match_error() function
Andrew Tridgell [Wed, 13 Oct 2010 10:48:01 +0000 (21:48 +1100)]
ldb: raise minor version number for new ldb_msg_match_error() function

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

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Oct 13 11:42:18 UTC 2010 on sn-devel-104

13 years agos4-ldb: take advantage of ldb_match_msg_error() in more places
Andrew Tridgell [Wed, 13 Oct 2010 09:58:38 +0000 (20:58 +1100)]
s4-ldb: take advantage of ldb_match_msg_error() in more places

this gives better error checking

13 years agos4-schema: don't name variables after standard libc functions
Andrew Tridgell [Wed, 13 Oct 2010 09:58:01 +0000 (20:58 +1100)]
s4-schema: don't name variables after standard libc functions

13 years agos4-ldb: use operator_fn syntax function in ldb_match code
Andrew Tridgell [Wed, 13 Oct 2010 09:48:27 +0000 (20:48 +1100)]
s4-ldb: use operator_fn syntax function in ldb_match code

this also fixes error handling in case of bad syntax, memory error
etc, which was previously conidered as a mismatch, but should return
an error

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

13 years agos4-ldb: implement an operator_fn for the ldb-samba syntaxes
Andrew Tridgell [Wed, 13 Oct 2010 09:27:52 +0000 (20:27 +1100)]
s4-ldb: implement an operator_fn for the ldb-samba syntaxes

this allows us to properly handle the LDB_OP_PRESENT operator on
deleted linked attributes

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

13 years agos4-ldb: added an optional operator_fn in the schema syntax
Andrew Tridgell [Wed, 13 Oct 2010 09:02:18 +0000 (20:02 +1100)]
s4-ldb: added an optional operator_fn in the schema syntax

this function takes the operator being invoked, which will allow
schema functions to provide more fine grained control over
comparisons.

The key bug this was introduced to fix is the incorrect handling of
the LDB_OP_PRESENT test for deleted linked attributes. The backends
are unaware of the deleted state of these links, so they cannot do a
LDB_OP_PRESENT test on their own.

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

13 years agos4-torture: zero all of trans before the test starts
Andrew Tridgell [Wed, 13 Oct 2010 09:00:22 +0000 (20:00 +1100)]
s4-torture: zero all of trans before the test starts

13 years agos4-torture: fixed uninitialised variable error
Andrew Tridgell [Wed, 13 Oct 2010 08:42:45 +0000 (19:42 +1100)]
s4-torture: fixed uninitialised variable error

ret is uninitialised if the directory is empty

13 years agos4: don't rebuild all of heimdal when dynconfig options change
Andrew Tridgell [Wed, 13 Oct 2010 01:19:37 +0000 (12:19 +1100)]
s4: don't rebuild all of heimdal when dynconfig options change

only 2 files in heimdal depend on dynconfig variables

13 years agoautobuild: do make install after make test
Andrew Tridgell [Tue, 12 Oct 2010 23:43:44 +0000 (10:43 +1100)]
autobuild: do make install after make test

this ensures that commits that break uninstalled testing get caught by
autobuild in future

Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>

13 years agos4-dynconfig: use the build modules when running from build directory
Andrew Tridgell [Tue, 12 Oct 2010 23:37:22 +0000 (10:37 +1100)]
s4-dynconfig: use the build modules when running from build directory

we need to use the newly built modules when running from the build
directory to ensure we don't run tests against a stale install

Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>

13 years agoldb: when running from build directory, use the build modules
Andrew Tridgell [Tue, 12 Oct 2010 23:36:24 +0000 (10:36 +1100)]
ldb: when running from build directory, use the build modules

we need to use the build modules, not the installed modules, so tests
run from the source directory are valid

Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>

13 years agos4 rpc_server: fix a build error on freebsd
Matthieu Patou [Wed, 13 Oct 2010 10:06:46 +0000 (14:06 +0400)]
s4 rpc_server: fix a build error on freebsd

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Wed Oct 13 10:48:04 UTC 2010 on sn-devel-104

13 years agotorture/becomedc: Add test for global schema, use samdb_connect().
Jelmer Vernooij [Tue, 12 Oct 2010 17:53:47 +0000 (19:53 +0200)]
torture/becomedc: Add test for global schema, use samdb_connect().

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue Oct 12 18:35:33 UTC 2010 on sn-devel-104

13 years agowafsamba: Warn about circular dependencies between libraries.
Jelmer Vernooij [Tue, 12 Oct 2010 11:27:40 +0000 (13:27 +0200)]
wafsamba: Warn about circular dependencies between libraries.

13 years agos3:registry: fix some trailing spaces in reg_backend_db
Michael Adam [Tue, 12 Oct 2010 13:32:16 +0000 (15:32 +0200)]
s3:registry: fix some trailing spaces in reg_backend_db

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Tue Oct 12 14:15:42 UTC 2010 on sn-devel-104

13 years agolibwbclient: Remove half-finished async implementation
Kai Blin [Tue, 12 Oct 2010 04:13:57 +0000 (06:13 +0200)]
libwbclient: Remove half-finished async implementation

The old approach on doing async libwbclient was never really finished.
Go ahead and remove this implementation.

Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Tue Oct 12 07:05:31 UTC 2010 on sn-devel-104

13 years agolibcli/security Provide a common, top level libcli/security/security.h
Andrew Bartlett [Tue, 12 Oct 2010 04:27:50 +0000 (15:27 +1100)]
libcli/security Provide a common, top level libcli/security/security.h

This will reduce the noise from merges of the rest of the
libcli/security code, without this commit changing what code
is actually used.

This includes (along with other security headers) dom_sid.h and
security_token.h

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Oct 12 05:54:10 UTC 2010 on sn-devel-104

13 years agolibcli/security Use common security.h
Andrew Bartlett [Mon, 20 Sep 2010 07:42:13 +0000 (17:42 +1000)]
libcli/security Use common security.h

This includes dom_sid.h and security_token.h and will be moved
to the top level shortly.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Oct 12 03:35:36 UTC 2010 on sn-devel-104

13 years agos4-credentials Allocate ldb result on correct memory context
Andrew Bartlett [Mon, 11 Oct 2010 23:05:32 +0000 (10:05 +1100)]
s4-credentials Allocate ldb result on correct memory context

13 years agos4-libcli/security Use seperate subsystem for session related functions
Andrew Bartlett [Mon, 20 Sep 2010 04:49:39 +0000 (14:49 +1000)]
s4-libcli/security Use seperate subsystem for session related functions

The merged I plan in this area require spliting security.h into
two header files, a common header and a session.h for the
remaining source4-specific code.

Andrew Bartlett

13 years agolibcli/security Add debug class to security_token_debug() et al
Andrew Bartlett [Fri, 17 Sep 2010 05:23:19 +0000 (15:23 +1000)]
libcli/security Add debug class to security_token_debug() et al

This will allow it to replace functions in source3 that use debug classes.

Andrew Bartlett

13 years agolib/debug Add DEBUGC and DEBUGADDC as dummies
Andrew Bartlett [Fri, 17 Sep 2010 05:18:57 +0000 (15:18 +1000)]
lib/debug Add DEBUGC and DEBUGADDC as dummies

This allows code that needs to also compile against the source3
debug code to compile in source4.

Andrew Bartlett

13 years agolibcli/security Move most of security_token.c to common code.
Andrew Bartlett [Fri, 17 Sep 2010 02:59:24 +0000 (12:59 +1000)]
libcli/security Move most of security_token.c to common code.

The source4-specific session_info functions have been left in session.c

Andrew Bartlett

13 years agoautobuild: send email failure if rebase fails
Andrew Tridgell [Tue, 12 Oct 2010 02:06:43 +0000 (13:06 +1100)]
autobuild: send email failure if rebase fails

users need to know if the rebase on master fails

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

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue Oct 12 02:53:15 UTC 2010 on sn-devel-104

13 years agoautobuild: add an extra blank line before the autobuild markers
Andrew Tridgell [Tue, 12 Oct 2010 02:06:16 +0000 (13:06 +1100)]
autobuild: add an extra blank line before the autobuild markers

13 years agos4: mark us as not supporting python3 yet
Andrew Tridgell [Tue, 12 Oct 2010 02:05:36 +0000 (13:05 +1100)]
s4: mark us as not supporting python3 yet

python3 works fine with waf fine, but our C interfaces need 2.x for
now

13 years agodsdb: Build more modules as shared objects.
Jelmer Vernooij [Tue, 12 Oct 2010 01:29:27 +0000 (03:29 +0200)]
dsdb: Build more modules as shared objects.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue Oct 12 02:12:29 UTC 2010 on sn-devel-104

13 years agoMake the vfs_acl_xattr and other modules work with NULL SD's. Fix
Jeremy Allison [Tue, 12 Oct 2010 00:15:39 +0000 (17:15 -0700)]
Make the vfs_acl_xattr and other modules work with NULL SD's. Fix
the "protected" inheritance problem (bleeding up from the POSIX
layer).

Jeremy

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Oct 12 00:57:41 UTC 2010 on sn-devel-104

13 years agoCanonicalize incoming and outgoing ACLs.
Jeremy Allison [Tue, 12 Oct 2010 00:10:28 +0000 (17:10 -0700)]
Canonicalize incoming and outgoing ACLs.

Jeremy.

13 years agoMake the posix ACL module cope with a NULL incoming DACL and a
Jeremy Allison [Tue, 12 Oct 2010 00:07:54 +0000 (17:07 -0700)]
Make the posix ACL module cope with a NULL incoming DACL and a
missing owner/group.

Jeremy.

13 years agodsdb: Build some more modules as shared objects.
Jelmer Vernooij [Mon, 11 Oct 2010 22:24:41 +0000 (00:24 +0200)]
dsdb: Build some more modules as shared objects.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Oct 11 23:22:33 UTC 2010 on sn-devel-104

13 years agodsdb: Build some more modules as shared object files.
Jelmer Vernooij [Mon, 11 Oct 2010 20:32:26 +0000 (22:32 +0200)]
dsdb: Build some more modules as shared object files.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Oct 11 21:13:25 UTC 2010 on sn-devel-104

13 years agoselftest: Avoid check_call(), use call() instead. This should fix
Jelmer Vernooij [Mon, 11 Oct 2010 19:03:10 +0000 (21:03 +0200)]
selftest: Avoid check_call(), use call() instead. This should fix
Python2.4 compatibility.

13 years agodsdb: Build some more modules as .so files.
Jelmer Vernooij [Mon, 11 Oct 2010 18:33:31 +0000 (20:33 +0200)]
dsdb: Build some more modules as .so files.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Oct 11 19:14:58 UTC 2010 on sn-devel-104

13 years agowins_ldb: Build as shared library.
Jelmer Vernooij [Mon, 11 Oct 2010 17:32:22 +0000 (19:32 +0200)]
wins_ldb: Build as shared library.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Oct 11 18:15:19 UTC 2010 on sn-devel-104

13 years agoland-remote: Fix --fail-slowly.
Jelmer Vernooij [Mon, 11 Oct 2010 13:42:14 +0000 (15:42 +0200)]
land-remote: Fix --fail-slowly.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Oct 11 15:54:31 UTC 2010 on sn-devel-104

13 years agoldb: Build ildap module as shared object.
Jelmer Vernooij [Mon, 11 Oct 2010 13:09:23 +0000 (15:09 +0200)]
ldb: Build ildap module as shared object.

13 years agosamdb_common, ntlm: Add missing dependency on libsamba-hostconfig.
Jelmer Vernooij [Mon, 11 Oct 2010 12:31:58 +0000 (14:31 +0200)]
samdb_common, ntlm: Add missing dependency on libsamba-hostconfig.

13 years agopopt_credentials: Implement pending machine account manually, rather than through...
Jelmer Vernooij [Sun, 10 Oct 2010 17:17:40 +0000 (19:17 +0200)]
popt_credentials: Implement pending machine account manually, rather than through credentials.

13 years agopidl: fix minor typo in s3 server generation.
Günther Deschner [Mon, 11 Oct 2010 10:38:05 +0000 (12:38 +0200)]
pidl: fix minor typo in s3 server generation.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Oct 11 15:12:57 UTC 2010 on sn-devel-104

13 years agos3-spoolss: add more userlevel info validation to _spoolss_OpenPrinterEx.
Günther Deschner [Mon, 11 Oct 2010 09:33:23 +0000 (11:33 +0200)]
s3-spoolss: add more userlevel info validation to _spoolss_OpenPrinterEx.

Guenther

13 years agos3-spoolss: let set_printer_hnd_name return WERROR.
Günther Deschner [Mon, 4 Oct 2010 18:27:20 +0000 (20:27 +0200)]
s3-spoolss: let set_printer_hnd_name return WERROR.

Guenther

13 years agos3-spoolss: convert open_printer_hnd to return WERROR.
Günther Deschner [Mon, 4 Oct 2010 09:02:52 +0000 (11:02 +0200)]
s3-spoolss: convert open_printer_hnd to return WERROR.

Guenther

13 years agos3-spoolss: fix set_printer_hnd_name() to match torture test.
Günther Deschner [Sat, 2 Oct 2010 20:14:37 +0000 (22:14 +0200)]
s3-spoolss: fix set_printer_hnd_name() to match torture test.

Guenther

13 years agos4-smbtorture: add test for openprinter printername pattern.
Günther Deschner [Sat, 2 Oct 2010 20:13:44 +0000 (22:13 +0200)]
s4-smbtorture: add test for openprinter printername pattern.

Guenther

13 years agounit tests: do some cleanup after tests
Matthieu Patou [Mon, 11 Oct 2010 09:44:35 +0000 (13:44 +0400)]
unit tests: do some cleanup after tests

fix

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Mon Oct 11 14:29:10 UTC 2010 on sn-devel-104

13 years agotorture: Add debug on what we are removing
Matthieu Patou [Mon, 11 Oct 2010 09:44:10 +0000 (13:44 +0400)]
torture: Add debug on what we are removing

13 years agos4:smbtorture Create a new random output directory each time, and delete it
Andrew Bartlett [Tue, 6 Jul 2010 05:25:54 +0000 (15:25 +1000)]
s4:smbtorture Create a new random output directory each time, and delete it

This ensures we don't delete an exiting directory.

Andrew Bartlett

Signed-off-by: Matthieu Patou <mat@matws.net>
13 years agolib/torture: Add function to clean up the output directory
Andrew Bartlett [Tue, 6 Jul 2010 05:22:31 +0000 (15:22 +1000)]
lib/torture:  Add function to clean up the output directory

This helps to avoid leaving 85MB of provision around for every
NET-API-BECOME-DC test.

Andrew Bartlett

Signed-off-by: Matthieu Patou <mat@matws.net>
13 years agoldb The use of a private event context isn't a hack
Andrew Bartlett [Mon, 11 Oct 2010 06:22:24 +0000 (17:22 +1100)]
ldb The use of a private event context isn't a hack

This is deliberate behaviour.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Oct 11 13:45:14 UTC 2010 on sn-devel-104

13 years agos4-ldb Allow a NULL event context in samba_ldb_init()
Andrew Bartlett [Mon, 11 Oct 2010 06:26:52 +0000 (17:26 +1100)]
s4-ldb Allow a NULL event context in samba_ldb_init()

13 years agos4-ldb Don't use talloc_autofree_context() in ldb
Andrew Bartlett [Mon, 11 Oct 2010 06:20:19 +0000 (17:20 +1100)]
s4-ldb Don't use talloc_autofree_context() in ldb

The private event context only needs to live as long as ldb itself.

Andrew Bartlett

13 years agos4-tevent Remove event_contex_find() and event_context_set_default()
Andrew Bartlett [Mon, 11 Oct 2010 06:08:33 +0000 (17:08 +1100)]
s4-tevent Remove event_contex_find() and event_context_set_default()

It is considered that it is better to create a new event context
rather than 'finding' some other event context, in the case
where we do not have one specified.

Andrew Bartlett

13 years agos4-smbd Remove event_context_set_default()
Andrew Bartlett [Mon, 11 Oct 2010 06:08:01 +0000 (17:08 +1100)]
s4-smbd Remove event_context_set_default()

The last callers to event_context_find() have been removed
so this is no longer required.

Andrew Bartlett

13 years agos4-credentials Add explicit event context handling to Kerberos calls (only)
Andrew Bartlett [Mon, 11 Oct 2010 05:53:08 +0000 (16:53 +1100)]
s4-credentials Add explicit event context handling to Kerberos calls (only)

By setting the event context to use for this operation (only) onto
the krb5_context just before we call that operation, we can try
and emulate the specification of an event context to the actual send_to_kdc()

This eliminates the specification of an event context to many other
cli_credentials calls, and the last use of event_context_find()

Special care is taken to restore the event context in the event of
nesting in the send_to_kdc function.

Andrew Bartlett

13 years agos4-param Refactor secrets code to not require an event context.
Andrew Bartlett [Mon, 11 Oct 2010 05:43:07 +0000 (16:43 +1100)]
s4-param Refactor secrets code to not require an event context.

A new event context is constructed by LDB when required for secrets.ldb
This will be essentially unused, as LDB on TDB will only trigger 'fake'
events, and blocks on transactions and lock operations anyway.

Andrew Bartlett

13 years agos4-kerberos Remove unused parameter
Andrew Bartlett [Mon, 11 Oct 2010 02:19:32 +0000 (13:19 +1100)]
s4-kerberos Remove unused parameter

13 years agos4-kerberos Remove unsued variable
Andrew Bartlett [Mon, 11 Oct 2010 02:19:18 +0000 (13:19 +1100)]
s4-kerberos Remove unsued variable

13 years agocredentials: Avoid unnecessary includes.
Jelmer Vernooij [Mon, 11 Oct 2010 12:11:05 +0000 (14:11 +0200)]
credentials: Avoid unnecessary includes.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Oct 11 13:01:36 UTC 2010 on sn-devel-104

13 years agoFix some warnings at higher -W levels in pidl generated code.
Tim Potter [Mon, 11 Oct 2010 11:34:57 +0000 (05:34 -0600)]
Fix some warnings at higher -W levels in pidl generated code.

Match data type for info levels to data type returned by utility
functions.

Autobuild-User: Tim Potter <tpot@samba.org>
Autobuild-Date: Mon Oct 11 12:18:22 UTC 2010 on sn-devel-104

13 years agoutil: Fix installation path of tevent_ntstatus.h, tevent_unix.h (bug 7720).
Jelmer Vernooij [Mon, 11 Oct 2010 08:33:21 +0000 (10:33 +0200)]
util: Fix installation path of tevent_ntstatus.h, tevent_unix.h (bug 7720).

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Oct 11 09:24:56 UTC 2010 on sn-devel-104

13 years agocredentials: Fix the build.
Jelmer Vernooij [Mon, 11 Oct 2010 02:05:37 +0000 (04:05 +0200)]
credentials: Fix the build.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Oct 11 02:47:50 UTC 2010 on sn-devel-104

13 years agocredentials: Split up into several subsystems.
Jelmer Vernooij [Mon, 11 Oct 2010 00:05:03 +0000 (02:05 +0200)]
credentials: Split up into several subsystems.

13 years agokerberos_util: Put into separate subsystem.
Jelmer Vernooij [Sun, 10 Oct 2010 23:28:45 +0000 (01:28 +0200)]
kerberos_util: Put into separate subsystem.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Oct 11 00:34:56 UTC 2010 on sn-devel-104

13 years agoauth: Remove unnecessary dependencies, fix formatting.
Jelmer Vernooij [Sun, 10 Oct 2010 23:23:20 +0000 (01:23 +0200)]
auth: Remove unnecessary dependencies, fix formatting.

13 years agocredentials: Move code that doesn't need any external dependencies into
Jelmer Vernooij [Sun, 10 Oct 2010 23:20:42 +0000 (01:20 +0200)]
credentials: Move code that doesn't need any external dependencies into
credentials.c.