samba.git
11 years agotestprogs/win32: add prepare_dcpromo tool
Stefan Metzmacher [Mon, 31 May 2010 08:02:38 +0000 (10:02 +0200)]
testprogs/win32: add prepare_dcpromo tool

This tool can set the DOMAIN-SID and nextRid counter in
the local SAM on windows servers (tested with w2k8r2)

dcpromo will use this values for the ad domain it creates.

This might be useful for upgrades from a Samba3 domain.

metze

11 years agos4/dsdb-test: fix usage comment
Kamen Mazdrashki [Tue, 22 Jun 2010 01:42:15 +0000 (04:42 +0300)]
s4/dsdb-test: fix usage comment

11 years agos4/test: fix DC password in selftest-vars.sh
Kamen Mazdrashki [Tue, 22 Jun 2010 01:41:49 +0000 (04:41 +0300)]
s4/test: fix DC password in selftest-vars.sh

11 years agos4 torture: RAW-SFILEINFO display warning instead of error on unsupported info level
Aravind Srinivasan [Thu, 21 Jan 2010 18:18:03 +0000 (18:18 +0000)]
s4 torture: RAW-SFILEINFO display warning instead of error on unsupported info level

Also add a test to make sure setting the directory attribute is
disallowed.

Signed-off-by: Tim Prouty <tprouty@samba.org>
11 years agosmbtorture: Fix missing includes.
James Peach [Mon, 21 Jun 2010 21:11:58 +0000 (14:11 -0700)]
smbtorture: Fix missing includes.

11 years agos4 upgradeprovision: fix the logging stuff so that it actually log
Matthieu Patou [Mon, 21 Jun 2010 07:24:18 +0000 (11:24 +0400)]
s4 upgradeprovision: fix the logging stuff so that it actually log

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agos3: Fix some valgrind errors
Volker Lendecke [Mon, 21 Jun 2010 20:20:10 +0000 (22:20 +0200)]
s3: Fix some valgrind errors

With -d 10, there were a ton of uninitialized variables: The "NegotiateFlags"
in the automatically parsed ntlmssp structures were not initialized.

This also cleans up the talloc use a bit: do early TALLOC_FREE()

Günther, please check!

Thanks,

Volker

11 years agosmbtorture: Fixx off-by-one command line parsing.
James Peach [Mon, 21 Jun 2010 18:09:45 +0000 (11:09 -0700)]
smbtorture: Fixx off-by-one command line parsing.

If we are not in shell mode we require both the target and test name
arguments. Make sure we process these from the correct index.

11 years agosmbtorture: Add "target" command to interactive shell.
James Peach [Tue, 23 Mar 2010 04:55:49 +0000 (21:55 -0700)]
smbtorture: Add "target" command to interactive shell.

Add a "target" command to set the target server to test. Refactor
the command line argument processing a little so that you can run
--shell without any additional arguments.

11 years agosmbtorture: Enhance shell "help" command.
James Peach [Mon, 22 Mar 2010 05:04:37 +0000 (22:04 -0700)]
smbtorture: Enhance shell "help" command.

Sort the command list alphabetically. Let the help command print
usage info for other commands.

11 years agosmbtorture: Add "auth" command to the shell.
James Peach [Mon, 22 Mar 2010 04:56:05 +0000 (21:56 -0700)]
smbtorture: Add "auth" command to the shell.

Add a new "auth" command to set the cmdline credentials from withing
the smbtorture shell.

11 years agosmbtorture: Refactor interactive shell into independent commands.
James Peach [Sat, 20 Mar 2010 05:04:08 +0000 (22:04 -0700)]
smbtorture: Refactor interactive shell into independent commands.

Refactor the smbtorture interactive shell into a set of independent
command callbacks to make it easier to add more independent commands.

11 years agosmbtorture: Move interactive shell into a separate file.
James Peach [Sat, 20 Mar 2010 04:24:15 +0000 (21:24 -0700)]
smbtorture: Move interactive shell into a separate file.

11 years agosmbtorture: Print global options for interactive "list" command.
James Peach [Fri, 19 Mar 2010 04:59:35 +0000 (21:59 -0700)]
smbtorture: Print global options for interactive "list" command.

