ira/wip.git
10 years agos3: Fix the format string for smbcontrol pool-usage
Volker Lendecke [Sun, 17 Jan 2010 22:07:39 +0000 (23:07 +0100)]
s3: Fix the format string for smbcontrol pool-usage

With the dot I have seen printf to not print anything

10 years agoidl: switched to using the WSPP names for the 'neighbour' DRS options
Andrew Tridgell [Sun, 17 Jan 2010 10:59:56 +0000 (21:59 +1100)]
idl: switched to using the WSPP names for the 'neighbour' DRS options

The documentation shows that all these functions in fact use the same
flags variable type. To be consistent between functions, and to allow
easy reference to the WSPP docs, it is better for us to also use this
generic DrsOptions bitfield rather than one per operations.

10 years agos3: Protect against an invalid bcc in SMBsendtxt
Volker Lendecke [Tue, 10 Nov 2009 22:14:58 +0000 (23:14 +0100)]
s3: Protect against an invalid bcc in SMBsendtxt

10 years agos3: For "smbcontrol <pid> pool-usage", print the first 50 bytes of a string
Volker Lendecke [Sun, 17 Jan 2010 13:57:54 +0000 (14:57 +0100)]
s3: For "smbcontrol <pid> pool-usage", print the first 50 bytes of a string

10 years agos3: Fix some nonempty blank lines
Volker Lendecke [Sun, 17 Jan 2010 12:52:53 +0000 (13:52 +0100)]
s3: Fix some nonempty blank lines

10 years agoModification of fix for bug 6876 - Delete of an object whose parent folder does not...
Jeremy Allison [Sun, 17 Jan 2010 01:03:06 +0000 (17:03 -0800)]
Modification of fix for bug 6876 - Delete of an object whose parent folder does not have delete rights fails even if the delete right is set on the object

Suggested by Volker. Reduce the surface area of the
become_root() unbecome_root() code to reduce the chance
of errors.

Jeremy.

10 years agos4-drs: allow for security bypass for DsReplicaGetInfo
Andrew Tridgell [Sat, 16 Jan 2010 19:52:14 +0000 (06:52 +1100)]
s4-drs: allow for security bypass for DsReplicaGetInfo

Use --option=drs:disable_sec_check=true until the group membership bug
with the PAC is fixed.

10 years agos4-dsdb: isGlobalCatalogReady should be shown by default
Andrew Tridgell [Sat, 16 Jan 2010 19:48:09 +0000 (06:48 +1100)]
s4-dsdb: isGlobalCatalogReady should be shown by default

This caused repadmin.exe to crash. Thanks to Hongwei for tracking this
down for us.

10 years agoldap: Fix test failure that seemed to go unreported previously.
Jelmer Vernooij [Sat, 16 Jan 2010 23:35:26 +0000 (12:35 +1300)]
ldap: Fix test failure that seemed to go unreported previously.

10 years agoldap.py: Remove unused imports.
Jelmer Vernooij [Sat, 16 Jan 2010 23:26:53 +0000 (12:26 +1300)]
ldap.py: Remove unused imports.

10 years agos3: Fix a crash in libsmbclient used against the OpenSolaris CIFS server
Volker Lendecke [Sat, 16 Jan 2010 12:31:44 +0000 (13:31 +0100)]
s3: Fix a crash in libsmbclient used against the OpenSolaris CIFS server

A user has sent me a sniff where the OpenSolaris CIFS server returns "32" in
totalentries, but the array in ctr only contains 15 entries. Look at the right
delimiter for walking the array.

10 years agos4 selftest: Fix and reenable WINBIND-STRUCT.NETBIOS_NAME test
Kai Blin [Sat, 16 Jan 2010 11:37:30 +0000 (12:37 +0100)]
s4 selftest: Fix and reenable WINBIND-STRUCT.NETBIOS_NAME test

