13 years agos4:ldb_map Fix use-after-free of memory in ldb_map
Andrew Bartlett [Wed, 21 Oct 2009 07:23:18 +0000 (18:23 +1100)]
s4:ldb_map Fix use-after-free of memory in ldb_map

We need to keep the old 'ares' from the remote server around so we can forward
it back to the caller.  We can't send the same controls (from the last search
entry) twice (and it makes no sense anyway).

Andrew Bartlett

13 years agos4:dsdb talloc_steal the backend module to under the partition
Andrew Bartlett [Wed, 21 Oct 2009 05:09:10 +0000 (16:09 +1100)]
s4:dsdb talloc_steal the backend module to under the partition

13 years agos4:ldb Put ltdb_private under the 'module'
Andrew Bartlett [Wed, 21 Oct 2009 05:08:24 +0000 (16:08 +1100)]
s4:ldb Put ltdb_private under the 'module'

This helps track the memory better, as we can then place it under the partition

Andrew Bartlett

13 years agos4:rpc_server Ensure we talloc_free handles when we delete objects
Andrew Bartlett [Wed, 21 Oct 2009 05:07:22 +0000 (16:07 +1100)]
s4:rpc_server Ensure we talloc_free handles when we delete objects

If we don't talloc_free the handle, we leak the memory onto the long-term

Andrew Bartlett

13 years agos4:dsdb Remove potentially confusing 'partition' control from result
Andrew Bartlett [Wed, 21 Oct 2009 04:21:21 +0000 (15:21 +1100)]
s4:dsdb Remove potentially confusing 'partition' control from result

This ensures that the partition control, needed here for repl_meta_data's
internal work, is not pushed up to other callers.

Andrew Bartlett

13 years agos4:ldb Add new function to create a cut down list of controls
Andrew Bartlett [Wed, 21 Oct 2009 04:20:26 +0000 (15:20 +1100)]
s4:ldb Add new function to create a cut down list of controls

This I hope will be useful for removing controls from the ldb_reply

Andrew Bartlett

13 years agos4:samr Don't leak the whole user onto the long-term handle
Andrew Bartlett [Wed, 21 Oct 2009 04:18:59 +0000 (15:18 +1100)]
s4:samr Don't leak the whole user onto the long-term handle

The user entry is only required for this function, so use
mem_ctx to hold it.

Andrew Bartlett

13 years agolibrpc Make talloc tree in binding tower match the floors
Andrew Bartlett [Wed, 21 Oct 2009 04:17:31 +0000 (15:17 +1100)]
librpc Make talloc tree in binding tower match the floors

This is mostly cosmetics, but helped me see that these are legitimate stuctures
when viewed in the talloc tree.

Also don't put the 'ndr' structure on the long-term tree.

Andrew Bartlett

13 years agos4:epmapper Create a proper talloc tree of endpoint floors
Andrew Bartlett [Wed, 21 Oct 2009 04:15:48 +0000 (15:15 +1100)]
s4:epmapper Create a proper talloc tree of endpoint floors

Andrew Bartlett

13 years agos4:dsdb Allow creation of new partitions
Andrew Bartlett [Mon, 19 Oct 2009 22:12:26 +0000 (09:12 +1100)]
s4:dsdb Allow creation of new partitions

This is a collection of fixes to allow the creation of new partitions,
as well as adding debugging that may be useful in chasing down future

Andrew Bartlett

13 years agos4:provision Use schema to casefold partitions on 'upgrade'.
Andrew Bartlett [Mon, 19 Oct 2009 22:11:04 +0000 (09:11 +1100)]
s4:provision Use schema to casefold partitions on 'upgrade'.

This helps us upgrade from sam.ldb files before the dynamic partitions
work, and ensures we use the right casefolding functions.

Andrew Bartlett

13 years agos4:dsdb Remove default instanceType from repl_meta_data
Andrew Bartlett [Mon, 19 Oct 2009 01:03:50 +0000 (12:03 +1100)]
s4:dsdb Remove default instanceType from repl_meta_data

