sfrench/samba-autobuild/.git
13 years agolibds:common Remove DS_DC_* domain functionality flags
Andrew Bartlett [Mon, 21 Jun 2010 10:19:02 +0000 (20:19 +1000)]
libds:common Remove DS_DC_* domain functionality flags

These are just a subset of the DS_DOMAIN_ functionality flags, are compared and often confused with each other.  Just make them one set.

Andrew Bartlett

13 years agos4:kdc Use msDS-SupportedEncTypes in our KDC
Andrew Bartlett [Sun, 13 Jun 2010 03:19:23 +0000 (13:19 +1000)]
s4:kdc Use msDS-SupportedEncTypes in our KDC

We need to honour this, otherwise we will send AES-encrypted tickets
to unprepared Kerberos targets.

Andrew Bartlett

13 years agodoc: Remove the documentation of the sequence command of wbinfo.
Andreas Schneider [Wed, 23 Jun 2010 08:59:55 +0000 (10:59 +0200)]
doc: Remove the documentation of the sequence command of wbinfo.

The command is deprecated, see --online-status.

13 years agowbinfo: Document the deprecated sequence option correctly.
Andreas Schneider [Wed, 23 Jun 2010 08:58:37 +0000 (10:58 +0200)]
wbinfo: Document the deprecated sequence option correctly.

I didn't find a way in popt to hide it.

13 years agos4-smbtorture: Fix test_SetPrinterDataEx_keys and test_SetPrinterDataEx_values.
Günther Deschner [Wed, 23 Jun 2010 08:47:01 +0000 (10:47 +0200)]
s4-smbtorture: Fix test_SetPrinterDataEx_keys and test_SetPrinterDataEx_values.

We want to continue, not to skip here.

Guenther

13 years agos4:operational LDB module - fix a misleading comment
Matthias Dieter Wallnöfer [Wed, 23 Jun 2010 07:53:23 +0000 (09:53 +0200)]
s4:operational LDB module - fix a misleading comment

13 years agos4:samr RPC server - make use of LDB constants in macros
Matthias Dieter Wallnöfer [Mon, 21 Jun 2010 20:19:21 +0000 (22:19 +0200)]
s4:samr RPC server - make use of LDB constants in macros

13 years agos4:password_hash LDB module - fix another problem regarding the lanman hash
Matthias Dieter Wallnöfer [Mon, 21 Jun 2010 17:40:50 +0000 (19:40 +0200)]
s4:password_hash LDB module - fix another problem regarding the lanman hash

When a user only provides only the lanman hash (and nothing else) and the
lanman authentication is deactivated then we end in an account with no
password attribute at all! Lock this down.

13 years agoFix bug 7528 - Solaris with NIS autohome.
Jeremy Allison [Tue, 22 Jun 2010 19:19:05 +0000 (12:19 -0700)]
Fix bug 7528 - Solaris with NIS autohome.

Ensure entries containing "\n" are stripped.

Jeremy.

13 years agos4-smbtorture: add "printerdata_values" test to RPC-SPOOLSS-PRINTER.
Günther Deschner [Tue, 22 Jun 2010 13:45:45 +0000 (15:45 +0200)]
s4-smbtorture: add "printerdata_values" test to RPC-SPOOLSS-PRINTER.

Guenther

13 years agos4-smbtorture: also test keynames with '/' in it in SetPrinterDataEx keyname tests.
Günther Deschner [Tue, 22 Jun 2010 13:25:01 +0000 (15:25 +0200)]
s4-smbtorture: also test keynames with '/' in it in SetPrinterDataEx keyname tests.

Guenther

13 years agos4-smbtorture: activate all keys in SetPrinterData keys test.
Günther Deschner [Tue, 22 Jun 2010 13:22:03 +0000 (15:22 +0200)]
s4-smbtorture: activate all keys in SetPrinterData keys test.

(just skip some of them still against s3).

Guenther

13 years agos4-smbtorture: split out a "printerdata_keys" test for RPC-SPOOLSS-PRINTER.
Günther Deschner [Tue, 22 Jun 2010 12:55:20 +0000 (14:55 +0200)]
s4-smbtorture: split out a "printerdata_keys" test for RPC-SPOOLSS-PRINTER.

This separates key and value tests for SetPrinterDataEx and GetPrinterDataEx
(and also speeds up the whole testsuite).

Guenther

13 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

13 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

13 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

13 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>
13 years agosmbtorture: Fix missing includes.
James Peach [Mon, 21 Jun 2010 21:11:58 +0000 (14:11 -0700)]
smbtorture: Fix missing includes.

13 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>
13 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

13 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.

13 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.

13 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.

13 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.

13 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.

13 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.

13 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.

13 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.

13 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.

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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.

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

13 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)

13 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.

13 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)

13 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

13 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

13 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,

13 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.

13 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.

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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.

13 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

13 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

13 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

13 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.

13 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.

13 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.

13 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

13 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

13 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.

13 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

13 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.

13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>