10 years agos4-kerberos: raise the general kerberos debug level to 3
Andrew Tridgell [Sat, 16 Jan 2010 06:57:17 +0000 (17:57 +1100)]
s4-kerberos: raise the general kerberos debug level to 3

level 2 for every krb request is a bit much

10 years agosubunit/testtools: Include newer version.
Jelmer Vernooij [Sat, 16 Jan 2010 06:56:21 +0000 (19:56 +1300)]
subunit/testtools: Include newer version.

10 years agoImport testtools as well, required for subunit.
Jelmer Vernooij [Fri, 8 Jan 2010 01:09:20 +0000 (02:09 +0100)]
Import testtools as well, required for subunit.

10 years agosubunit: Import new version.
Jelmer Vernooij [Thu, 31 Dec 2009 17:48:41 +0000 (18:48 +0100)]
subunit: Import new version.

10 years agoAdd README about subunit.
Jelmer Vernooij [Thu, 31 Dec 2009 17:32:17 +0000 (18:32 +0100)]
Add README about subunit.

10 years agoAdd script for updating the copy of subunit.
Jelmer Vernooij [Thu, 31 Dec 2009 17:31:23 +0000 (18:31 +0100)]
Add script for updating the copy of subunit.

10 years agoFix permissions - net subcommand modules don't need to be executable.
Jelmer Vernooij [Thu, 31 Dec 2009 17:17:23 +0000 (18:17 +0100)]
Fix permissions - net subcommand modules don't need to be executable.

10 years agos4-torture: fixed DsReplicaGetInfo elements
Andrew Tridgell [Sat, 16 Jan 2010 03:44:24 +0000 (14:44 +1100)]
s4-torture: fixed DsReplicaGetInfo elements

10 years agos4-kcc: added DsReplicaGetInfo pending ops call
Andrew Tridgell [Sat, 16 Jan 2010 02:40:51 +0000 (13:40 +1100)]
s4-kcc: added DsReplicaGetInfo pending ops call

Just return 0 pending ops for now

10 years agos4-provision: added w2k8r2 ldap capabilities
Andrew Tridgell [Sat, 16 Jan 2010 02:20:46 +0000 (13:20 +1100)]
s4-provision: added w2k8r2 ldap capabilities

10 years agos4-devel: added rebuild_zone.sh
Andrew Tridgell [Sat, 16 Jan 2010 02:20:24 +0000 (13:20 +1100)]
s4-devel: added rebuild_zone.sh

This rebuilds a DNS zone file, including all DCs from sam.ldb

10 years agos4-provision: added "check-names ignore;" to allow for _msdcs A records
Andrew Tridgell [Sat, 16 Jan 2010 02:19:50 +0000 (13:19 +1100)]
s4-provision: added "check-names ignore;" to allow for _msdcs A records

10 years agos4-kcc: added DsReplicaGetInfo CURSORS2 level
Andrew Tridgell [Sat, 16 Jan 2010 01:10:40 +0000 (12:10 +1100)]
s4-kcc: added DsReplicaGetInfo CURSORS2 level

10 years agos4-idl: in DsReplicaGetInfo unknown2 is actually an enumeration_context
Andrew Tridgell [Sat, 16 Jan 2010 01:03:01 +0000 (12:03 +1100)]
s4-idl: in DsReplicaGetInfo unknown2 is actually an enumeration_context

10 years agos4-kcc: added support for CURSORS info level in DsReplicaGetInfo
Andrew Tridgell [Sat, 16 Jan 2010 00:49:39 +0000 (11:49 +1100)]
s4-kcc: added support for CURSORS info level in DsReplicaGetInfo

10 years agos4-dsdb: take advantage of local cursor and sort
Andrew Tridgell [Sat, 16 Jan 2010 00:49:09 +0000 (11:49 +1100)]
s4-dsdb: take advantage of local cursor and sort

in getncchanges and repl task we don't need the extra load and sort
any more.