This is no longer required, as the instancetype module is now above

Andrew Bartlett

13 years agos4:dsdb Remove workaround for two partition head records
Andrew Bartlett [Fri, 16 Oct 2009 05:25:49 +0000 (16:25 +1100)]
s4:dsdb Remove workaround for two partition head records

The problem here has been avoided in repl_meta_data, and so this is no
longer required.

Andrew Bartlett

13 years agos4:dsdb Use 'partition modified' information to update @REPLCHANGED
Andrew Bartlett [Fri, 16 Oct 2009 05:20:15 +0000 (16:20 +1100)]
s4:dsdb Use 'partition modified' information to update @REPLCHANGED

This major rework of repl_meta_data changes it from using a static
list of partitions to a dynamic list created from the controls placed
on returned ldb results.

To process these in one place, the similar but distinct callbacks are
combined into a single replmd_op_callback(), which handles both the
'normal operation' and 'inbound replication' case.

This allows new partitions to be created, and replication events for
these new partitions to be scheduled immediately.

Also in this commit: We no longer specify the target partition for new
or modified objects - instead we allow the partitions module to use
the DN as normal.  THis avoids the issue where we would create two
partition head records.

Andrew Bartlett

13 years agos4:repl Pass schema as argument to replmd_update_rpmd()
Andrew Bartlett [Fri, 16 Oct 2009 04:11:28 +0000 (15:11 +1100)]
s4:repl Pass schema as argument to replmd_update_rpmd()

13 years agos4:dsdb In partitions module, tell the caller what partition was used.
Andrew Bartlett [Wed, 14 Oct 2009 23:49:25 +0000 (10:49 +1100)]
s4:dsdb In partitions module, tell the caller what partition was used.

This means we don't return any control for modifications to the
control records in sam.ldb, but do if they modified one of the actual
data LDB files.

Andrew Bartlett

13 years agos4:ldb Add function to add controls to an LDB reply
Andrew Bartlett [Wed, 14 Oct 2009 23:45:44 +0000 (10:45 +1100)]
s4:ldb Add function to add controls to an LDB reply

13 years agos4:dsdb Load new partitions in a running LDB if metadata changes
Andrew Bartlett [Wed, 14 Oct 2009 04:16:34 +0000 (15:16 +1100)]
s4:dsdb Load new partitions in a running LDB if metadata changes

This allows one instance of LDB to add a partition, and another to use
it without first closing the database.

Andrew Bartlett

13 years agos4:dsdb Only reload partition metadata on search and transaction start
Andrew Bartlett [Wed, 14 Oct 2009 03:13:52 +0000 (14:13 +1100)]
s4:dsdb Only reload partition metadata on search and transaction start

I see no reason to reload it when in a transaction - it can't change
on us anyway (we possibly need to watch for our own changes to
@PARTITION however)

Andrew Bartlett

13 years agos4:dsdb Reload partition metadata if the main db updates
Andrew Bartlett [Wed, 14 Oct 2009 01:57:03 +0000 (12:57 +1100)]
s4:dsdb Reload partition metadata if the main db updates

This uses the fact that the primary DB does not change often.  Before
each operation, we see if the sequence number has changed.

Andrew Bartlett

13 years agos4:provision Test ability to set GUIDs from provision command line
Andrew Bartlett [Tue, 6 Oct 2009 03:11:44 +0000 (14:11 +1100)]
s4:provision Test ability to set GUIDs from provision command line

13 years agos4:provison Allow the NTDS guid on the command line (for testing)
Andrew Bartlett [Tue, 13 Oct 2009 11:11:34 +0000 (22:11 +1100)]
s4:provison Allow the NTDS guid on the command line (for testing)

This allows a blackbox test to confirm this can be set.

Andrew Bartlett

13 years agos4:dsdb Split 'set per-partition metadata' into it's own function
Andrew Bartlett [Wed, 14 Oct 2009 00:09:18 +0000 (11:09 +1100)]
s4:dsdb Split 'set per-partition metadata' into it's own function

