samba.git
13 years agos4:objectclass LDB module - "add operation" - reject creation of LSA specific objects
Matthias Dieter Wallnöfer [Thu, 5 Aug 2010 19:40:11 +0000 (21:40 +0200)]
s4:objectclass LDB module - "add operation" - reject creation of LSA specific objects

(only using the RELAX flag allowed)

13 years agos4:objectclass LDB module - "add operation" - move two checks
Matthias Dieter Wallnöfer [Thu, 5 Aug 2010 19:02:29 +0000 (21:02 +0200)]
s4:objectclass LDB module - "add operation" - move two checks

To be more consistent with the MS-ADTS doc.

13 years agos4:objectclass LDB module - "add operation" - deny multiple "objectclass" message...
Matthias Dieter Wallnöfer [Thu, 5 Aug 2010 19:01:38 +0000 (21:01 +0200)]
s4:objectclass LDB module - "add operation" - deny multiple "objectclass" message elements

Requested by MS-ADTS 3.1.1.5.2.2

13 years agos4:objectclass LDB module - "add" operation - free "mem_ctx" as soon as possible
Matthias Dieter Wallnöfer [Thu, 5 Aug 2010 18:59:56 +0000 (20:59 +0200)]
s4:objectclass LDB module - "add" operation - free "mem_ctx" as soon as possible

We don't need to have it around until the end of the function.

13 years agos3: Remove references to smbd_messaging_context() from the spoolss server
Volker Lendecke [Sat, 7 Aug 2010 10:35:54 +0000 (12:35 +0200)]
s3: Remove references to smbd_messaging_context() from the spoolss server

13 years agos3: Remove a reference to smbd_messaging_context()
Volker Lendecke [Sat, 7 Aug 2010 10:27:22 +0000 (12:27 +0200)]
s3: Remove a reference to smbd_messaging_context()

13 years agos3: Remove some references to smbd_messaging_context()
Volker Lendecke [Sat, 7 Aug 2010 09:58:48 +0000 (11:58 +0200)]
s3: Remove some references to smbd_messaging_context()

13 years agos3: Remove procid_self() from connections_fetch_entry()
Volker Lendecke [Thu, 8 Jul 2010 16:00:07 +0000 (18:00 +0200)]
s3: Remove procid_self() from connections_fetch_entry()

13 years agos3: Add msg_ctx to pipes_struct
Volker Lendecke [Tue, 6 Jul 2010 20:52:19 +0000 (22:52 +0200)]
s3: Add msg_ctx to pipes_struct

13 years agos3: Remove smbd_messaging_context() from send_stat_cache_delete_message()
Volker Lendecke [Tue, 6 Jul 2010 20:43:14 +0000 (22:43 +0200)]
s3: Remove smbd_messaging_context() from send_stat_cache_delete_message()

13 years agos4:ntlmssp Merge more aspects of the source3/ NTLMSSP layer
Andrew Bartlett [Sat, 7 Aug 2010 08:56:35 +0000 (18:56 +1000)]
s4:ntlmssp Merge more aspects of the source3/ NTLMSSP layer

This changes the talloc treatment of the session keys to avoid
memory duplication - the session key has always been allocated
onto the ntlmssp_context by the auth subsystem callback.

The remainder of the changes are cosmetics, such as avoiding
using lm_session_key as a pointer (and avoiding then doing an
if statement on something that is always true).

Andrew Bartlett

13 years agos4:ntlmssp Re-add gensec_ntlmssp wrapper to allow merge with source3/
Andrew Bartlett [Fri, 6 Aug 2010 07:53:44 +0000 (17:53 +1000)]
s4:ntlmssp Re-add gensec_ntlmssp wrapper to allow merge with source3/

By re-adding this wrapper, the actual guts of these functions are now very
similar to that found in source3/libsmb/ntlmssp.c

This should make it easier to merge the implementations.

Andrew Bartlett