10 years agos4-dsdb: add our local cursor and sort in dsdb_load_udv_*()
Andrew Tridgell [Sat, 16 Jan 2010 00:48:25 +0000 (11:48 +1100)]
s4-dsdb: add our local cursor and sort in dsdb_load_udv_*()

This makes things much simpler for the callers

10 years agos4-drs: use dsdb_load_udv_v2() in getncchanges code
Andrew Tridgell [Sat, 16 Jan 2010 00:08:59 +0000 (11:08 +1100)]
s4-drs: use dsdb_load_udv_v2() in getncchanges code

10 years agos4-dsdb: use dsdb_load_udv_v2() in repl task
Andrew Tridgell [Sat, 16 Jan 2010 00:08:44 +0000 (11:08 +1100)]
s4-dsdb: use dsdb_load_udv_v2() in repl task

10 years agos4-dsdb: added dsdb_load_udv_v2() and dsdb_load_udv_v1()
Andrew Tridgell [Sat, 16 Jan 2010 00:08:15 +0000 (11:08 +1100)]
s4-dsdb: added dsdb_load_udv_v2() and dsdb_load_udv_v1()

10 years agos4-kcc: simplify the ReplicaGetInfo implementation a bit
Andrew Tridgell [Fri, 15 Jan 2010 23:37:26 +0000 (10:37 +1100)]
s4-kcc: simplify the ReplicaGetInfo implementation a bit

10 years agos4-kcc: squash a warning
Andrew Tridgell [Fri, 15 Jan 2010 23:36:56 +0000 (10:36 +1100)]
s4-kcc: squash a warning

10 years agos4-drs: better debug info when security checks fail
Andrew Tridgell [Fri, 15 Jan 2010 23:36:40 +0000 (10:36 +1100)]
s4-drs: better debug info when security checks fail

show the security token of the user at debug level 2

10 years agos4-dsdb: require admin access for DsReplicaGetInfo
Andrew Tridgell [Fri, 15 Jan 2010 23:36:06 +0000 (10:36 +1100)]
s4-dsdb: require admin access for DsReplicaGetInfo

10 years agos4-drs: framework for DsGetReplInfo(), includes the DS_REPL_INFO_NEIGHBORS infoType.
Andrew Tridgell [Fri, 15 Jan 2010 08:36:16 +0000 (19:36 +1100)]
s4-drs: framework for DsGetReplInfo(), includes the DS_REPL_INFO_NEIGHBORS infoType.

This patch includes the framework for the implementation of all infoTypes of
the DsGetReplInfo() call, and includes the implementation for the first one,
the DS_REPL_INFO_NEIGHBORS.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
10 years agos4-drs: give better debug info on unsupported DRS calls
Andrew Tridgell [Fri, 15 Jan 2010 08:34:32 +0000 (19:34 +1100)]
s4-drs: give better debug info on unsupported DRS calls

10 years agos4-drs: torture test for DsGetReplInfo() (RPC-DSGETINFO test).
Erick Nogueira do Nascimento [Wed, 23 Dec 2009 19:54:30 +0000 (17:54 -0200)]
s4-drs: torture test for DsGetReplInfo() (RPC-DSGETINFO test).

Signed-off-by: Andrew Tridgell <tridge@samba.org>
10 years agos4-dsdb: added isGlobalCatalogReady
Andrew Tridgell [Fri, 15 Jan 2010 08:13:26 +0000 (19:13 +1100)]
s4-dsdb: added isGlobalCatalogReady

needed for dcdiag.exe

10 years agoSecond part of bug 7045 - Bad (non memory copying) interfaces in smbc_setXXXX calls.
Jeremy Allison [Sat, 16 Jan 2010 01:33:24 +0000 (17:33 -0800)]
Second part of bug 7045 - Bad (non memory copying) interfaces in smbc_setXXXX calls.

Protect against SMB_STRDUP of null...

Jeremy.