This helps us ensure we always set the metadata, even when we are
'adding' a partition that is already in our list.  (We *really* don't
want these getting out of sync, and the extra writes are harmless)

Andrew Bartlett

13 years agos4:Handle reprovision with existing partitions
Andrew Bartlett [Tue, 13 Oct 2009 11:10:28 +0000 (22:10 +1100)]
s4:Handle reprovision with existing partitions

The issue here is that if we don't put the partitions metadata in the
database before we wipe it, we won't wipe the partitions contents, and
so the provision will later fail (entry already exists)

Andrew Bartlett

13 years agos4:dsdb Don't try and casefold DNs during startup for partition load
Andrew Bartlett [Tue, 13 Oct 2009 11:09:14 +0000 (22:09 +1100)]
s4:dsdb Don't try and casefold DNs during startup for partition load

The issue here is that before we load the schema partition, we may not
have the correct casefolding rules.  As such, keep things simple and
use the DN exactly as found in the @PARTITIONS record to find the

Andrew Bartlett

13 years agos4:dsdb Fix partition_create not to return early
Andrew Bartlett [Mon, 12 Oct 2009 12:27:00 +0000 (23:27 +1100)]
s4:dsdb Fix partition_create not to return early

13 years agos4:dsdb Fix tests for samba3sam to pass after partitions module changes
Andrew Bartlett [Mon, 12 Oct 2009 09:49:23 +0000 (20:49 +1100)]
s4:dsdb Fix tests for samba3sam to pass after partitions module changes

This is needed because the new format of the partitions record is a
casefolded DN, not a DN and file combination.

Andrew Bartlett

13 years agos4:dsdb Be strict in selecting on-disk names for partitions
Andrew Bartlett [Mon, 12 Oct 2009 05:37:12 +0000 (16:37 +1100)]
s4:dsdb Be strict in selecting on-disk names for partitions

I really don't want a cn=foo/../bar in my ldb file name.

Andrew Bartlett

13 years agos4:dsdb Set 'notification' after the success of a change.
Andrew Bartlett [Fri, 9 Oct 2009 22:36:44 +0000 (09:36 +1100)]
s4:dsdb Set 'notification' after the success of a change.