13 years agos4:ntlmssp Always setup the session keys and signing state
Andrew Bartlett [Fri, 6 Aug 2010 07:51:34 +0000 (17:51 +1000)]
s4:ntlmssp Always setup the session keys and signing state

While it would save some CPU to only setup the session key when
requested (like windows does), this instead matches the
implementation in source3/libsmb/ntlmssp.c

We could re-add this later after the codebase is merged.

Andrew Bartlett

13 years agos3: Remove a pointless "else"
Volker Lendecke [Sat, 7 Aug 2010 08:29:43 +0000 (10:29 +0200)]
s3: Remove a pointless "else"

13 years agos3: Remove an unnecessary NULL check
Volker Lendecke [Fri, 6 Aug 2010 21:27:36 +0000 (23:27 +0200)]
s3: Remove an unnecessary NULL check

Now that connections.tdb is not used for the broadcast messaging anymore,
connections_fetch_entry is only called for real connections.

13 years agos3-net: fix copy/paste typo in usage of "net printing".
Günther Deschner [Fri, 6 Aug 2010 15:38:15 +0000 (17:38 +0200)]
s3-net: fix copy/paste typo in usage of "net printing".

Guenther

13 years agos3-netlogon: remove global include of netlogon.h.
Günther Deschner [Thu, 5 Aug 2010 13:14:04 +0000 (15:14 +0200)]
s3-netlogon: remove global include of netlogon.h.

This reduces precompiled headers by another 4 MB and also slightly speeds up the
build.

Guenther

13 years agos3: remove global include of samr.h
Günther Deschner [Thu, 5 Aug 2010 13:03:00 +0000 (15:03 +0200)]
s3: remove global include of samr.h

Guenther

13 years agos3-build: no need to include privileges.h twice.
Günther Deschner [Wed, 4 Aug 2010 10:01:50 +0000 (12:01 +0200)]
s3-build: no need to include privileges.h twice.

Guenther

13 years agos3-net: only include netapi header when needed.
Günther Deschner [Mon, 2 Aug 2010 22:03:03 +0000 (00:03 +0200)]
s3-net: only include netapi header when needed.

Guenther

13 years agos3-libsmb: include nbt.h in namequery_dc code.
Günther Deschner [Mon, 2 Aug 2010 21:21:09 +0000 (23:21 +0200)]
s3-libsmb: include nbt.h in namequery_dc code.

Guenther

13 years agos3-libnet: include netlogon.h in libnet samsync header.
Günther Deschner [Mon, 2 Aug 2010 21:18:53 +0000 (23:18 +0200)]
s3-libnet: include netlogon.h in libnet samsync header.

Guenther

13 years agos3-smbtorture: include svcctl.h
Günther Deschner [Thu, 5 Aug 2010 13:25:35 +0000 (15:25 +0200)]
s3-smbtorture: include svcctl.h

Guenther

13 years agos3-services: include svcctl.h where needed.
Günther Deschner [Mon, 2 Aug 2010 21:17:25 +0000 (23:17 +0200)]
s3-services: include svcctl.h where needed.

Guenther

13 years agos3-build: remove global include of krb5pac.h.
Günther Deschner [Thu, 5 Aug 2010 13:02:09 +0000 (15:02 +0200)]
s3-build: remove global include of krb5pac.h.

Put in samr and netlogon, as they were pulled in via krb5pac.h.

Guenther

13 years agos3-krb5: include krb5pac.h where needed.
Günther Deschner [Mon, 2 Aug 2010 21:12:16 +0000 (23:12 +0200)]
s3-krb5: include krb5pac.h where needed.

Guenther

13 years agos3-rap: include svcctl.h where needed.
Günther Deschner [Mon, 2 Aug 2010 20:54:29 +0000 (22:54 +0200)]
s3-rap: include svcctl.h where needed.

Guenther

13 years agos3-passdb: include samr.h where needed.
Günther Deschner [Mon, 2 Aug 2010 20:52:00 +0000 (22:52 +0200)]
s3-passdb: include samr.h where needed.

Guenther

