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

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

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

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

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

13 years agopyparam: Support Loadparm.get(p, "global")
Jelmer Vernooij [Sun, 20 Jun 2010 12:14:01 +0000 (14:14 +0200)]
pyparam: Support Loadparm.get(p, "global")

13 years agoldb: Add ABI file for use when including ildap in the build.
Jelmer Vernooij [Sun, 20 Jun 2010 11:54:51 +0000 (13:54 +0200)]
ldb: Add ABI file for use when including ildap in the build.

13 years agotestparm: Simplify default option handling.
Jelmer Vernooij [Sun, 20 Jun 2010 11:51:39 +0000 (13:51 +0200)]
testparm: Simplify default option handling.

13 years agopyparam: Allow specifying None as section name to LoadparmContext.get()
Jelmer Vernooij [Sun, 20 Jun 2010 11:51:14 +0000 (13:51 +0200)]
pyparam: Allow specifying None as section name to LoadparmContext.get()
to mean default section.

13 years agotestparm: Fix suppress prompt option.
Jelmer Vernooij [Sun, 20 Jun 2010 11:47:36 +0000 (13:47 +0200)]
testparm: Fix suppress prompt option.

13 years agotestparm: Fix exit value, install.
Jelmer Vernooij [Sun, 20 Jun 2010 11:41:38 +0000 (13:41 +0200)]
testparm: Fix exit value, install.

13 years agos4-python: Add LoadparmService.dump()
Jelmer Vernooij [Sun, 20 Jun 2010 11:40:49 +0000 (13:40 +0200)]
s4-python: Add LoadparmService.dump()

13 years agos4-python: Implement LoadParm.dump().
Jelmer Vernooij [Sun, 20 Jun 2010 11:29:35 +0000 (13:29 +0200)]
s4-python: Implement LoadParm.dump().

13 years agotestparm: Split up functions that do multiple things.
Jelmer Vernooij [Sun, 20 Jun 2010 11:22:26 +0000 (13:22 +0200)]
testparm: Split up functions that do multiple things.

13 years agotestparm: Convert to Python.
Jelmer Vernooij [Sun, 20 Jun 2010 11:16:30 +0000 (13:16 +0200)]
testparm: Convert to Python.

13 years agos4-python: Remove more unused imports, fix use of sets in upgradehelpers.
Jelmer Vernooij [Sun, 20 Jun 2010 11:15:09 +0000 (13:15 +0200)]
s4-python: Remove more unused imports, fix use of sets in upgradehelpers.

13 years agosetnttoken: Remove empty utility.
Jelmer Vernooij [Sun, 20 Jun 2010 10:19:08 +0000 (12:19 +0200)]
setnttoken: Remove empty utility.

13 years agoUse standard Python syntax, booleans and set()'s where appropriate.
Jelmer Vernooij [Sun, 20 Jun 2010 10:06:50 +0000 (12:06 +0200)]
Use standard Python syntax, booleans and set()'s where appropriate.

13 years agoRemove unnecessary use of transactions.
Jelmer Vernooij [Sun, 20 Jun 2010 09:59:49 +0000 (11:59 +0200)]
Remove unnecessary use of transactions.

13 years agoldb: Change LDBSAMBA back to subsystem, update comments, use different
Jelmer Vernooij [Sun, 20 Jun 2010 09:49:08 +0000 (11:49 +0200)]
ldb: Change LDBSAMBA back to subsystem, update comments, use different
ABI file based on whether ldb_ildap is included.

13 years agos4:ldb-samba: fix the build without a system ldb
Stefan Metzmacher [Sun, 20 Jun 2010 09:33:43 +0000 (11:33 +0200)]
s4:ldb-samba: fix the build without a system ldb

metze

13 years agos3-waf: Change the (set|get|end)netgrent checks to match the configure.in checks
Kai Blin [Sun, 20 Jun 2010 07:49:34 +0000 (09:49 +0200)]
s3-waf: Change the (set|get|end)netgrent checks to match the configure.in checks