10 years agoFix bug 7045 - Bad (non memory copying) interfaces in smbc_setXXXX calls.
Jeremy Allison [Sat, 16 Jan 2010 01:22:35 +0000 (17:22 -0800)]
Fix bug 7045 - Bad (non memory copying) interfaces in smbc_setXXXX calls.

In smbc_free_context libsmbclient just called free() on the string options
so it assumes the callers have malloced them before setting them via smbc_set
calls.

Change to corretly malloc/free string options to the library.

Jeremy

10 years agos4-ldb: cope with bad ptr alignment in ldb_index.c
Andrew Tridgell [Fri, 15 Jan 2010 21:58:27 +0000 (08:58 +1100)]
s4-ldb: cope with bad ptr alignment in ldb_index.c

We can't assume that a rec_ptr will come back from a tdb traverse with
alignment sufficient for a pointer.

10 years agos4 selftest: Ignore more winbind test known to fail
Kai Blin [Fri, 15 Jan 2010 01:08:35 +0000 (02:08 +0100)]
s4 selftest: Ignore more winbind test known to fail

10 years agos4-smbtorture: add setup_schannel_netlogon_pipe() function.
Günther Deschner [Thu, 14 Jan 2010 23:25:06 +0000 (00:25 +0100)]
s4-smbtorture: add setup_schannel_netlogon_pipe() function.

Guenther

10 years agoFix bug #7036 - net rpc getsid fails in hardened windows environments.
Jeremy Allison [Thu, 14 Jan 2010 23:39:30 +0000 (15:39 -0800)]
Fix bug #7036 - net rpc getsid fails in hardened windows environments.

Fix suggested by Dave.Daugherty@Centrify.com.

10 years agos4-torture: Migrate ntp_signd test to tsocket.
Andreas Schneider [Thu, 14 Jan 2010 11:57:56 +0000 (12:57 +0100)]
s4-torture: Migrate ntp_signd test to tsocket.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
10 years agoPart 4 of bug #7028 - include scannedonly VFS module
Olivier Sessink [Thu, 14 Jan 2010 20:13:14 +0000 (12:13 -0800)]
Part 4 of bug #7028 - include scannedonly VFS module

Fix some issues with handling names ending in '/'.

10 years agos3-libsmbclient: Fix crash bug in SMBC_parse_path().
Günther Deschner [Thu, 14 Jan 2010 18:34:26 +0000 (19:34 +0100)]
s3-libsmbclient: Fix crash bug in SMBC_parse_path().

Patch from Tim Waugh <twaugh@redhat.com>.
This resolves https://bugzilla.redhat.com/show_bug.cgi?id=552658

LIBSMBCLIENT-OPENDIR torture test checks this as well.

Guenther

10 years agos4-smbtorture: add rather simple libsmbclient torture testsuite.
Günther Deschner [Tue, 12 Jan 2010 16:42:00 +0000 (17:42 +0100)]
s4-smbtorture: add rather simple libsmbclient torture testsuite.

Guenther

10 years agos3:auth: fix account unlock regression introduced with fix for bug #4347
Michael Adam [Thu, 14 Jan 2010 13:24:35 +0000 (14:24 +0100)]
s3:auth: fix account unlock regression introduced with fix for bug #4347

By an oversight, the patchset for #4347 made the unlocking of a locked
account after the lockout duration ineffective.
Thanks to Björn for finding this!

Michael

10 years agos3 selftest: Enable the WINBIND-STRUCT tests
Kai Blin [Wed, 13 Jan 2010 12:58:20 +0000 (13:58 +0100)]
s3 selftest: Enable the WINBIND-STRUCT tests

10 years agos3 test: Fix WINBINDD-STRUCT tests
Kai Blin [Thu, 14 Jan 2010 12:21:44 +0000 (13:21 +0100)]
s3 test: Fix WINBINDD-STRUCT tests

The struct-based tests are working in make selftest, make them work in plain
"make test" as well.