13 years agos3-param: include svcctl headers in loadparm.
Günther Deschner [Mon, 2 Aug 2010 21:23:12 +0000 (23:23 +0200)]
s3-param: include svcctl headers in loadparm.

Guenther

13 years agos3-nmbd: include svcctl.h where needed.
Günther Deschner [Mon, 2 Aug 2010 20:48:16 +0000 (22:48 +0200)]
s3-nmbd: include svcctl.h where needed.

Guenther

13 years agos3: Remove some explicit calls to procid_self()
Volker Lendecke [Mon, 19 Jul 2010 19:00:41 +0000 (21:00 +0200)]
s3: Remove some explicit calls to procid_self()

13 years agos3: Remove some explicit calls to procid_self()
Volker Lendecke [Mon, 19 Jul 2010 19:04:04 +0000 (21:04 +0200)]
s3: Remove some explicit calls to procid_self()

13 years agos3-spoolss: Make sure we convert a 4 byte value to uint32_t.
Andreas Schneider [Fri, 6 Aug 2010 11:49:37 +0000 (13:49 +0200)]
s3-spoolss: Make sure we convert a 4 byte value to uint32_t.

13 years agos3-spoolss: Fixed setting driver version correctly.
Andreas Schneider [Fri, 6 Aug 2010 11:49:01 +0000 (13:49 +0200)]
s3-spoolss: Fixed setting driver version correctly.

We are in a loop here, so setting tmp to 0 at the beginning of each
iteration sets info8->version to 0 if we enumerate over another value.

13 years agopidl: Samba3/ClientNDR - Correctly copy arrays, if r.out.size < r.in.size.
Stefan Metzmacher [Thu, 5 Aug 2010 08:04:57 +0000 (10:04 +0200)]
pidl: Samba3/ClientNDR - Correctly copy arrays, if r.out.size < r.in.size.

metze

Signed-off-by: Andreas Schneider <asn@samba.org>
13 years agos3: fail db_open_ctdb if ctdb is not around
Volker Lendecke [Fri, 6 Aug 2010 10:32:30 +0000 (12:32 +0200)]
s3: fail db_open_ctdb if ctdb is not around

13 years agos3-printing: cope with missing printers in print migration
Andrew Tridgell [Fri, 6 Aug 2010 03:06:42 +0000 (13:06 +1000)]
s3-printing: cope with missing printers in print migration

The printers database may be completely missing in a new install, and
we may have SECDESC entries for printers that have been removed. Don't
consider these fatal errors in the migration.

Signed-off-by: Günther Deschner <gd@samba.org>
13 years agos4:ntlmssp Adjust Samba4 ntlmssp code to look more like the code in Samba3.
Andrew Bartlett [Fri, 6 Aug 2010 06:14:11 +0000 (16:14 +1000)]
s4:ntlmssp Adjust Samba4 ntlmssp code to look more like the code in Samba3.

This does not change behaviour, and some of the whitespace isn't ideal, but
at the moment making this code more similar, even in cosmetics, will assist
later merge efforts.

Andrew Bartlett

13 years agos3-torture: Improve the winreg deletekey torture comments.
Andreas Schneider [Thu, 5 Aug 2010 14:05:31 +0000 (16:05 +0200)]
s3-torture: Improve the winreg deletekey torture comments.

13 years agos3-torture: Correctly cleanup the winreg volatile key test.
Andreas Schneider [Thu, 5 Aug 2010 13:35:52 +0000 (15:35 +0200)]
s3-torture: Correctly cleanup the winreg volatile key test.

Günther please check!

13 years agos4-torture: Fixed the winreg EnumValue test against Windows.
Andreas Schneider [Thu, 5 Aug 2010 13:24:20 +0000 (15:24 +0200)]
s4-torture: Fixed the winreg EnumValue test against Windows.

Günther please check!

13 years agos3: Remove some direct cli->inbuf references in interpret_long_filename
Volker Lendecke [Thu, 5 Aug 2010 12:05:58 +0000 (14:05 +0200)]
s3: Remove some direct cli->inbuf references in interpret_long_filename

