anatoliy/anatoliy.git
13 years agoAdd make_default_filesystem_acl() function to be used in following change to acl_xatt...
Jeremy Allison [Fri, 15 Oct 2010 22:53:51 +0000 (15:53 -0700)]
Add make_default_filesystem_acl() function to be used in following change to acl_xattr and acl_tdb module.

13 years agoFix handling of "NULL" DACL. Map to u/g/w - rwx.
Jeremy Allison [Fri, 15 Oct 2010 22:42:44 +0000 (15:42 -0700)]
Fix handling of "NULL" DACL. Map to u/g/w - rwx.

Jeremy.

13 years agoFix "force unknown ACL user" to strip out foreign SIDs from POSIX ACLs if they can...
Jeremy Allison [Fri, 15 Oct 2010 22:28:23 +0000 (15:28 -0700)]
Fix "force unknown ACL user" to strip out foreign SIDs from POSIX ACLs if they can't be mapped.

13 years agoAdd debug message to get_nt_acl_internal() to see what we got.
Jeremy Allison [Fri, 15 Oct 2010 21:18:22 +0000 (14:18 -0700)]
Add debug message to get_nt_acl_internal() to see what we got.

13 years agoFix valgrind "uninitialized read" error on "info" when returning !NT_STATUS_OK.
Jeremy Allison [Fri, 15 Oct 2010 21:16:30 +0000 (14:16 -0700)]
Fix valgrind "uninitialized read" error on "info" when returning !NT_STATUS_OK.

Jeremy.

13 years agoFix bug #7734 - When creating files with "inherit ACLs" set to true, we neglect to...
Jeremy Allison [Fri, 15 Oct 2010 21:12:04 +0000 (14:12 -0700)]
Fix bug #7734 - When creating files with "inherit ACLs" set to true, we neglect to apply appropriate create masks.

Jeremy.

13 years agoFix bug #7733 - Invalid client DOS attributes on create can cause incorrect unix...
Jeremy Allison [Fri, 15 Oct 2010 20:30:07 +0000 (13:30 -0700)]
Fix bug #7733 - Invalid client DOS attributes on create can cause incorrect unix mode_t to be generated.

It turns out a client can send an NTCreateX call for a new file, but specify
FILE_ATTRIBUTE_DIRECTORY in the attribute list. Windows silently strips this,
but we don't - causing the unix_mode() function to go through the "mode bits
for new directory" codepath, instead of the "mode bits for new file" codepath.

Jeremy.

13 years agoheimdal Add missing dependencies on wind.
Jelmer Vernooij [Fri, 15 Oct 2010 22:38:29 +0000 (00:38 +0200)]
heimdal Add missing dependencies on wind.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Fri Oct 15 23:20:22 UTC 2010 on sn-devel-104

13 years agoheimdal_build: Allow using system wind.
Jelmer Vernooij [Fri, 15 Oct 2010 22:31:10 +0000 (00:31 +0200)]
heimdal_build: Allow using system wind.

Please note that to use the system wind library the user explicitly has
to specify --bundled-library=!wind . Without that option we will always
use the included wind library.

13 years agos4:torture/local/dbspeed.c - use LDB result constant
Matthias Dieter Wallnöfer [Fri, 15 Oct 2010 18:18:22 +0000 (20:18 +0200)]
s4:torture/local/dbspeed.c - use LDB result constant

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Fri Oct 15 19:11:32 UTC 2010 on sn-devel-104

13 years agos3-rpc_server: Normalize rpc_pipe_open_interface pipe name.
Andreas Schneider [Thu, 16 Sep 2010 08:49:39 +0000 (10:49 +0200)]
s3-rpc_server: Normalize rpc_pipe_open_interface pipe name.

Autobuild-User: Andreas Schneider <asn@samba.org>
Autobuild-Date: Fri Oct 15 12:15:45 UTC 2010 on sn-devel-104

13 years agos3-rpc_server: Make auth_serversupplied_info const.
Andreas Schneider [Wed, 15 Sep 2010 15:24:08 +0000 (17:24 +0200)]
s3-rpc_server: Make auth_serversupplied_info const.

13 years agos3-winbind: Fixed the build of idmap_rid.
Andreas Schneider [Fri, 15 Oct 2010 11:32:08 +0000 (13:32 +0200)]
s3-winbind: Fixed the build of idmap_rid.