11 years agosmbtorture: Add history support to shell mode.
James Peach [Fri, 19 Mar 2010 04:25:17 +0000 (21:25 -0700)]
smbtorture: Add history support to shell mode.

11 years agosmbtorture: Add list command to smbtorture shell.
James Peach [Fri, 19 Mar 2010 04:14:47 +0000 (21:14 -0700)]
smbtorture: Add list command to smbtorture shell.

11 years agos3-winbind: Make KRB5_EVENT_REFRESH_TIME a function
Volker Lendecke [Mon, 29 Mar 2010 14:13:14 +0000 (16:13 +0200)]
s3-winbind: Make KRB5_EVENT_REFRESH_TIME a function

11 years agolibcli/named_pipe_auth: fix error handling in _tstream_npa_connect_recv()
Stefan Metzmacher [Mon, 21 Jun 2010 14:20:25 +0000 (16:20 +0200)]
libcli/named_pipe_auth: fix error handling in _tstream_npa_connect_recv()

metze

11 years agolibcli/named_pipe_auth: fix memory handling for temporary data
Stefan Metzmacher [Mon, 21 Jun 2010 14:13:14 +0000 (16:13 +0200)]
libcli/named_pipe_auth: fix memory handling for temporary data

In a tevent_req based function tevent_req_create() should be the first
function! If it fails it's the only reason, why the function
could every return NULL.

And all temporary data belongs to 'state' and gets free'ed by
tevent_req_received() in the _recv function.

metze

11 years agotldap: Fix a type-punned warning
Volker Lendecke [Mon, 21 Jun 2010 06:47:38 +0000 (08:47 +0200)]
tldap: Fix a type-punned warning

11 years agotsocket: Fix some type-punned warnings
Volker Lendecke [Mon, 21 Jun 2010 06:42:58 +0000 (08:42 +0200)]
tsocket: Fix some type-punned warnings

11 years agos3: Fix some enum/int mixup warnings
Volker Lendecke [Mon, 21 Jun 2010 06:41:56 +0000 (08:41 +0200)]
s3: Fix some enum/int mixup warnings

11 years agos3: Remove an unreachable line of code
Volker Lendecke [Mon, 21 Jun 2010 06:39:54 +0000 (08:39 +0200)]
s3: Remove an unreachable line of code

11 years agos3: Fix a type-punned warning
Volker Lendecke [Mon, 21 Jun 2010 06:38:51 +0000 (08:38 +0200)]
s3: Fix a type-punned warning

11 years agos3:net rpc registry: make getsd succeed when key sd only gives access to SD not key...
Michael Adam [Mon, 21 Jun 2010 10:32:57 +0000 (12:32 +0200)]
s3:net rpc registry: make getsd succeed when key sd only gives access to SD not key contents

You don't need the REG_KEY_READ permissions to access the SD of a key.
And for instance, the key HKLM\security ususally has no specific bits
set for builtin\administrators, but the READ_CONTROL_ACCESS.
I.e. builtin\administrators can get the sd but not enumerate the key.

11 years agos3:fix an outdated comment.
Michael Adam [Thu, 17 Jun 2010 19:28:54 +0000 (21:28 +0200)]
s3:fix an outdated comment.

11 years agos3:idmap_ldap: remove unreached code (and explicit error return code)
Michael Adam [Thu, 17 Jun 2010 18:50:36 +0000 (20:50 +0200)]
s3:idmap_ldap: remove unreached code (and explicit error return code)

11 years agos3/s4 - remove "talloc_tos()" from common code since s4 doesn't support it
Matthias Dieter Wallnöfer [Mon, 21 Jun 2010 10:33:57 +0000 (12:33 +0200)]
s3/s4 - remove "talloc_tos()" from common code since s4 doesn't support it

Please don't use this in common code parts until we change the policy regarding
it.

11 years agos4:dsdb_load_partition_usn - free the right memory context (tmp_ctx)
Matthias Dieter Wallnöfer [Mon, 21 Jun 2010 09:02:45 +0000 (11:02 +0200)]
s4:dsdb_load_partition_usn - free the right memory context (tmp_ctx)