13 years agos3: Remove a pointless wrapper function
Volker Lendecke [Thu, 5 Aug 2010 12:02:56 +0000 (14:02 +0200)]
s3: Remove a pointless wrapper function

13 years agos3: Explicitly pass flags2 to clistr_pull_talloc
Volker Lendecke [Thu, 5 Aug 2010 11:45:59 +0000 (13:45 +0200)]
s3: Explicitly pass flags2 to clistr_pull_talloc

Required to eventually make cli_list async

13 years agos3: Remove some pointless wrapper functions
Volker Lendecke [Thu, 5 Aug 2010 11:11:14 +0000 (13:11 +0200)]
s3: Remove some pointless wrapper functions

13 years agos3: Remove some pointless wrapper functions
Volker Lendecke [Thu, 5 Aug 2010 11:06:11 +0000 (13:06 +0200)]
s3: Remove some pointless wrapper functions

13 years agos3: Save the received trans2 from the inbuf in cli_trans
Volker Lendecke [Thu, 5 Aug 2010 10:48:52 +0000 (12:48 +0200)]
s3: Save the received trans2 from the inbuf in cli_trans

13 years agos3: Fix a crash in masktest
Volker Lendecke [Thu, 5 Aug 2010 10:45:20 +0000 (12:45 +0200)]
s3: Fix a crash in masktest

13 years agos3-spoolss: Use the correct value for the data length.
Andreas Schneider [Thu, 5 Aug 2010 09:36:37 +0000 (11:36 +0200)]
s3-spoolss: Use the correct value for the data length.

13 years agos3-popt: Only include popt-common.h when needed.
Andreas Schneider [Thu, 5 Aug 2010 08:49:53 +0000 (10:49 +0200)]
s3-popt: Only include popt-common.h when needed.

13 years agos3-secrets: only include secrets.h when needed.
Günther Deschner [Thu, 5 Aug 2010 00:25:37 +0000 (02:25 +0200)]
s3-secrets: only include secrets.h when needed.

Guenther

13 years agos4-dns: ndr_dnsp helper functions
Andrew Tridgell [Tue, 11 May 2010 05:35:43 +0000 (07:35 +0200)]
s4-dns: ndr_dnsp helper functions

these handle the dnsp_name type

13 years agos4-dns: fix dnsp for old build
Andrew Tridgell [Thu, 5 Aug 2010 05:25:38 +0000 (15:25 +1000)]
s4-dns: fix dnsp for old build

13 years agos4-dns: expanded the DNSP code to handle more record type
Andrew Tridgell [Tue, 11 May 2010 05:09:46 +0000 (07:09 +0200)]
s4-dns: expanded the DNSP code to handle more record type

13 years agopidl: added a new type dnsp_name
Andrew Tridgell [Tue, 11 May 2010 05:09:05 +0000 (07:09 +0200)]
pidl: added a new type dnsp_name

This is a name type used in DNS where each DNS component maps to a
length byte followed by the string

We want these to map to a char *, which is why we need to do this in
PIDL

13 years agos4-ldb: added ldif handler for the dnsRecord attribute
Andrew Tridgell [Thu, 5 Aug 2010 05:22:49 +0000 (15:22 +1000)]
s4-ldb: added ldif handler for the dnsRecord attribute

13 years agodns: first version of dsnRecord parser
Andrew Tridgell [Thu, 5 Aug 2010 05:20:13 +0000 (15:20 +1000)]
dns: first version of dsnRecord parser

13 years agos3: avoid global include of ads.h.
Günther Deschner [Thu, 1 Jul 2010 22:32:52 +0000 (00:32 +0200)]
s3: avoid global include of ads.h.

Guenther

13 years agos3-libnet_join: add ads.h as helper header to IDL.
Günther Deschner [Wed, 4 Aug 2010 14:49:43 +0000 (16:49 +0200)]
s3-libnet_join: add ads.h as helper header to IDL.

Guenther