This allows the partition to be created before we try and set a
notification on it.  (perhaps extra work required here for partition

Andrew Bartlett

13 years agos4:provision Set @OPTIONS in the provision_init.ldif
Andrew Bartlett [Fri, 9 Oct 2009 22:26:06 +0000 (09:26 +1100)]
s4:provision Set @OPTIONS in the provision_init.ldif

The new partitions code knows to copy these items in when creating a
new parition, so we can set it from the start.

Andrew Bartlett

13 years agos4:dsdb Rework modules create new partitions at runtime
Andrew Bartlett [Fri, 2 Oct 2009 00:28:29 +0000 (10:28 +1000)]
s4:dsdb Rework modules create new partitions at runtime

This is done by passing an extended operation to the partitions module
to extend the @PARTITION record and to extend the in-memory list of

This also splits things up into module parts that belong above and below

Also slit the partitions module into two files due to the complexity
of the code

Andrew Barltett

13 years agos4/drs: prefixMap main interface implementation
Kamen Mazdrashki [Sun, 18 Oct 2009 18:34:21 +0000 (21:34 +0300)]
s4/drs: prefixMap main interface implementation

Currenly implemented functions are:
dsdb_schema_pfm_new(), dsdb_schema_pfm_make_attid()
and dsdb_schema_pfm_oid_from_attid()

13 years agos4/drs(tort): Unit test for prefixMap implementation.
Kamen Mazdrashki [Sun, 18 Oct 2009 18:31:37 +0000 (21:31 +0300)]
s4/drs(tort): Unit test for prefixMap implementation.

Currenly those tests cover only the main part of the interface,
i.e. dsdb_schema_pfm_new(), dsdb_schema_pfm_make_attid()
and dsdb_schema_pfm_oid_from_attid()

13 years agos4/drs(tort): Comment typos fixed in drs_util.c
Kamen Mazdrashki [Sun, 18 Oct 2009 18:28:55 +0000 (21:28 +0300)]
s4/drs(tort): Comment typos fixed in drs_util.c

13 years agos4/drs(tort): fixed '==' to '>='
Kamen Mazdrashki [Sun, 18 Oct 2009 18:28:28 +0000 (21:28 +0300)]
s4/drs(tort): fixed '==' to '>='

ATTID is marked as partial by adding 32768.
Thus the check should be '>= 32768'

13 years agos4-lsa: Fix dcesrv_lsa_EnumTrustDom() and avoid infite windows client loop.
Günther Deschner [Wed, 21 Oct 2009 00:18:54 +0000 (02:18 +0200)]
s4-lsa: Fix dcesrv_lsa_EnumTrustDom() and avoid infite windows client loop.

Found by RPC-LSA-TRUSTED-DOMAIN torture test.


13 years agos3-lsa: Fix _lsa_EnumTrustDom() and avoid infite windows client loop.
Günther Deschner [Wed, 21 Oct 2009 00:17:32 +0000 (02:17 +0200)]
s3-lsa: Fix _lsa_EnumTrustDom() and avoid infite windows client loop.

Found by RPC-LSA-TRUSTED-DOMAIN torture test.


13 years agos4-smbtorture: test whether an lsa_EnumTrustDom implementation would hang up a client.
Günther Deschner [Wed, 21 Oct 2009 00:16:32 +0000 (02:16 +0200)]
s4-smbtorture: test whether an lsa_EnumTrustDom implementation would hang up a client.


13 years agos3-lsa: make s3 pass against RPC-LSA-LOOKUPNAMES again.
Günther Deschner [Wed, 21 Oct 2009 00:45:21 +0000 (02:45 +0200)]
s3-lsa: make s3 pass against RPC-LSA-LOOKUPNAMES again.

Do what W2k8 does and return the builtin domain for a NULL name.


13 years agonsswitch: fix the build of the winbind krb5 locator plugin.
Günther Deschner [Wed, 21 Oct 2009 00:44:44 +0000 (02:44 +0200)]
nsswitch: fix the build of the winbind krb5 locator plugin.


13 years agoTurn on LOCK9 test which will test for regressions in bug 6828.
Jeremy Allison [Wed, 21 Oct 2009 00:53:06 +0000 (17:53 -0700)]
Turn on LOCK9 test which will test for regressions in bug 6828.

13 years agoFix bug 6828 - infinite timeout occurs when byte lock held outside of samba
Jeremy Allison [Wed, 21 Oct 2009 00:52:34 +0000 (17:52 -0700)]
Fix bug 6828 - infinite timeout occurs when byte lock held outside of samba

13 years agoFix comments on new test.
Jeremy Allison [Wed, 21 Oct 2009 00:41:27 +0000 (17:41 -0700)]
Fix comments on new test.

13 years agoAdd local (or NFS) lock test to smbtorture. Checks that local locks
Jeremy Allison [Wed, 21 Oct 2009 00:37:43 +0000 (17:37 -0700)]
Add local (or NFS) lock test to smbtorture. Checks that local locks
conflict with CIFS locks (see bug 6868).

13 years agos4-smbtorture: fix RPC-LSA-LSALOOKUP test against w2k3 and w2k8.
Günther Deschner [Tue, 20 Oct 2009 21:47:40 +0000 (23:47 +0200)]
s4-smbtorture: fix RPC-LSA-LSALOOKUP test against w2k3 and w2k8.

Make sure to split out lsa_LookupName NULL name test so that we can better track
results from bogus names and NULL names.


13 years agoFix "make install" by removing all references to python. Not currently
Jeremy Allison [Tue, 20 Oct 2009 20:42:28 +0000 (13:42 -0700)]
Fix "make install" by removing all references to python. Not currently
needed in source3, and isn't working anyway.

13 years agoRemove pythonmods from the build in source3, it doesn't build anyway
Jeremy Allison [Tue, 20 Oct 2009 20:28:05 +0000 (13:28 -0700)]
Remove pythonmods from the build in source3, it doesn't build anyway
and isn't needed (as far as I can tell).

13 years agoFix the build with the recent linker flag changes.
Jeremy Allison [Tue, 20 Oct 2009 20:09:42 +0000 (13:09 -0700)]
Fix the build with the recent linker flag changes.

13 years agos4-smbtorture: Make it simpler to specify number of trusted domains to create in
Günther Deschner [Tue, 20 Oct 2009 16:34:09 +0000 (18:34 +0200)]
s4-smbtorture: Make it simpler to specify number of trusted domains to create in


13 years agos3-lsa: Fix _lsa_EnumTrustDom().
Günther Deschner [Tue, 20 Oct 2009 16:35:49 +0000 (18:35 +0200)]
s3-lsa: Fix _lsa_EnumTrustDom().

Windows clients were showing a lot of duplicates in their list of trusted

Found by RPC-LSA-TRUSTED-DOMAIN torture test.


13 years agos3-pdb_ldap: fix crash bug in ldapsam_set_trusteddom_pw().
Günther Deschner [Tue, 20 Oct 2009 16:35:16 +0000 (18:35 +0200)]
s3-pdb_ldap: fix crash bug in ldapsam_set_trusteddom_pw().

Thanks Volker for the hint.


13 years agos3:Makefile: rename LDSHFLAG variables to make meaning more obvious
Björn Jacke [Tue, 20 Oct 2009 18:45:46 +0000 (20:45 +0200)]
s3:Makefile: rename LDSHFLAG variables to make meaning more obvious

13 years agos3-lsa: Fix _lsa_CreateAccount() for usage of SEC_FLAG_MAXIMUM_ALLOWED.
Günther Deschner [Tue, 20 Oct 2009 13:54:40 +0000 (15:54 +0200)]
s3-lsa: Fix _lsa_CreateAccount() for usage of SEC_FLAG_MAXIMUM_ALLOWED.

Found by RPC-LSA-PRIVILEGES torture test.


13 years agos3-selftest: enable RPC-LSA-PRIVILEGES against Samba 3.
Günther Deschner [Thu, 16 Jul 2009 16:46:10 +0000 (18:46 +0200)]
s3-selftest: enable RPC-LSA-PRIVILEGES against Samba 3.


13 years agos4-smbtorture: Fix wrong comment in RPC-LSA-TRUSTED-DOMAIN test.
Günther Deschner [Tue, 20 Oct 2009 13:09:32 +0000 (15:09 +0200)]
s4-smbtorture: Fix wrong comment in RPC-LSA-TRUSTED-DOMAIN test.


13 years agos4-smbtorture: split out EnumTrustedDomainsEx test in RPC-LSA-TRUSTED-DOMAINS.
Günther Deschner [Tue, 20 Oct 2009 10:59:49 +0000 (12:59 +0200)]
s4-smbtorture: split out EnumTrustedDomainsEx test in RPC-LSA-TRUSTED-DOMAINS.


13 years agos3-lsa: Allow to lookup 'NT AUTHORITY\Anonymous Logon' as well.
Günther Deschner [Tue, 20 Oct 2009 13:15:06 +0000 (15:15 +0200)]
s3-lsa: Allow to lookup 'NT AUTHORITY\Anonymous Logon' as well.

This is to finally pass RPC-LSA-LOOKUPNAMES test.


13 years agos3-lsa: allow to lookup BUILTIN\ in lsa_LookupNames.
Günther Deschner [Tue, 20 Oct 2009 13:13:56 +0000 (15:13 +0200)]
s3-lsa: allow to lookup BUILTIN\ in lsa_LookupNames.

Found by RPC-LSA-LOOKUPNAMES torture test.


13 years agos3-lsa: When looking up domains in LookupNames, do not strip the sid.
Günther Deschner [Tue, 20 Oct 2009 13:12:58 +0000 (15:12 +0200)]
s3-lsa: When looking up domains in LookupNames, do not strip the sid.

Found by RPC-LSA-LOOKUPNAMES torture test.


13 years agos3-lsa: allow to have NULL strings in lsa LookupName queries.
Günther Deschner [Tue, 20 Oct 2009 13:11:58 +0000 (15:11 +0200)]
s3-lsa: allow to have NULL strings in lsa LookupName queries.

Found by RPC-LSA-LOOKUPNAMES torture test.


13 years agos4-smbtorture: add stricter tests for LSA-LOOKUPNAMES replies.
Günther Deschner [Tue, 20 Oct 2009 13:00:55 +0000 (15:00 +0200)]
s4-smbtorture: add stricter tests for LSA-LOOKUPNAMES replies.


13 years agos4-smbtorture: move all LookupNames tests into RPC-LSA-LOOKUPNAMES.
Günther Deschner [Wed, 15 Jul 2009 22:52:28 +0000 (00:52 +0200)]
s4-smbtorture: move all LookupNames tests into RPC-LSA-LOOKUPNAMES.


13 years agos3:configure: add support for Solaris' ld -z ignore
Björn Jacke [Tue, 20 Oct 2009 06:01:52 +0000 (08:01 +0200)]
s3:configure: add support for Solaris' ld -z ignore

try linker flags for ignoring unused libs in this order:
-Wl,--as-needed (gcc like + binutils)
-Wl,-z,ignore (gcc like + Solaris linker)
-z ignore (old Sun C)

13 years agos3: make unresolved symbols in libs throw errors
Björn Jacke [Mon, 19 Oct 2009 23:13:56 +0000 (01:13 +0200)]
s3: make unresolved symbols in libs throw errors

except for the Samba internal plugins unresolved symbol references should not
show up in shared libraries. For historical reasons it's the default behaviour
of linkers to ignore those in shared libs. We use -z defs (alias
--no-undefined) to not ignore them in shared libs.

13 years agos3: allow using different LDFLAGS for internal libs/plugins
Björn Jacke [Sun, 18 Oct 2009 20:51:06 +0000 (22:51 +0200)]
s3: allow using different LDFLAGS for internal libs/plugins

internal libs have unresolved symbols intentionally.
Thanks to Buchan Milne for suggestion and patch. This addresses #6792.

13 years agos4-torture: fixed a pipe leak
Andrew Tridgell [Tue, 20 Oct 2009 05:34:42 +0000 (16:34 +1100)]
s4-torture: fixed a pipe leak

The RPC-SAMR-PASSWORDS* tests could leak RPC pipes, causing an
overallocation of fd's on the server

13 years agos4-selftest: the secleak test is not designed for automated running
Andrew Tridgell [Tue, 20 Oct 2009 05:18:51 +0000 (16:18 +1100)]
s4-selftest: the secleak test is not designed for automated running

13 years agos4: ran on source4/auth/gensec
Andrew Tridgell [Tue, 20 Oct 2009 04:41:30 +0000 (15:41 +1100)]
s4: ran on source4/auth/gensec

13 years agos4: ran on source4/auth/ntlmssp
Andrew Tridgell [Tue, 20 Oct 2009 04:39:35 +0000 (15:39 +1100)]
s4: ran on source4/auth/ntlmssp

13 years agos4: ran on source4/auth/ntlm
Andrew Tridgell [Tue, 20 Oct 2009 04:38:03 +0000 (15:38 +1100)]
s4: ran on source4/auth/ntlm

13 years agos4: ran on source4/client
Andrew Tridgell [Tue, 20 Oct 2009 04:34:30 +0000 (15:34 +1100)]
s4: ran on source4/client

13 years agos4: ran on source4/rpc_server
Andrew Tridgell [Tue, 20 Oct 2009 04:32:35 +0000 (15:32 +1100)]
s4: ran on source4/rpc_server

13 years agos4: ran on source4/winbind
Andrew Tridgell [Tue, 20 Oct 2009 04:01:46 +0000 (15:01 +1100)]
s4: ran on source4/winbind

13 years agos4-torture: ran over source4/torture
Andrew Tridgell [Tue, 20 Oct 2009 03:53:08 +0000 (14:53 +1100)]
s4-torture: ran over source4/torture

This reduces compile time somewhat.

13 years agos4-script: cleanup tmp files in
Andrew Tridgell [Tue, 20 Oct 2009 03:31:50 +0000 (14:31 +1100)]
s4-script: cleanup tmp files in

also changes to use perl fns, instead of shell

13 years agos4-selftest: skip two more scanners
Andrew Tridgell [Tue, 20 Oct 2009 04:19:27 +0000 (15:19 +1100)]
s4-selftest: skip two more scanners

Protocol scanners are not any use in the build farm

13 years agos4-torture: fixed a fd/mem leak in the RPC-LSA-SECRETS test
Andrew Tridgell [Tue, 20 Oct 2009 03:27:57 +0000 (14:27 +1100)]
s4-torture: fixed a fd/mem leak in the RPC-LSA-SECRETS test

This test left a large number of lsa pipes open, which could trigger
the server running out of fds

13 years agos4-selftest: skip the trans2.scan test
Andrew Tridgell [Tue, 20 Oct 2009 02:54:55 +0000 (13:54 +1100)]
s4-selftest: skip the trans2.scan test

This test consumes a huge number of file descriptors on the server
(random binds to the WKSSVC pipe)

13 years agos4-dsdb: fixed empty structure error on solaris8
Andrew Tridgell [Tue, 20 Oct 2009 02:00:12 +0000 (13:00 +1100)]
s4-dsdb: fixed empty structure error on solaris8

Nadya, I'm guessing you plan on adding some real elements to this
structure later. For now I've added _dummy so the build can continue
with the Solaris C compiler.

13 years agos4-idl: don't call a variable 'stat'
Andrew Tridgell [Tue, 20 Oct 2009 01:13:15 +0000 (12:13 +1100)]
s4-idl: don't call a variable 'stat'

never call a structure member by the name of a standard C lib call. It
breaks the build on some systems.

13 years agolib-util: check for too many combinations in generate_unique_strs()
Andrew Tridgell [Tue, 20 Oct 2009 00:34:49 +0000 (11:34 +1100)]
lib-util: check for too many combinations in generate_unique_strs()

13 years agotdb: fixed the intermittent failure of tdbtorture in the build farm
Andrew Tridgell [Mon, 19 Oct 2009 23:59:40 +0000 (10:59 +1100)]
tdb: fixed the intermittent failure of tdbtorture in the build farm

There was a race condition that caused the torture.tdb to be left in a
state that needed recovery. The torture code thought that any message
from the tdb code was an error, so the "recovered" message, which is a
TDB_DEBUG_TRACE message, marked the run as being an error when it

13 years agoFixes for typos. Thank-you PC Oota.
John H Terpstra [Mon, 19 Oct 2009 18:29:17 +0000 (13:29 -0500)]
Fixes for typos. Thank-you PC Oota.

13 years agowbinfo: use wbcLookupDomainControllerEx for wbinfo --dsgetdcname.
Günther Deschner [Mon, 19 Oct 2009 14:54:37 +0000 (16:54 +0200)]
wbinfo: use wbcLookupDomainControllerEx for wbinfo --dsgetdcname.


13 years agolibwbclient: fix wbcLookupDomainController().
Günther Deschner [Mon, 19 Oct 2009 14:55:15 +0000 (16:55 +0200)]
libwbclient: fix wbcLookupDomainController().

Found by WINBIND-WBCLIENT torture test.


13 years agos4-smbtorture: test wbcLookupDomainController{Ex} in WINBIND-WBCLIENT.
Günther Deschner [Fri, 16 Oct 2009 11:39:24 +0000 (13:39 +0200)]
s4-smbtorture: test wbcLookupDomainController{Ex} in WINBIND-WBCLIENT.


13 years agogitignore: remove old netlogon prototypes.
Günther Deschner [Mon, 19 Oct 2009 16:41:15 +0000 (18:41 +0200)]
gitignore: remove old netlogon prototypes.


13 years agos4:torture "cldap" test - restore the removed constraints and add more
Matthias Dieter Wallnöfer [Mon, 19 Oct 2009 16:34:29 +0000 (18:34 +0200)]
s4:torture "cldap" test - restore the removed constraints and add more

Consider for description the post on the technical mailing list. I hope that this
satisfies abartlet again.

13 years agos4:password_hash LDB module - substitute "lp_workgroup" with "lp_sam_name"
Matthias Dieter Wallnöfer [Mon, 19 Oct 2009 16:25:05 +0000 (18:25 +0200)]
s4:password_hash LDB module - substitute "lp_workgroup" with "lp_sam_name"

According to abartlet's response on my post about "lp_workgroup" this should be
the right call.

13 years agoselftest: try to get the valgrind errors showing again in the build farm
Andrew Tridgell [Mon, 19 Oct 2009 11:58:23 +0000 (22:58 +1100)]
selftest: try to get the valgrind errors showing again in the build farm

13 years agoutil: fixed generate_unique_strs() to be portable
Andrew Tridgell [Mon, 19 Oct 2009 11:47:45 +0000 (22:47 +1100)]
util: fixed generate_unique_strs() to be portable

'place' was going negative, and giving undefined results. The result
was duplicate names which gave errors in SMB2-DIR on PPC and other

13 years agos4-selftest: fixed 'make testenv'
Andrew Tridgell [Mon, 19 Oct 2009 10:37:20 +0000 (21:37 +1100)]
s4-selftest: fixed 'make testenv'

The 'TERM' variable is used for terminal type, so we can't use it for
what terminal to use.

13 years agos4-pyldb: fixed 64 bit issues
Andrew Tridgell [Mon, 19 Oct 2009 10:36:41 +0000 (21:36 +1100)]
s4-pyldb: fixed 64 bit issues

The python argument parse functions take standard C types, not enums
and time_t. This broken the python interface on PPC.

13 years agos4-idmap: the idmap database should be indexed
Andrew Tridgell [Mon, 19 Oct 2009 09:31:40 +0000 (20:31 +1100)]
s4-idmap: the idmap database should be indexed

13 years agos4-libnet: fixed privilege handling in samsync to use the right db
Andrew Tridgell [Mon, 19 Oct 2009 08:16:39 +0000 (19:16 +1100)]
s4-libnet: fixed privilege handling in samsync to use the right db

I only noticed this one because of Karolins spelling fix :-)