10 years agos3 selftest: Fix LOOKUP_SID test.
Kai Blin [Wed, 13 Jan 2010 15:46:17 +0000 (16:46 +0100)]
s3 selftest: Fix LOOKUP_SID test.

WINBINDD_LIST_USERS does not give a domain name if we're a DC and the user is
from our domain.

10 years agos3 selftest: Fix WINBINDD_LIST_GROUPS test
Kai Blin [Wed, 13 Jan 2010 15:02:00 +0000 (16:02 +0100)]
s3 selftest: Fix WINBINDD_LIST_GROUPS test

If there's no groups in the database, there are no entries in extra_data. This
caused WINBINDD_LIST_GROUPS test to fail. Use the fact that
WINBINDD_LIST_GROUPS now reports the number of groups in data.num_entries to
identify the "no groups" case.

10 years agos3 winbindd: Return number of groups in data.num_entries for WINBINDD_LIST_GROUPS
Kai Blin [Wed, 13 Jan 2010 14:59:57 +0000 (15:59 +0100)]
s3 winbindd: Return number of groups in data.num_entries for WINBINDD_LIST_GROUPS

This allows to test if there's something wrong with the group list in
extra_data or if there's simply no groups in the database.

Volker, please check.

10 years agos3 selftest: Allow the enumeration of users and groups
Kai Blin [Wed, 13 Jan 2010 14:21:14 +0000 (15:21 +0100)]
s3 selftest: Allow the enumeration of users and groups

This fixes the WINBINDD_GETPWENT test.

10 years agos3 selftest: Fix the WINBINDD_GETDCNAMEe test.
Kai Blin [Wed, 13 Jan 2010 13:49:26 +0000 (14:49 +0100)]
s3 selftest: Fix the WINBINDD_GETDCNAMEe test.

The WINBINDD_GETDCNAME test expected an NSS_STATUS_SUCCESS return from all
calls. However, this does not apply for BUILTIN and the DC's own domain.
Make the test work again by skipping those two.

10 years agos3 winbindd: Get WINBINDD_CHECK_MACHACC torture test to work again.
Kai Blin [Wed, 13 Jan 2010 13:10:33 +0000 (14:10 +0100)]
s3 winbindd: Get WINBINDD_CHECK_MACHACC torture test to work again.

WINBINDD_CHECK_MACHACC used to report an NTSTATUS error and appropriate error
strings. Make this work again.

10 years agos4:provision_users.ldif - Add a comment that some objects under "Users" are now locat...
Matthias Dieter Wallnöfer [Wed, 13 Jan 2010 16:39:28 +0000 (17:39 +0100)]
s4:provision_users.ldif - Add a comment that some objects under "Users" are now located elsewhere

This is needed due to the new RID/SID distribution system

10 years agos4:provision_users.ldif - Add objects for IIS
Matthias Dieter Wallnöfer [Sun, 10 Jan 2010 13:20:09 +0000 (14:20 +0100)]
s4:provision_users.ldif - Add objects for IIS

Some WSPP locations point out that beginning with Windows Server 2008 they're
also per default present.

Compared against Windows Server 2008

10 years agos4:provision_users.ldif - Add additional BUILTIN objects
Matthias Dieter Wallnöfer [Mon, 11 Jan 2010 21:12:01 +0000 (22:12 +0100)]
s4:provision_users.ldif - Add additional BUILTIN objects

Compared against Windows Server 2008

10 years agos4:provision_users.ldif - add the restant part of the objects needing for RODC support
Matthias Dieter Wallnöfer [Mon, 11 Jan 2010 21:01:42 +0000 (22:01 +0100)]
s4:provision_users.ldif - add the restant part of the objects needing for RODC support

RODC = Read Only Domain Controllers

Compared against Windows Server 2008

10 years agos4:provision_users.ldif - Fix up errors on existing entries
Matthias Dieter Wallnöfer [Mon, 11 Jan 2010 20:57:32 +0000 (21:57 +0100)]
s4:provision_users.ldif - Fix up errors on existing entries