13 years agos3-printing: move AD related printing components to an own file.
Günther Deschner [Wed, 4 Aug 2010 13:31:08 +0000 (15:31 +0200)]
s3-printing: move AD related printing components to an own file.

Guenther

13 years agos3: Convert cli_list() to return NTSTATUS
Volker Lendecke [Mon, 2 Aug 2010 17:22:22 +0000 (19:22 +0200)]
s3: Convert cli_list() to return NTSTATUS

If needed, the callback functions can count themselves

13 years agos3: Use data_blob_null
Volker Lendecke [Mon, 2 Aug 2010 13:25:45 +0000 (15:25 +0200)]
s3: Use data_blob_null

13 years agos4:LDB modules - remove the "kludge_acl" module code
Matthias Dieter Wallnöfer [Wed, 4 Aug 2010 17:43:59 +0000 (19:43 +0200)]
s4:LDB modules - remove the "kludge_acl" module code

Obviously this has been forgotten by Nadya.

13 years agos3-waf: fix the build.
Günther Deschner [Wed, 4 Aug 2010 12:55:10 +0000 (14:55 +0200)]
s3-waf: fix the build.

Guenther

13 years agos4-dsdb: Removed kludge_acl as it is no longer necessary
Nadezhda Ivanova [Wed, 4 Aug 2010 12:22:17 +0000 (15:22 +0300)]
s4-dsdb: Removed kludge_acl as it is no longer necessary

Moved the access check on extended operations to acl module and removed kludge_acl

13 years agosmall optimizations for shadowcopy2 module
Christian Ambach [Wed, 21 Apr 2010 13:10:39 +0000 (15:10 +0200)]
small optimizations for shadowcopy2 module

- remove a compiler warning
- replace strlen usage

Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
13 years agofix snapshot content display with hide unreadable
Christian Ambach [Wed, 14 Apr 2010 08:05:56 +0000 (10:05 +0200)]
fix snapshot content display with hide unreadable

With the hide unreadable option set, snapshots are be displayed
as empty with shadow_copy2 and a NFSv4 ACL module.

To prevent multiple conversions of the paths when the acl call
does a VFS_STAT (as the nfs4acl code does), a check was added
to convert_shadow2_name() so it will not touch paths any more
that look like they have already been converted.

Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
13 years agos3: Fix shadow copies after the change for in-path @GMT-
Volker Lendecke [Thu, 12 Nov 2009 11:30:58 +0000 (12:30 +0100)]
s3: Fix shadow copies after the change for in-path @GMT-

Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
13 years agos3: Fix in-path shadowcopy2 module
Volker Lendecke [Mon, 9 Nov 2009 10:06:30 +0000 (11:06 +0100)]
s3: Fix in-path shadowcopy2 module

Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
13 years agomake scannedonly notify the scanner if no .scanned: file was found during rename
olivier [Mon, 2 Aug 2010 22:20:11 +0000 (00:20 +0200)]
make scannedonly notify the scanner if no .scanned: file was found during rename

13 years agos3-dcerpc: fix some uninitialized variables build warnings.
Günther Deschner [Tue, 3 Aug 2010 13:55:20 +0000 (15:55 +0200)]
s3-dcerpc: fix some uninitialized variables build warnings.

Guenther

13 years agos3-spoolss: fix type-punned pointer build warning.
Günther Deschner [Tue, 3 Aug 2010 13:13:57 +0000 (15:13 +0200)]
s3-spoolss: fix type-punned pointer build warning.

Guenther

13 years agos3-spoolss: fix uninitialized variable build warning.
Günther Deschner [Tue, 3 Aug 2010 12:51:27 +0000 (14:51 +0200)]
s3-spoolss: fix uninitialized variable build warning.

Andreas, please check.

Guenther

13 years agos3-printing: make sure to set NTSTATUS code before checking it.
Günther Deschner [Tue, 3 Aug 2010 11:18:01 +0000 (13:18 +0200)]
s3-printing: make sure to set NTSTATUS code before checking it.

Andreas, please check.