11 years agos3-docs: Add missing whitespace.
Karolin Seeger [Mon, 21 Jun 2010 08:30:25 +0000 (10:30 +0200)]
s3-docs: Add missing whitespace.

Karolin

11 years agos4/dsdb: msg_idx->dn should be allocated in msg_idx mem context
Kamen Mazdrashki [Sun, 20 Jun 2010 20:31:43 +0000 (23:31 +0300)]
s4/dsdb: msg_idx->dn should be allocated in msg_idx mem context

11 years agos4/dsdb: Move schema accessors cleanup in separate function
Kamen Mazdrashki [Sat, 19 Jun 2010 09:30:36 +0000 (12:30 +0300)]
s4/dsdb: Move schema accessors cleanup in separate function

This way dsdb_setup_sorted_accessors() will
free memory allocated for accessor arrays correctly
in case of failure,

11 years agos4/dsdb-schema: Index attributes on msDS-IntId value
Kamen Mazdrashki [Fri, 18 Jun 2010 21:00:08 +0000 (00:00 +0300)]
s4/dsdb-schema: Index attributes on msDS-IntId value

O(n) search for dsdb_attribute by msDS-IntId value was
replaced by binary-search in ordered index.

I've choosen the approach of separate index on msDS-IntId values
as I think it is more clear what we are searching for.
And it should little bit faster as we can clearly determine
in which index to perform the search based on ATTID value -
ATTIDs based on prefixMap and ATTIDs based on msDS-IntId
are in separate ranges.

Other way to implement this index was to merge msDS-IntId values
in attributeID_id index.
This led me to a shorted but not so obvious implementation.

11 years agos4:kdc/db-glue.c - remove unreachable code
Matthias Dieter Wallnöfer [Sun, 20 Jun 2010 20:17:33 +0000 (22:17 +0200)]
s4:kdc/db-glue.c - remove unreachable code

Would be nice if someone could check if this fits.

11 years agos4:registry/regf.c - add some casts to suppress build warnings on Solaris
Matthias Dieter Wallnöfer [Sun, 20 Jun 2010 20:14:27 +0000 (22:14 +0200)]
s4:registry/regf.c - add some casts to suppress build warnings on Solaris

11 years agos4:registry/rpc.c - fix Solaris warnings by casts
Matthias Dieter Wallnöfer [Sun, 20 Jun 2010 20:06:51 +0000 (22:06 +0200)]
s4:registry/rpc.c - fix Solaris warnings by casts

11 years agos4:samr RPC server - fix Solaris build warning
Matthias Dieter Wallnöfer [Sun, 20 Jun 2010 20:03:45 +0000 (22:03 +0200)]
s4:samr RPC server - fix Solaris build warning

11 years agos4:registry RPC server - quite some build warnings on Solaris
Matthias Dieter Wallnöfer [Sun, 20 Jun 2010 19:54:50 +0000 (21:54 +0200)]
s4:registry RPC server - quite some build warnings on Solaris

11 years agos4:lsa_lookup.c - fix type argument
Matthias Dieter Wallnöfer [Sun, 20 Jun 2010 19:49:52 +0000 (21:49 +0200)]
s4:lsa_lookup.c - fix type argument

11 years agos4:rpc_server/service_rpc.c - fix warnings on Solaris
Matthias Dieter Wallnöfer [Sun, 20 Jun 2010 19:46:53 +0000 (21:46 +0200)]
s4:rpc_server/service_rpc.c - fix warnings on Solaris

11 years agos4:rpc_server/service_rpc.c - deactivate the 0-length struct
Matthias Dieter Wallnöfer [Sun, 20 Jun 2010 20:32:04 +0000 (22:32 +0200)]
s4:rpc_server/service_rpc.c - deactivate the 0-length struct

This should fix the build on Solaris

11 years agos4:libpolicy - fix printf output specifiers to suppress warning
Matthias Dieter Wallnöfer [Sun, 20 Jun 2010 18:34:48 +0000 (20:34 +0200)]
s4:libpolicy - fix printf output specifiers to suppress warning