Compared against Windows Server 2008

10 years agos4:provision_users.ldif - Simple reordering
Matthias Dieter Wallnöfer [Mon, 11 Jan 2010 20:44:18 +0000 (21:44 +0100)]
s4:provision_users.ldif - Simple reordering

Sorted according the SID - easier for later enhancements.

10 years agos4:provision_users.ldif - Remove system objects from the wrong place
Matthias Dieter Wallnöfer [Mon, 11 Jan 2010 20:36:40 +0000 (21:36 +0100)]
s4:provision_users.ldif - Remove system objects from the wrong place

Objects like the "Cryptographic Operators", "Event Log Readers" don't belong
here but into the builtin domain.

10 years agos4:SAMR RPC - Fix the criteria for group searches
Matthias Dieter Wallnöfer [Tue, 12 Jan 2010 21:16:36 +0000 (22:16 +0100)]
s4:SAMR RPC - Fix the criteria for group searches

This should match the MS-SAMR documentation (section 3.1.5.5.1.1)

10 years agos4-idl: get rid of the operation specific DRS options flags
Andrew Tridgell [Thu, 14 Jan 2010 03:40:53 +0000 (14:40 +1100)]
s4-idl: get rid of the operation specific DRS options flags

It was confusing to have several sets of incomplete options when WSPP
uses a single set.

10 years agos4-torture: switch smbtorture to the generic DRS options
Andrew Tridgell [Thu, 14 Jan 2010 03:38:18 +0000 (14:38 +1100)]
s4-torture: switch smbtorture to the generic DRS options

10 years agos4-drs: switch the DRS server to the generic DRS options flags
Andrew Tridgell [Thu, 14 Jan 2010 03:38:00 +0000 (14:38 +1100)]
s4-drs: switch the DRS server to the generic DRS options flags

10 years agos4-torture: switch to generic DRS options flags
Andrew Tridgell [Thu, 14 Jan 2010 03:37:40 +0000 (14:37 +1100)]
s4-torture: switch to generic DRS options flags

10 years agos4-drepl: switch drepl over to using the generic DRS options flags
Andrew Tridgell [Thu, 14 Jan 2010 03:37:22 +0000 (14:37 +1100)]
s4-drepl: switch drepl over to using the generic DRS options flags

WSPP uses a single set of flags for all these DRS operations.

10 years agos4-idl: update the DRS_OPTIONS bits based on the latest WSPP docs
Andrew Tridgell [Thu, 14 Jan 2010 03:19:22 +0000 (14:19 +1100)]
s4-idl: update the DRS_OPTIONS bits based on the latest WSPP docs

10 years agos4-drs: Uses dsdb_load_partition_usn() with urgent_uSN in s4 code
Fernando J V da Silva [Wed, 13 Jan 2010 16:08:56 +0000 (14:08 -0200)]
s4-drs: Uses dsdb_load_partition_usn() with urgent_uSN in s4 code

Signed-off-by: Andrew Tridgell <tridge@samba.org>
10 years agos4-drs: Store uSNUrgent for Urgent Replication
Fernando J V da Silva [Thu, 7 Jan 2010 18:30:05 +0000 (16:30 -0200)]
s4-drs: Store uSNUrgent for Urgent Replication

When a object or attribute is created/updated/deleted, according
to [MS-ADTS] 3.1.1.5.1.6, it stores the uSNUrgent on @REPLCHANGED
for the partitions that it belongs.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
10 years agos3:pdb_ldap: restore Samba 3.0.x behavior and use the first "uid" value.
Stefan Metzmacher [Tue, 5 Jan 2010 12:30:42 +0000 (13:30 +0100)]
s3:pdb_ldap: restore Samba 3.0.x behavior and use the first "uid" value.

See bug #6157 for more details.