13 years agos4-test: fixed a typo in test_kinit.sh
Andrew Tridgell [Fri, 15 Oct 2010 09:32:09 +0000 (20:32 +1100)]
s4-test: fixed a typo in test_kinit.sh

too many Ts

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Fri Oct 15 10:14:27 UTC 2010 on sn-devel-104

13 years agos4-test: fixed test_kinit.sh time command test
Andrew Tridgell [Fri, 15 Oct 2010 09:31:06 +0000 (20:31 +1100)]
s4-test: fixed test_kinit.sh time command test

passing -W breaks -k yes

13 years agos4-net: exit with a failure when a command is unknown
Andrew Tridgell [Fri, 15 Oct 2010 09:30:03 +0000 (20:30 +1100)]
s4-net: exit with a failure when a command is unknown

this ensures we don't pass bad tests in 'make test' if they call
unknown net commands

13 years agoscript: the --tests option has been replaced by --test-command
Andrew Tridgell [Fri, 15 Oct 2010 06:43:44 +0000 (17:43 +1100)]
script: the --tests option has been replaced by --test-command

13 years agos4-finddcs: better debug messages to help track down DNS problems
Andrew Tridgell [Fri, 15 Oct 2010 06:40:53 +0000 (17:40 +1100)]
s4-finddcs: better debug messages to help track down DNS problems

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

13 years agos4-net: fix the dependence on command line ordering
Andrew Tridgell [Fri, 15 Oct 2010 01:10:02 +0000 (12:10 +1100)]
s4-net: fix the dependence on command line ordering

this fixes python net commands where you use a '-' option before the
command name

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

13 years agos4:samdb_msg_add_int* - use "ldb_msg_add_string" rather than "samdb_msg_add_string"
Matthias Dieter Wallnöfer [Fri, 15 Oct 2010 08:27:51 +0000 (10:27 +0200)]
s4:samdb_msg_add_int* - use "ldb_msg_add_string" rather than "samdb_msg_add_string"

"ldb_msg_add_string" is safe here since the integer has already been converted
to a string which is "talloc"ed on "mem_ctx".

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Fri Oct 15 09:11:49 UTC 2010 on sn-devel-104

13 years agos4 param: change messaging directory name from messaging to msg
Matthieu Patou [Fri, 15 Oct 2010 06:16:46 +0000 (10:16 +0400)]
s4 param: change messaging directory name from messaging to msg

This saves 6 chars and as in some installation users tends to install
samba in directory with very long name they have a problem with the
sockets.
It will also ease the pain on buildfarms as we tend to have very long
environnement name (ie. vampire_dc) in path that are already quite long
leading also to errors on unix socket manipulation.

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Fri Oct 15 08:15:56 UTC 2010 on sn-devel-104

13 years agos4 dsdb: fix sign problem on PPC and x86
Matthieu Patou [Thu, 14 Oct 2010 13:56:23 +0000 (17:56 +0400)]
s4 dsdb: fix sign problem on PPC and x86

In LDAP we used signed intege and groups have the highest bit set (ie.
0x80000002). So it will result with values that are > 2^31 when these
value are used on some plateforms (x86 and PPC 64bits in this case) it
causes problem with strtol.

13 years agos4:lib/registry/util.c - cosmetic - fix indentation, trailing whitespaces
Matthias Dieter Wallnöfer [Thu, 14 Oct 2010 08:54:50 +0000 (10:54 +0200)]
s4:lib/registry/util.c - cosmetic - fix indentation, trailing whitespaces

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Fri Oct 15 07:27:07 UTC 2010 on sn-devel-104

13 years agos4:lib/registry/util.c - strtoll call - better say explicitly that data is in hex...
Matthias Dieter Wallnöfer [Thu, 14 Oct 2010 08:50:19 +0000 (10:50 +0200)]
s4:lib/registry/util.c - strtoll call - better say explicitly that data is in hex format

Template is commit deebc934edb9a0a70e7615b1161d7a60fcb1d78f from Wilco.

13 years agos4:ntptr/ntptr_simple_ldb.c - use LDB result constants
Matthias Dieter Wallnöfer [Thu, 14 Oct 2010 20:38:10 +0000 (22:38 +0200)]
s4:ntptr/ntptr_simple_ldb.c - use LDB result constants

