kai/samba.git
9 years agopidl/python: Increment reference counter on Py_None to prevent us from
Jelmer Vernooij [Thu, 24 Jun 2010 21:17:51 +0000 (23:17 +0200)]
pidl/python: Increment reference counter on Py_None to prevent us from
accidentally deallocating it.

9 years agos4 torture: Warn on NOT_IMPLEMENTED in addition to NOT_SUPPORTED for RAW-QFILEINFO
Aravind Srinivasan [Tue, 22 Jun 2010 17:42:20 +0000 (10:42 -0700)]
s4 torture: Warn on NOT_IMPLEMENTED in addition to NOT_SUPPORTED for RAW-QFILEINFO

Signed-off-by: Tim Prouty <tprouty@samba.org>
9 years agos3:registry: remove unused function normalize_dbkey()
Michael Adam [Thu, 24 Jun 2010 13:32:46 +0000 (15:32 +0200)]
s3:registry: remove unused function normalize_dbkey()

9 years agos3:registry: use normalize_reg_path() in regdb_set_secdesc()
Michael Adam [Thu, 24 Jun 2010 13:31:06 +0000 (15:31 +0200)]
s3:registry: use normalize_reg_path() in regdb_set_secdesc()

instead of normalize_dbkey

9 years agos3:registry: use normalize_reg_path() in regdb_get_secdesc()
Michael Adam [Thu, 24 Jun 2010 13:30:31 +0000 (15:30 +0200)]
s3:registry: use normalize_reg_path() in regdb_get_secdesc()

instead of normalize_dbkey.

9 years agoRevert "s4:provision.ldif - fix the number of available RIDs"
Matthias Dieter Wallnöfer [Thu, 24 Jun 2010 13:11:25 +0000 (15:11 +0200)]
Revert "s4:provision.ldif - fix the number of available RIDs"

This reverts commit 41cdcd54b7b7e3fb70fdb220e74a1daf30e1891a.

As per request of metze revert this (cause written on the mailing list).

9 years agos4:auth/gensec/gensec_gssapi.c - reorder constructor
Matthias Dieter Wallnöfer [Thu, 24 Jun 2010 09:05:41 +0000 (11:05 +0200)]
s4:auth/gensec/gensec_gssapi.c - reorder constructor

To have the same order as in the structure definition.

9 years agos4-ldb: use CHECK_XSLTPROC_MANPAGES()
Andrew Tridgell [Thu, 24 Jun 2010 06:03:02 +0000 (16:03 +1000)]
s4-ldb: use CHECK_XSLTPROC_MANPAGES()

9 years agobuild: check if the manpages stylesheet is available locally
Andrew Tridgell [Thu, 24 Jun 2010 06:02:43 +0000 (16:02 +1000)]
build: check if the manpages stylesheet is available locally

this avoids trying to fetch the stylesheet from the internet. If we
can't process the stylesheet with --nonet at configure time then don't
build manpages.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
9 years agos4-python: python is not always in /usr/bin
Andrew Tridgell [Thu, 24 Jun 2010 04:33:58 +0000 (14:33 +1000)]
s4-python: python is not always in /usr/bin

Using "#!/usr/bin/env python" is more portable. It still isn't ideal
though, as we should really use the python path found at configure
time. We do that in many places already, but some don't.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
9 years agos4:provision.ldif - fix the number of available RIDs
Matthias Dieter Wallnöfer [Thu, 24 Jun 2010 07:35:58 +0000 (09:35 +0200)]
s4:provision.ldif - fix the number of available RIDs

There should be 4611686014132422209 and not 4611686014132422109.

9 years agos4:provision.ldif - this Win2003 revision level seems always to be "9" on Windows...
Matthias Dieter Wallnöfer [Thu, 24 Jun 2010 07:23:32 +0000 (09:23 +0200)]
s4:provision.ldif - this Win2003 revision level seems always to be "9" on Windows Server 2008 machines

9 years agos4:provision_users.ldif - change a group description to be correct
Matthias Dieter Wallnöfer [Thu, 24 Jun 2010 07:14:24 +0000 (09:14 +0200)]
s4:provision_users.ldif - change a group description to be correct

9 years agos4:upgradeprovision - fix include order for "ldb"
Matthias Dieter Wallnöfer [Thu, 24 Jun 2010 07:06:49 +0000 (09:06 +0200)]
s4:upgradeprovision - fix include order for "ldb"

Patch originally posted on the list by Matthieu Patou.

9 years agos4/ldb: ldb_msg_el_map_remote() should rename the remote attribute names into local...
Endi S. Dewata [Wed, 23 Jun 2010 12:26:25 +0000 (07:26 -0500)]
s4/ldb: ldb_msg_el_map_remote() should rename the remote attribute names into local names as defined in simple_ldap_map.c.