11 years agos4:libpolicy - Solaris compatibility fix
Matthias Dieter Wallnöfer [Sun, 20 Jun 2010 18:23:56 +0000 (20:23 +0200)]
s4:libpolicy - Solaris compatibility fix

11 years agos4:ldap.py - test subtree deletes through a new testcase
Matthias Dieter Wallnöfer [Sun, 20 Jun 2010 15:36:43 +0000 (17:36 +0200)]
s4:ldap.py - test subtree deletes through a new testcase

11 years agos4:ldap_backend.c - now also the LDAP server supports controls on delete operations
Matthias Dieter Wallnöfer [Sun, 20 Jun 2010 13:13:36 +0000 (15:13 +0200)]
s4:ldap_backend.c - now also the LDAP server supports controls on delete operations

11 years agos4:ldap_backend.c - move function "ldb_mod_req_with_controls" to a better place in...
Matthias Dieter Wallnöfer [Sun, 20 Jun 2010 13:09:55 +0000 (15:09 +0200)]
s4:ldap_backend.c - move function "ldb_mod_req_with_controls" to a better place in the code

Under the "add" and over the "delete" function.

11 years agos4:subtree_delete LDB module - now do support tree delete operations
Matthias Dieter Wallnöfer [Sun, 20 Jun 2010 10:49:04 +0000 (12:49 +0200)]
s4:subtree_delete LDB module - now do support tree delete operations

11 years agos4:dsdb - add a new dsdb delete function which understands the tree delete control
Matthias Dieter Wallnöfer [Sun, 20 Jun 2010 10:43:49 +0000 (12:43 +0200)]
s4:dsdb - add a new dsdb delete function which understands the tree delete control

11 years agoldb:controls - add the "TREE_DELETE" control for allowing subtree deletes
Matthias Dieter Wallnöfer [Sun, 20 Jun 2010 10:19:31 +0000 (12:19 +0200)]
ldb:controls - add the "TREE_DELETE" control for allowing subtree deletes

11 years agoldb:ldb.h - add classifications to the control declarations
Matthias Dieter Wallnöfer [Sun, 20 Jun 2010 10:08:50 +0000 (12:08 +0200)]
ldb:ldb.h - add classifications to the control declarations

This makes it easier to understand which standard specifies which control.

11 years agos4:python LDB __init__.py - remove completely unused "erase_partitions" call
Matthias Dieter Wallnöfer [Sun, 20 Jun 2010 11:03:59 +0000 (13:03 +0200)]
s4:python LDB __init__.py - remove completely unused "erase_partitions" call

Seems to be a relict from the past.

11 years agos4:samldb LDB module - remove "samldb_set_defaultObjectCategory"
Matthias Dieter Wallnöfer [Sun, 20 Jun 2010 09:46:55 +0000 (11:46 +0200)]
s4:samldb LDB module - remove "samldb_set_defaultObjectCategory"

As far as I can tell and the test show the DN gets now normalised automatically
when stored into the database.

Anyway, if we find a case where this doesn't happen then I propose to do it
centrally for all DN attributes in common since we should get away from special
attribute hacks as far as possible.

11 years agos4:ldap_backend.c - add some newlines to make logs easier to read
Matthias Dieter Wallnöfer [Sun, 20 Jun 2010 13:33:29 +0000 (15:33 +0200)]
s4:ldap_backend.c - add some newlines to make logs easier to read

11 years agoldb:pyldb.c - introduce a "mem_ctx" also on "py_ldb_search"
Matthias Dieter Wallnöfer [Sun, 20 Jun 2010 16:20:00 +0000 (18:20 +0200)]
ldb:pyldb.c - introduce a "mem_ctx" also on "py_ldb_search"

To prevent memory leaks

11 years agoldb:pyldb.c - some cleanups and adequations also in "py_ldb_modify" and "py_ldb_rename"
Matthias Dieter Wallnöfer [Sun, 20 Jun 2010 16:06:54 +0000 (18:06 +0200)]
ldb:pyldb.c - some cleanups and adequations also in "py_ldb_modify" and "py_ldb_rename"