13 years agos4:libnet_samsync_ldb.c - use LDB result constants
Matthias Dieter Wallnöfer [Thu, 14 Oct 2010 20:25:40 +0000 (22:25 +0200)]
s4:libnet_samsync_ldb.c - use LDB result constants

13 years agos4:lsa RPC server - use LDB result constant
Matthias Dieter Wallnöfer [Thu, 14 Oct 2010 19:54:26 +0000 (21:54 +0200)]
s4:lsa RPC server - use LDB result constant

13 years agos4:samldb LDB module - cosmetic - use "ldb" variable rather than "ldb_module_get_ctx"
Matthias Dieter Wallnöfer [Thu, 14 Oct 2010 15:00:19 +0000 (17:00 +0200)]
s4:samldb LDB module - cosmetic - use "ldb" variable rather than "ldb_module_get_ctx"

13 years agos4:samdb_create_foreign_security_principal - proof error code of "samdb_msg_add_string"
Matthias Dieter Wallnöfer [Thu, 14 Oct 2010 20:36:07 +0000 (22:36 +0200)]
s4:samdb_create_foreign_security_principal - proof error code of "samdb_msg_add_string"

13 years agos4:dsdb/common/util.c - samdb_msg_add_* calls - proof for more OOM conditions
Matthias Dieter Wallnöfer [Thu, 14 Oct 2010 20:43:33 +0000 (22:43 +0200)]
s4:dsdb/common/util.c - samdb_msg_add_* calls - proof for more OOM conditions

13 years agos4:dsdb/common/util.c - samdb_msg_add_string - the attribute name doesn't need to...
Matthias Dieter Wallnöfer [Thu, 14 Oct 2010 20:41:06 +0000 (22:41 +0200)]
s4:dsdb/common/util.c - samdb_msg_add_string - the attribute name doesn't need to be duplicated

This is done internally by the LDB library - look at "ldb_msg_add_empty".

13 years agos4:libds/common/flags.h - fix typo
Matthias Dieter Wallnöfer [Thu, 14 Oct 2010 09:31:44 +0000 (11:31 +0200)]
s4:libds/common/flags.h - fix typo

13 years agos4:dsdb - remove "samdb_msg_add_value"
Matthias Dieter Wallnöfer [Thu, 14 Oct 2010 19:54:51 +0000 (21:54 +0200)]
s4:dsdb - remove "samdb_msg_add_value"

This can be substituted by "ldb_msg_add_value".

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Oct 15 00:21:53 UTC 2010 on sn-devel-104

13 years agos4:dsdb - remove "samdb_result_uint", "samdb_result_int64", "samdb_result_uint64...
Matthias Dieter Wallnöfer [Thu, 14 Oct 2010 07:41:42 +0000 (09:41 +0200)]
s4:dsdb - remove "samdb_result_uint", "samdb_result_int64", "samdb_result_uint64" and "samdb_result_string"

We have ldb_msg_find_attr_as_* calls which do exactly the same. Therefore this
reduces only code redundancies.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
13 years agos3: Remove smbd_server_conn from construct_reply
Volker Lendecke [Sun, 3 Oct 2010 16:16:21 +0000 (18:16 +0200)]
s3: Remove smbd_server_conn from construct_reply

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Oct 14 12:35:07 UTC 2010 on sn-devel-104

13 years agos3: Lift smbd_server_conn from receive_smb_talloc
Volker Lendecke [Sun, 3 Oct 2010 16:13:39 +0000 (18:13 +0200)]
s3: Lift smbd_server_conn from receive_smb_talloc

13 years agos3: Lift smbd_server_conn from receive_smb_raw_talloc
Volker Lendecke [Sun, 3 Oct 2010 16:11:37 +0000 (18:11 +0200)]
s3: Lift smbd_server_conn from receive_smb_raw_talloc

13 years agos3: Lift smbd_server_conn from receive_smb_raw_talloc_partial_read
Volker Lendecke [Sun, 3 Oct 2010 16:08:51 +0000 (18:08 +0200)]
s3: Lift smbd_server_conn from receive_smb_raw_talloc_partial_read

13 years agos3: Remove some explicit smbd_server_conn refs in process_smb()
Volker Lendecke [Sun, 3 Oct 2010 16:05:17 +0000 (18:05 +0200)]
s3: Remove some explicit smbd_server_conn refs in process_smb()