Guenther

13 years agos4/vampire: update dNSHostName for the Server object
Anatoliy Atanasov [Mon, 2 Aug 2010 13:47:38 +0000 (16:47 +0300)]
s4/vampire: update dNSHostName for the Server object

13 years agos4-schema: More verbose error log when subClassOf is not found in schema
Kamen Mazdrashki [Tue, 3 Aug 2010 01:26:57 +0000 (04:26 +0300)]
s4-schema: More verbose error log when subClassOf is not found in schema

Error message show failing classSchema object
but not the specific value for the failure,
which makes diagnostics by log files really hard.

13 years agos4: fix comment typos
Kamen Mazdrashki [Tue, 3 Aug 2010 01:14:45 +0000 (04:14 +0300)]
s4: fix comment typos

13 years agos3-spoolss: remove duplicate (and incorrect) header.
Günther Deschner [Mon, 2 Aug 2010 22:12:27 +0000 (00:12 +0200)]
s3-spoolss: remove duplicate (and incorrect) header.

Guenther

13 years agoidl: Fixed a possible crash bug.
Andreas Schneider [Mon, 2 Aug 2010 16:32:40 +0000 (18:32 +0200)]
idl: Fixed a possible crash bug.

13 years agos4:librpc/rpc: avoid using DCERPC_NDR_REF_ALLOC for epm_Map()
Stefan Metzmacher [Mon, 2 Aug 2010 08:21:36 +0000 (10:21 +0200)]
s4:librpc/rpc: avoid using DCERPC_NDR_REF_ALLOC for epm_Map()

metze

13 years agos4:torture/libnet: avoid dereferencing dcerpc_binding_handle internals
Stefan Metzmacher [Mon, 2 Aug 2010 07:53:27 +0000 (09:53 +0200)]
s4:torture/libnet: avoid dereferencing dcerpc_binding_handle internals

metze

13 years agos3-spoolss: Fixed a segfault if a value has no data.
Andreas Schneider [Mon, 2 Aug 2010 11:49:59 +0000 (13:49 +0200)]
s3-spoolss: Fixed a segfault if a value has no data.

13 years agos3-spoolss: Move some debug message to a higher level.
Andreas Schneider [Mon, 2 Aug 2010 11:21:47 +0000 (13:21 +0200)]
s3-spoolss: Move some debug message to a higher level.

13 years agos3-spoolss: Fixed some C++ build warnings.
Andreas Schneider [Mon, 2 Aug 2010 10:38:57 +0000 (12:38 +0200)]
s3-spoolss: Fixed some C++ build warnings.

13 years agos3-spoolss: Use a stackframe to allocat memory.
Andreas Schneider [Mon, 2 Aug 2010 10:09:03 +0000 (12:09 +0200)]
s3-spoolss: Use a stackframe to allocat memory.

This is faster and should be more secure to use if something goes wrong.

13 years agos4-smbtorture: remove another old and now invalid s3 special case during spoolss...
Günther Deschner [Mon, 2 Aug 2010 14:08:30 +0000 (16:08 +0200)]
s4-smbtorture: remove another old and now invalid s3 special case during spoolss testing.

Guenther

13 years agospoolss: fix potential crash bug in spoolss_PrinterEnumValues push path.
Günther Deschner [Mon, 2 Aug 2010 13:52:09 +0000 (15:52 +0200)]
spoolss: fix potential crash bug in spoolss_PrinterEnumValues push path.

Guenther

13 years agos3-spoolss: remove unused MAX_OPEN_PRINTER_EXS define.
Günther Deschner [Mon, 2 Aug 2010 13:31:10 +0000 (15:31 +0200)]
s3-spoolss: remove unused MAX_OPEN_PRINTER_EXS define.

Guenther

13 years agos3-build: fix some c++ build warnings.
Günther Deschner [Sun, 1 Aug 2010 13:34:52 +0000 (15:34 +0200)]
s3-build: fix some c++ build warnings.

Guenther