To make them consistent.

11 years agos4:ldap_controls.c - remove encoding functions for private recalculate SD control
Matthias Dieter Wallnöfer [Sun, 20 Jun 2010 16:46:51 +0000 (18:46 +0200)]
s4:ldap_controls.c - remove encoding functions for private recalculate SD control

11 years agoprovision: Look for Samba prefix a bit harder.
Jelmer Vernooij [Sun, 20 Jun 2010 15:46:39 +0000 (17:46 +0200)]
provision: Look for Samba prefix a bit harder.

11 years agoRevert "s4:ldb-samba: fix the build without a system ldb"
Stefan Metzmacher [Sun, 20 Jun 2010 14:22:46 +0000 (16:22 +0200)]
Revert "s4:ldb-samba: fix the build without a system ldb"

This reverts commit 44c01a5eb45a0cd5ca3de8be5c4680de75418dce.

This caused problems when using a system ldb and as we don't
do ABI checks for ldb-samba4 any more, we don't need this change.

metze

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agos4:ldb: only do ABI checking for the standalone build for now
Stefan Metzmacher [Sun, 20 Jun 2010 14:13:38 +0000 (16:13 +0200)]
s4:ldb: only do ABI checking for the standalone build for now

Otherwise we fail to build samba4 with a system ldb.

metze

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agolibpolicy: Fix the build.
Jelmer Vernooij [Sun, 20 Jun 2010 13:50:12 +0000 (15:50 +0200)]
libpolicy: Fix the build.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoAdd preliminary support for storing changed Group Policies.
Wilco Baan Hofman [Mon, 7 Jun 2010 13:21:53 +0000 (15:21 +0200)]
Add preliminary support for storing changed Group Policies.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoRefactor policy filesystem code.
Wilco Baan Hofman [Mon, 24 May 2010 23:21:45 +0000 (01:21 +0200)]
Refactor policy filesystem code.

 * It now uses reusable code to download the GPT.
 * It creates a list before copying for better error handling.
 * String_replace is now used instead of manually replacing '\\' with '/'
   for local paths.
 * A security check has been added for file names with "../".
 * It adheres to the 80 column rule, if at all possible.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoFix memory allocation with error handling.
Wilco Baan Hofman [Mon, 24 May 2010 19:36:49 +0000 (21:36 +0200)]
Fix memory allocation with error handling.

Also moved pypolicy.c headers around so as not to generate compile warnings

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoAdd talloc_frees in error cases in net_gpo.c
Wilco Baan Hofman [Mon, 24 May 2010 18:11:15 +0000 (20:11 +0200)]
Add talloc_frees in error cases in net_gpo.c

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoCode cleanups: GUID generation, lp_dnsdomain instead of lp_realm, missing spaces.
Wilco Baan Hofman [Mon, 24 May 2010 18:05:42 +0000 (20:05 +0200)]
Code cleanups: GUID generation, lp_dnsdomain instead of lp_realm, missing spaces.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoSet inherit flag type to bool.
Wilco Baan Hofman [Mon, 24 May 2010 17:56:07 +0000 (19:56 +0200)]
Set inherit flag type to bool.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoFix 'magic' numbers to be strlen(something)
Wilco Baan Hofman [Mon, 24 May 2010 17:53:12 +0000 (19:53 +0200)]
Fix 'magic' numbers to be strlen(something)

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoChange talloc_steal to strdup because function might not expect it.
Wilco Baan Hofman [Mon, 24 May 2010 17:47:27 +0000 (19:47 +0200)]
Change talloc_steal to strdup because function might not expect it.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoAdd GP ini functions.
Wilco Baan Hofman [Mon, 24 May 2010 15:07:48 +0000 (17:07 +0200)]
Add GP ini functions.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoRemove iconv convenience in used functions, which were deleted in commit f9ca9e46ad24...
Wilco Baan Hofman [Fri, 21 May 2010 21:51:28 +0000 (23:51 +0200)]
Remove iconv convenience in used functions, which were deleted in commit f9ca9e46ad24036bf00cb361a6cef4b2e7e98d7d

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoFix net gpo list to use the dsdb with extended DN's. Fixes memberOf group memberships.
Wilco Baan Hofman [Fri, 21 May 2010 21:49:45 +0000 (23:49 +0200)]
Fix net gpo list to use the dsdb with extended DN's. Fixes memberOf group memberships.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoRevert "Add old functionality back which was removed in commit 589a42e2."
Wilco Baan Hofman [Fri, 21 May 2010 12:56:15 +0000 (14:56 +0200)]
Revert "Add old functionality back which was removed in commit 589a42e2."