metze

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 25806f43ddee7e2653e907eea2c6fcc075960fa1)

10 years agos3:smbldap: add smbldap_talloc_first_attribute()
Stefan Metzmacher [Tue, 5 Jan 2010 12:30:19 +0000 (13:30 +0100)]
s3:smbldap: add smbldap_talloc_first_attribute()

metze

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit c992127f8a96c37940a6d298c7c6859c47f83d9b)

10 years agos4:dsdb: use validate_update module
Stefan Metzmacher [Tue, 29 Sep 2009 09:14:33 +0000 (11:14 +0200)]
s4:dsdb: use validate_update module

metze

10 years agos4:dsdb/schema: add dsdb_syntax_OID_validate_ldb()
Stefan Metzmacher [Tue, 12 Jan 2010 22:45:02 +0000 (23:45 +0100)]
s4:dsdb/schema: add dsdb_syntax_OID_validate_ldb()

This is a very heavy weight way of checking this syntax,
but it's very complex and using the existing function
should be ok for now. We can optimize it later.

metze

10 years agos4:dsdb/schema: add dsdb_syntax_DN_STRING_validate_ldb()
Stefan Metzmacher [Tue, 29 Sep 2009 16:57:01 +0000 (18:57 +0200)]
s4:dsdb/schema: add dsdb_syntax_DN_STRING_validate_ldb()

metze

10 years agos4:dsdb/schema: add dsdb_syntax_DN_BINARY_validate_ldb()
Stefan Metzmacher [Tue, 29 Sep 2009 16:57:01 +0000 (18:57 +0200)]
s4:dsdb/schema: add dsdb_syntax_DN_BINARY_validate_ldb()

metze

10 years agos4:dsdb/schema: add dsdb_syntax_DN_validate_ldb()
Stefan Metzmacher [Tue, 29 Sep 2009 16:57:01 +0000 (18:57 +0200)]
s4:dsdb/schema: add dsdb_syntax_DN_validate_ldb()

metze

10 years agos4:dsdb/schema: add dsdb_syntax_PRESENTATION_ADDRESS_validate_ldb()
Stefan Metzmacher [Tue, 29 Sep 2009 16:57:01 +0000 (18:57 +0200)]
s4:dsdb/schema: add dsdb_syntax_PRESENTATION_ADDRESS_validate_ldb()

metze

10 years agos4:dsdb/schema: add dsdb_syntax_UNICODE_validate_ldb()
Stefan Metzmacher [Tue, 29 Sep 2009 16:57:01 +0000 (18:57 +0200)]
s4:dsdb/schema: add dsdb_syntax_UNICODE_validate_ldb()

metze

10 years agos4:dsdb/schema: add dsdb_syntax_DATA_BLOB_validate_ldb()
Stefan Metzmacher [Tue, 29 Sep 2009 16:57:01 +0000 (18:57 +0200)]
s4:dsdb/schema: add dsdb_syntax_DATA_BLOB_validate_ldb()

metze

10 years agos4:dsdb/schema: add dsdb_syntax_NTTIME_validate_ldb()
Stefan Metzmacher [Tue, 29 Sep 2009 16:57:01 +0000 (18:57 +0200)]
s4:dsdb/schema: add dsdb_syntax_NTTIME_validate_ldb()

metze

10 years agos4:dsdb/schema: add dsdb_syntax_NTTIME_UTC_validate_ldb()
Stefan Metzmacher [Tue, 29 Sep 2009 16:57:01 +0000 (18:57 +0200)]
s4:dsdb/schema: add dsdb_syntax_NTTIME_UTC_validate_ldb()

metze

10 years agos4:dsdb/schema: add dsdb_syntax_INT64_validate_ldb()
Stefan Metzmacher [Tue, 29 Sep 2009 16:57:01 +0000 (18:57 +0200)]
s4:dsdb/schema: add dsdb_syntax_INT64_validate_ldb()

metze