13 years agos3: Use cups-config --libs
Volker Lendecke [Mon, 2 Aug 2010 09:03:13 +0000 (11:03 +0200)]
s3: Use cups-config --libs

13 years agos4:ldap.py - remove superflous spaces
Matthias Dieter Wallnöfer [Sun, 1 Aug 2010 20:12:04 +0000 (22:12 +0200)]
s4:ldap.py - remove superflous spaces

Sorry, forgot to delete them in the last commit

13 years agos4:ldap.py - additional "instanceType" checks
Matthias Dieter Wallnöfer [Sun, 1 Aug 2010 19:12:50 +0000 (21:12 +0200)]
s4:ldap.py - additional "instanceType" checks

13 years agos4:instancetype LDB module - add checks requested by MS-ADTS 3.1.1.5.2.2
Matthias Dieter Wallnöfer [Sun, 1 Aug 2010 15:34:43 +0000 (17:34 +0200)]
s4:instancetype LDB module - add checks requested by MS-ADTS 3.1.1.5.2.2

We've to test for the WRITE flag if we are performing an NC add. And if it
isn't an NC add then only the WRITE or no flag is allowed.

13 years agos4:objectclass LDB module - consider the "instanceType" when adding NCs
Matthias Dieter Wallnöfer [Sun, 1 Aug 2010 15:36:11 +0000 (17:36 +0200)]
s4:objectclass LDB module - consider the "instanceType" when adding NCs

This is requested by MS-ADTS 3.1.1.5.2.2 (NC add operation).

13 years agos4:descriptor LDB module - remove the "forest DN" check
Matthias Dieter Wallnöfer [Sun, 1 Aug 2010 15:02:45 +0000 (17:02 +0200)]
s4:descriptor LDB module - remove the "forest DN" check

Also here we have to work with the default base DN.

After some reading I've discovered that this isn't really true. The forest
partition does exist on one or more DCs and is there the same as the default
base DN (which is already checked by the module).
And if we have other DCs which contain child domains then they never contain
data of the forest domain beside the schema and the configuration partition
(which are checked anyway) since a DC can always contain only one domain!

Link: http://www.informit.com/articles/article.aspx?p=26896&seqNum=5
13 years agos4:acl LDB module - remove the "forest DN" check
Matthias Dieter Wallnöfer [Sun, 1 Aug 2010 15:02:45 +0000 (17:02 +0200)]
s4:acl LDB module - remove the "forest DN" check

After some reading I've discovered that this isn't really true. The forest
partition does exist on one or more DCs and is there the same as the default
base DN (which is already checked by the module).
And if we have other DCs which contain child domains then they never contain
data of the forest domain beside the schema and the configuration partition
(which are checked anyway) since a DC can always contain only one domain!

Link: http://www.informit.com/articles/article.aspx?p=26896&seqNum=5
13 years agos4:acl LDB module - remove unused call "is_root_base_dn"
Matthias Dieter Wallnöfer [Sun, 1 Aug 2010 14:39:45 +0000 (16:39 +0200)]
s4:acl LDB module - remove unused call "is_root_base_dn"

13 years agos4:urgent_replication.py test - adapt the test for the harder delete restrictions
Matthias Dieter Wallnöfer [Sun, 1 Aug 2010 15:44:50 +0000 (17:44 +0200)]
s4:urgent_replication.py test - adapt the test for the harder delete restrictions

Otherwise we are not able to delete the "test crossRef" object which points
to the default NC anymore.

13 years agos4:ldap.py - perform tests on the additional delete constraint checks
Matthias Dieter Wallnöfer [Sun, 1 Aug 2010 11:09:46 +0000 (13:09 +0200)]
s4:ldap.py - perform tests on the additional delete constraint checks

13 years agos4:objectclass LDB module - implement additional delete constraint checks
Matthias Dieter Wallnöfer [Sun, 1 Aug 2010 10:50:56 +0000 (12:50 +0200)]
s4:objectclass LDB module - implement additional delete constraint checks

MS-ADTS 3.1.1.5.5.3