This reverts commit 94e3b4a0d8b714c101803886d60ae6c484740d2f.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoAdd ini parser for GPO's.
Wilco Baan Hofman [Fri, 21 May 2010 12:41:02 +0000 (14:41 +0200)]
Add ini parser for GPO's.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoAdd net gpo setacl support. Create gp_set_acl function. Show ACL in net gpo show.
Wilco Baan Hofman [Thu, 20 May 2010 14:56:40 +0000 (16:56 +0200)]
Add net gpo setacl support. Create gp_set_acl function. Show ACL in net gpo show.

Cleanup memory allocation of gp_create_gpo

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoFix set GPT security descriptor to match windows' behaviour.
Wilco Baan Hofman [Wed, 19 May 2010 16:58:54 +0000 (18:58 +0200)]
Fix set GPT security descriptor to match windows' behaviour.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoFix crash when get_gpo_info returns incorrect data.
Wilco Baan Hofman [Wed, 19 May 2010 16:31:19 +0000 (18:31 +0200)]
Fix crash when get_gpo_info returns incorrect data.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoAdd preliminary NT ACL support for GPT (GPO on filesystem).
Wilco Baan Hofman [Wed, 19 May 2010 15:22:48 +0000 (17:22 +0200)]
Add preliminary NT ACL support for GPT (GPO on filesystem).

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agosamba4: Add python bindings for samba.policy.get_gplink_options.
Jelmer Vernooij [Thu, 6 May 2010 09:16:27 +0000 (11:16 +0200)]
samba4: Add python bindings for samba.policy.get_gplink_options.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agopolicy: Add samba.policy.get_gpo_flags binding.
Jelmer Vernooij [Thu, 6 May 2010 09:10:21 +0000 (11:10 +0200)]
policy: Add samba.policy.get_gpo_flags binding.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoAdd gpo create functionality. Also fix gPLink handling bugs
Wilco Baan Hofman [Thu, 6 May 2010 16:42:14 +0000 (18:42 +0200)]
Add gpo create functionality. Also fix gPLink handling bugs

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoFix mode_t in mkdir.
Wilco Baan Hofman [Wed, 5 May 2010 08:12:20 +0000 (10:12 +0200)]
Fix mode_t in mkdir.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoFinish net gpo fetch function. Reorder arguments to make them more understandable...
Wilco Baan Hofman [Wed, 28 Apr 2010 09:34:31 +0000 (11:34 +0200)]
Finish net gpo fetch function. Reorder arguments to make them more understandable. Rename getgpo to show.

This makes the net gpo break for it's samba 3 origins, but makes the syntax more intuitive.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoOptimize the backslash logic in the path traversal.
Wilco Baan Hofman [Wed, 28 Apr 2010 09:27:43 +0000 (11:27 +0200)]
Optimize the backslash logic in the path traversal.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoFix error in logic, making recursion work past the first level.
Wilco Baan Hofman [Tue, 27 Apr 2010 20:41:25 +0000 (22:41 +0200)]
Fix error in logic, making recursion work past the first level.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoAdd fetch function for GPO which fetches all relevant files from the sysvol share.
Wilco Baan Hofman [Tue, 27 Apr 2010 19:06:11 +0000 (21:06 +0200)]
Add fetch function for GPO which fetches all relevant files from the sysvol share.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoAdd getinheritance and setinheritance to net gpo util and library.
Wilco Baan Hofman [Mon, 26 Apr 2010 15:26:51 +0000 (17:26 +0200)]
Add getinheritance and setinheritance to net gpo util and library.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoImplemented delete group policy link function and corresponding feature in net gpo.
Wilco Baan Hofman [Fri, 23 Apr 2010 17:12:01 +0000 (19:12 +0200)]
Implemented delete group policy link function and corresponding feature in net gpo.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoChanged add_gplink to set_gplink, so we can change gPLink options as well.
Wilco Baan Hofman [Fri, 23 Apr 2010 16:10:43 +0000 (18:10 +0200)]
Changed add_gplink to set_gplink, so we can change gPLink options as well.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoAdd add gPLink function and corresponding net gpo linkadd call.
Wilco Baan Hofman [Fri, 23 Apr 2010 15:31:21 +0000 (17:31 +0200)]
Add add gPLink function and corresponding net gpo linkadd call.