9 years agos4:setup/provision.reg - raise version to Windows Server 2008 R2
Matthias Dieter Wallnöfer [Sun, 7 Mar 2010 20:13:27 +0000 (21:13 +0100)]
s4:setup/provision.reg - raise version to Windows Server 2008 R2

9 years agos4:libnet_join.c - always use LDB constants
Matthias Dieter Wallnöfer [Wed, 23 Jun 2010 15:30:10 +0000 (17:30 +0200)]
s4:libnet_join.c - always use LDB constants

9 years agoAdd parse_setjob_command() to make setting job state easier for users.
Jeremy Allison [Wed, 23 Jun 2010 20:25:15 +0000 (13:25 -0700)]
Add parse_setjob_command() to make setting job state easier for users.

Jeremy.

9 years agos4-smbtorture: test more valid key names in RPC-WINREG.
Günther Deschner [Wed, 23 Jun 2010 13:00:06 +0000 (15:00 +0200)]
s4-smbtorture: test more valid key names in RPC-WINREG.

Guenther

9 years agos4-smbtorture: more work on test values WINREG test.
Günther Deschner [Wed, 23 Jun 2010 12:59:27 +0000 (14:59 +0200)]
s4-smbtorture: more work on test values WINREG test.

Guenther

9 years agoFix to undo nasty hack for for grouptype conversion
Lukasz Zalewski [Wed, 23 Jun 2010 09:05:50 +0000 (10:05 +0100)]
Fix to undo nasty hack for for grouptype conversion

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
9 years agoPer Andrews request, revert
Jelmer Vernooij [Wed, 23 Jun 2010 08:09:02 +0000 (10:09 +0200)]
Per Andrews request, revert
"heimdal/waf: Initial work on making it possible to use the system"
as the hdb_check_s4u2self function handling is incorrect.

This reverts commit b099631f428d0ecc641d59bd3c94674e6348dde9.

9 years agos4-smbtorture: add test for different winreg SetValue value names.
Günther Deschner [Wed, 23 Jun 2010 10:09:35 +0000 (12:09 +0200)]
s4-smbtorture: add test for different winreg SetValue value names.

Guenther

9 years agos4:selftest Fix up netbios names for rpc_echo test
Andrew Bartlett [Wed, 23 Jun 2010 03:50:55 +0000 (13:50 +1000)]
s4:selftest Fix up netbios names for rpc_echo test

9 years agos4:selftest For the moment the server role '2008_R2' is case sensitive
Andrew Bartlett [Wed, 23 Jun 2010 00:24:14 +0000 (10:24 +1000)]
s4:selftest For the moment the server role '2008_R2' is case sensitive

9 years agos4:selftest Change netbios aliases to shorter names.
Andrew Bartlett [Tue, 22 Jun 2010 23:53:20 +0000 (09:53 +1000)]
s4:selftest Change netbios aliases to shorter names.

This makes the netbios names more sensible, and the aliases shorter.

(the name localfl2008rc2dc7 was too long...)

Andrew Bartlett

9 years agos4:selftest Add 2003 and 2008R2 test environments and tests
Andrew Bartlett [Mon, 21 Jun 2010 12:17:40 +0000 (22:17 +1000)]
s4:selftest Add 2003 and 2008R2 test environments and tests

These tests were chosen particularly because they are known to test things
that vary across the functional levels.

Andrew Bartlett

9 years agos4:net Remove warnings for 2000 native mode and Samba4.
Andrew Bartlett [Mon, 21 Jun 2010 11:41:49 +0000 (21:41 +1000)]
s4:net Remove warnings for 2000 native mode and Samba4.

We now support 2000 native mode, and so we just need to warn about mixed mode.

Andrew Bartlett

9 years agos4:provision Raise default max functional level to 2008R2
Andrew Bartlett [Mon, 21 Jun 2010 11:40:15 +0000 (21:40 +1000)]
s4:provision Raise default max functional level to 2008R2

We don't support many of the extra features, but that applies across many
other parts of AD.  Allow the admin to join a 2008R2 domain if he or she wants.

This also makes it possible to test 2008R2 domain code in 'make test'

Andrew Bartlett

9 years agos4:provision Remove am_rodc from Schema
Andrew Bartlett [Mon, 21 Jun 2010 13:18:53 +0000 (23:18 +1000)]
s4:provision Remove am_rodc from Schema

The SamDB created in the schema code isn't real enough to care if it's an
rodc or not.

9 years agos4:libnet When joining a domain, update msDS-SupportedEncryptionTypes
Andrew Bartlett [Mon, 21 Jun 2010 11:20:27 +0000 (21:20 +1000)]
s4:libnet When joining a domain, update msDS-SupportedEncryptionTypes

We need this for our DC to have clients use AES keys to us

9 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

9 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

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

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

9 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

9 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

9 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

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

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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

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

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

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

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

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

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

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

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

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

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

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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

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

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

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

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

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

9 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

9 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

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

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

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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

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

9 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

9 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

9 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

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

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

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

9 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

9 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

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

9 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