13 years agos4-pvfs: fill in alignment_requirement (valgrind error)
Andrew Tridgell [Mon, 19 Oct 2009 07:46:02 +0000 (18:46 +1100)]
s4-pvfs: fill in alignment_requirement (valgrind error)

13 years agos4:test: Fix typo.
Karolin Seeger [Mon, 19 Oct 2009 08:40:15 +0000 (10:40 +0200)]
s4:test: Fix typo.


13 years agoFix typo.
Karolin Seeger [Mon, 19 Oct 2009 07:47:33 +0000 (09:47 +0200)]
Fix typo.

privilage -> privilege


13 years agoRevert "selftest: fixed filter to know about a "error" result"
Andrew Tridgell [Mon, 19 Oct 2009 03:17:02 +0000 (14:17 +1100)]
Revert "selftest: fixed filter to know about a "error" result"

This reverts commit 1de7e43fb4a4863e3663af8b2a2d9f19cf82d7f3.

This is much more delicate than it seems

13 years agos4-selftest: move secdesc.python test to skip list
Andrew Tridgell [Mon, 19 Oct 2009 02:50:32 +0000 (13:50 +1100)]
s4-selftest: move secdesc.python test to skip list

This test produces a python backtrace due to
LDAP_INSUFFICIENT_ACCESS_RIGHTS errors, which are expected until the
new acl code is finished. The python backtrace overrides the
'knownfail' listing, so we need to skip this test for now.