Also added some definitions for future functions in policy.h

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoRename files to reflect the libpolicy naming convention. Also fix the GNU make build.
Wilco Baan Hofman [Fri, 23 Apr 2010 09:58:26 +0000 (11:58 +0200)]
Rename files to reflect the libpolicy naming convention. Also fix the GNU make build.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoRename libgpo to lib/policy to avoid confusion with samba3 and add waf build
Wilco Baan Hofman [Fri, 23 Apr 2010 09:53:04 +0000 (11:53 +0200)]
Rename libgpo to lib/policy to avoid confusion with samba3 and add waf build

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoAdd old functionality back which was removed in commit 589a42e2.
Wilco Baan Hofman [Fri, 23 Apr 2010 09:10:11 +0000 (11:10 +0200)]
Add old functionality back which was removed in commit 589a42e2.

Andrew, please review!

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoAdd gpo list function for listing applicable GPO's for users/machines.
Wilco Baan Hofman [Fri, 23 Apr 2010 07:32:01 +0000 (09:32 +0200)]
Add gpo list function for listing applicable GPO's for users/machines.

Implements:
 * Hierarchical listing through all parent containers
 * security ACL checking on the GPO
 * User/computer disabled flags on the GPO
 * gPLink disabled
 * gPLink enforced
 * Block inheritance on the container

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoAdd gPLink and getgpo functionality to net gpo.
Wilco Baan Hofman [Wed, 7 Apr 2010 19:22:36 +0000 (21:22 +0200)]
Add gPLink and getgpo functionality to net gpo.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoCreated net gpo and new libgpo for samba 4. This adds the init function which finds...
Wilco Baan Hofman [Tue, 6 Apr 2010 18:15:38 +0000 (20:15 +0200)]
Created net gpo and new libgpo for samba 4. This adds the init function which finds a DC and connects to its LDAP. It also can return information on all group policy objects on a DC.

Aborted earlier attempt at reconciliation with samba 3.
Did not work out due to lack of ldb support in samba 3, also the
different registry libraries and different libnet did not help..

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agos3: Attempt to fix the build on NetBSD
Kai Blin [Sun, 20 Jun 2010 14:29:24 +0000 (16:29 +0200)]
s3: Attempt to fix the build on NetBSD

Unlike Linux and OSX, NetBSD seems to have *netgrent prototypes in netgroup.h.

11 years agopydsdb: Mark all SamDB and Schema methods that are in pydsdb as
Jelmer Vernooij [Sun, 20 Jun 2010 13:22:49 +0000 (15:22 +0200)]
pydsdb: Mark all SamDB and Schema methods that are in pydsdb as
private, to discourage them being called directly.

11 years agotestparm: Check netbios name and workgroup characters and length.
Jelmer Vernooij [Sun, 20 Jun 2010 13:04:42 +0000 (15:04 +0200)]
testparm: Check netbios name and workgroup characters and length.

11 years agoprovision: Properly cancel transactions on the secrets ldb.
Jelmer Vernooij [Sun, 20 Jun 2010 12:24:54 +0000 (14:24 +0200)]
provision: Properly cancel transactions on the secrets ldb.

11 years agoselftest: Use scripted testparm.
Jelmer Vernooij [Sun, 20 Jun 2010 12:14:47 +0000 (14:14 +0200)]
selftest: Use scripted testparm.