1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-08 05:57:51 +03:00

20097 Commits

Author SHA1 Message Date
Andrew Bartlett
be5f0818ea 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
2009-10-21 22:43:53 +11:00
Andrew Bartlett
6a77165c8a 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
2009-10-21 22:43:53 +11:00
Andrew Bartlett
e62200e253 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
2009-10-21 22:43:52 +11:00
Andrew Bartlett
18035251ad s4:provision Test ability to set GUIDs from provision command line 2009-10-21 22:43:52 +11:00
Andrew Bartlett
d3b50ec33f 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
2009-10-21 22:43:52 +11:00
Andrew Bartlett
fa5ebaa686 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
2009-10-21 22:43:52 +11:00
Andrew Bartlett
27c28d34a7 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
2009-10-21 22:43:51 +11:00
Andrew Bartlett
ff3b60d154 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
database.

Andrew Bartlett
2009-10-21 22:43:51 +11:00
Andrew Bartlett
129bda51f1 s4:dsdb Fix partition_create not to return early 2009-10-21 22:43:51 +11:00
Andrew Bartlett
b73d584a89 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
2009-10-21 22:43:51 +11:00
Andrew Bartlett
b04bdee800 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
2009-10-21 22:43:50 +11:00
Andrew Bartlett
8ea2a8b785 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
heads).

Andrew Bartlett
2009-10-21 22:43:50 +11:00
Andrew Bartlett
d4048b2e17 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
2009-10-21 22:43:50 +11:00
Andrew Bartlett
c59f00805c 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
partitions.

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

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

Andrew Barltett
2009-10-21 22:43:50 +11:00
Kamen Mazdrashki
9393d94ad4 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()
2009-10-21 11:49:51 +03:00
Kamen Mazdrashki
4dc90c0851 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()
2009-10-21 11:49:50 +03:00
Kamen Mazdrashki
31168f1fac s4/drs(tort): Comment typos fixed in drs_util.c 2009-10-21 11:49:50 +03:00
Kamen Mazdrashki
1ecca31caa s4/drs(tort): fixed '==' to '>='
ATTID is marked as partial by adding 32768.
Thus the check should be '>= 32768'
2009-10-21 11:49:50 +03:00
Günther Deschner
4b6cfbb6d2 s4-lsa: Fix dcesrv_lsa_EnumTrustDom() and avoid infite windows client loop.
Found by RPC-LSA-TRUSTED-DOMAIN torture test.

Guenther
2009-10-21 03:14:00 +02:00
Günther Deschner
48520b2274 s4-smbtorture: test whether an lsa_EnumTrustDom implementation would hang up a client.
Guenther
2009-10-21 03:13:24 +02:00
Günther Deschner
a4d5487576 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.

Guenther
2009-10-20 23:57:58 +02:00
Günther Deschner
9ee5d84665 s4-smbtorture: Make it simpler to specify number of trusted domains to create in
RPC-LSA-TRUSTED-DOMAINS.

Guenther
2009-10-20 21:49:38 +02:00
Günther Deschner
7e180101d3 s4-smbtorture: Fix wrong comment in RPC-LSA-TRUSTED-DOMAIN test.
Guenther
2009-10-20 15:30:19 +02:00
Günther Deschner
bf2746b537 s4-smbtorture: split out EnumTrustedDomainsEx test in RPC-LSA-TRUSTED-DOMAINS.
Guenther
2009-10-20 15:30:12 +02:00
Günther Deschner
d76e77ce9a s4-smbtorture: add stricter tests for LSA-LOOKUPNAMES replies.
Guenther
2009-10-20 15:28:30 +02:00
Günther Deschner
80b512fe03 s4-smbtorture: move all LookupNames tests into RPC-LSA-LOOKUPNAMES.
Guenther
2009-10-20 15:28:30 +02:00
Andrew Tridgell
2c34112e58 s4-torture: fixed a pipe leak
The RPC-SAMR-PASSWORDS* tests could leak RPC pipes, causing an
overallocation of fd's on the server
2009-10-20 16:34:42 +11:00
Andrew Tridgell
2b90fbb579 s4-selftest: the secleak test is not designed for automated running 2009-10-20 16:18:51 +11:00
Andrew Tridgell
5e79a86298 s4: ran minimal_includes.pl on source4/auth/gensec 2009-10-20 16:05:24 +11:00
Andrew Tridgell
f8109b0f49 s4: ran minimal_includes.pl on source4/auth/ntlmssp 2009-10-20 16:05:07 +11:00
Andrew Tridgell
49650a226e s4: ran minimal_includes.pl on source4/auth/ntlm 2009-10-20 16:05:03 +11:00
Andrew Tridgell
090fbdce7d s4: ran minimal_includes.pl on source4/client 2009-10-20 16:04:59 +11:00
Andrew Tridgell
95e895d880 s4: ran minimal_includes.pl on source4/rpc_server 2009-10-20 16:04:56 +11:00
Andrew Tridgell
7f1832c469 s4: ran minimal_includes.pl on source4/winbind 2009-10-20 16:04:51 +11:00
Andrew Tridgell
84d0047377 s4-torture: ran minimal_includes.pl over source4/torture
This reduces compile time somewhat.
2009-10-20 16:04:46 +11:00
Andrew Tridgell
8585cf1a78 s4-script: cleanup tmp files in minimial_includes.pl
also changes to use perl fns, instead of shell
2009-10-20 16:04:36 +11:00
Andrew Tridgell
14111d606b s4-selftest: skip two more scanners
Protocol scanners are not any use in the build farm
2009-10-20 15:19:27 +11:00
Andrew Tridgell
2ff2c421d0 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
2009-10-20 14:27:57 +11:00
Andrew Tridgell
a1135b28dc 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)
2009-10-20 13:54:55 +11:00
Andrew Tridgell
44a99898ed 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.
2009-10-20 13:00:12 +11:00
Andrew Tridgell
08a0096ab6 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.
2009-10-20 12:13:15 +11:00
Matthias Dieter Wallnöfer
abeb794b66 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.
2009-10-19 18:34:29 +02:00
Matthias Dieter Wallnöfer
0ef7c22b5d 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.
2009-10-19 18:25:05 +02:00
Andrew Tridgell
c45a81ecf3 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.
2009-10-19 21:36:41 +11:00
Andrew Tridgell
96a41581e6 s4-idmap: the idmap database should be indexed 2009-10-19 20:31:40 +11:00
Andrew Tridgell
89ba043c7d s4-libnet: fixed privilege handling in samsync to use the right db
I only noticed this one because of Karolins spelling fix :-)
2009-10-19 20:03:12 +11:00
Andrew Tridgell
4828f92754 s4-pvfs: fill in alignment_requirement (valgrind error) 2009-10-19 20:03:12 +11:00
Karolin Seeger
b7b548411c s4:test: Fix typo.
Karolin
2009-10-19 10:40:15 +02:00
Karolin Seeger
fa08d0b44b Fix typo.
privilage -> privilege

Karolin
2009-10-19 09:47:33 +02:00
Andrew Tridgell
fb9319d971 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.
2009-10-19 13:51:18 +11:00