13 years agos3: Rename "conn" to the more used "sconn" in process_smb()
Volker Lendecke [Sun, 3 Oct 2010 16:04:05 +0000 (18:04 +0200)]
s3: Rename "conn" to the more used "sconn" in process_smb()

13 years agos4:samldb LDB module - attempt to fix integer handling on big-endian platforms
Matthias Dieter Wallnöfer [Thu, 14 Oct 2010 07:11:04 +0000 (09:11 +0200)]
s4:samldb LDB module - attempt to fix integer handling on big-endian platforms

And beside this it's also nicer to use standard LDB functions for type
conversions.

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Thu Oct 14 08:26:53 UTC 2010 on sn-devel-104

13 years agos4-waf: automatically remove stale C and header files
Andrew Tridgell [Thu, 14 Oct 2010 05:24:50 +0000 (16:24 +1100)]
s4-waf: automatically remove stale C and header files

this prevents stale .c and .h files in bin/ from causing build
problems

Thanks to Thomas Nagy for the example implementation!

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Oct 14 07:44:13 UTC 2010 on sn-devel-104

13 years agos4-heimdal: fixed some trailing commas in heimdal build
Andrew Tridgell [Thu, 14 Oct 2010 05:23:45 +0000 (16:23 +1100)]
s4-heimdal: fixed some trailing commas in heimdal build

13 years agosecurity: ensure the merge of libcli/security doesn't change s3 behaviour
Andrew Tridgell [Thu, 14 Oct 2010 02:32:17 +0000 (13:32 +1100)]
security: ensure the merge of libcli/security doesn't change s3 behaviour

Jeremy, you put a #if 0 around this logic in this commit:

  8344e945 (Jeremy Allison    2008-10-31 10:51:45 -0700 181)

is this still needed?

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

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Oct 14 03:16:41 UTC 2010 on sn-devel-104

13 years agolibcli/security Use static SIDs rather than parsing from strings
Andrew Bartlett [Mon, 20 Sep 2010 21:14:38 +0000 (07:14 +1000)]
libcli/security Use static SIDs rather than parsing from strings

This should make the security_token_is_*() calls a little faster.

Andrew Bartlett

Signed-off-by: Andrew Tridgell <tridge@samba.org>
13 years agolibcli/auth Merge source4/libcli/security and util_sid.c into the common code
Andrew Bartlett [Sat, 18 Sep 2010 02:55:31 +0000 (12:55 +1000)]
libcli/auth Merge source4/libcli/security and util_sid.c into the common code

This should ensure we only have one copy of these core functions
in the tree.

Andrew Bartlett

Signed-off-by: Andrew Tridgell <tridge@samba.org>
13 years agolibcli/security Define traditional constants in terms of IDL macros
Andrew Bartlett [Mon, 20 Sep 2010 04:48:00 +0000 (14:48 +1000)]
libcli/security Define traditional constants in terms of IDL macros

The source3/ code uses these constants in a lot of places, and it will
take time and care to rename them, if that is desired.  Linking the
macros here will at least allow common code to use the IDL based macros,
and preserve a documentary link between the constants (other than just their value)

Andrew Bartlett

Signed-off-by: Andrew Tridgell <tridge@samba.org>
13 years agolibcli/security Move source3/lib/util_seaccess.c into the common code
Andrew Bartlett [Sat, 18 Sep 2010 01:06:02 +0000 (11:06 +1000)]
libcli/security Move source3/lib/util_seaccess.c into the common code

Signed-off-by: Andrew Tridgell <tridge@samba.org>
13 years agos4-acl Merge sec_access_check() with se_access_check() from source3/
Andrew Bartlett [Sat, 18 Sep 2010 00:58:10 +0000 (10:58 +1000)]
s4-acl Merge sec_access_check() with se_access_check() from source3/

Andrew Bartlett

Signed-off-by: Andrew Tridgell <tridge@samba.org>
13 years agos3-acl Use uint32_t for counting the ACEs
Andrew Bartlett [Sat, 18 Sep 2010 00:54:37 +0000 (10:54 +1000)]
s3-acl Use uint32_t for counting the ACEs

Signed-off-by: Andrew Tridgell <tridge@samba.org>
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