10 years agos4:dsdb/schema: add dsdb_syntax_INT32_validate_ldb()
Stefan Metzmacher [Tue, 29 Sep 2009 16:57:01 +0000 (18:57 +0200)]
s4:dsdb/schema: add dsdb_syntax_INT32_validate_ldb()

metze

10 years agos4:dsdb/schema: add dsdb_syntax_BOOL_validate_ldb()
Stefan Metzmacher [Tue, 29 Sep 2009 16:57:01 +0000 (18:57 +0200)]
s4:dsdb/schema: add dsdb_syntax_BOOL_validate_ldb()

metze

10 years agos4:dsdb: add validate_update module
Stefan Metzmacher [Tue, 29 Sep 2009 09:14:09 +0000 (11:14 +0200)]
s4:dsdb: add validate_update module

metze

10 years agos4:dsdb/schema: add inftrastructure for dsdb_validate_ldb()
Stefan Metzmacher [Tue, 29 Sep 2009 16:57:01 +0000 (18:57 +0200)]
s4:dsdb/schema: add inftrastructure for dsdb_validate_ldb()

metze

10 years agos4:dsdb/schema: add dsdb_syntax_DN_STRING_* wrappers
Stefan Metzmacher [Tue, 29 Sep 2009 16:57:01 +0000 (18:57 +0200)]
s4:dsdb/schema: add dsdb_syntax_DN_STRING_* wrappers

metze

10 years agos4:dsdb/resolve_oids: also resolve oid in search attribute list
Stefan Metzmacher [Tue, 29 Sep 2009 10:00:39 +0000 (12:00 +0200)]
s4:dsdb/resolve_oids: also resolve oid in search attribute list

metze

10 years agos4:dsdb/schema_load: add a TODO about schema reloading
Stefan Metzmacher [Wed, 13 Jan 2010 11:00:27 +0000 (12:00 +0100)]
s4:dsdb/schema_load: add a TODO about schema reloading

metze

10 years agos4:ldb/tests: do a "schemaUpdateNow" after creating a new attribute in ldap_schema.py
Stefan Metzmacher [Wed, 13 Jan 2010 10:45:05 +0000 (11:45 +0100)]
s4:ldb/tests: do a "schemaUpdateNow" after creating a new attribute in ldap_schema.py

It seems that windows doesn't need that.

And we should think about a check for reloading the schema
at the start of each "write" operation.

metze

10 years agos4:dsdb/repl: reorder dreplsrv_op_notify* functions
Stefan Metzmacher [Wed, 13 Jan 2010 15:00:20 +0000 (16:00 +0100)]
s4:dsdb/repl: reorder dreplsrv_op_notify* functions

This make the whole async dreplsrv_op_notify_send/recv()
readable.

metze

10 years agos4:dsdb/repl: change dreplsrv_op_notify_send/recv() to tevent_req
Stefan Metzmacher [Mon, 11 Jan 2010 19:00:07 +0000 (20:00 +0100)]
s4:dsdb/repl: change dreplsrv_op_notify_send/recv() to tevent_req

metze

10 years agos4:dsdb/common: fix major bug in lsa_BinaryString to ldb_val conversation.
Stefan Metzmacher [Tue, 12 Jan 2010 08:59:26 +0000 (09:59 +0100)]
s4:dsdb/common: fix major bug in lsa_BinaryString to ldb_val conversation.

In lsa_BinaryString length and size are byte counts!

TODO: we may need to do byte order conversion in this functions too...

metze

10 years agos4:ldb_msg: first try to decode integers as signed and then fallback to unsigned
Stefan Metzmacher [Mon, 11 Jan 2010 19:18:09 +0000 (20:18 +0100)]
s4:ldb_msg: first try to decode integers as signed and then fallback to unsigned

LDAP only knowns about signed integers, so let
ldb_msg_find_attr_as_uint() and ldb_msg_find_attr_as_uint64() cope
with it.

metze