Jelmer Vernooij
b61cc18972
subunit: Use standard functions for addSuccess, addExpectedFail,
...
addFailure, addSkip.
2010-09-14 10:54:27 +02:00
Jelmer Vernooij
c1fe7b498a
subunit: Use standard addError method implementation.
2010-09-14 10:54:27 +02:00
Jelmer Vernooij
881f610f06
subunit: Pass TestCase objects to startTest rather than test name strings.
2010-09-14 10:54:27 +02:00
Jelmer Vernooij
1626dc2bc9
subunit: Use subunit standard functions for handling time and progress.
2010-09-14 10:54:27 +02:00
Jelmer Vernooij
fb1c966652
subunit: Use standard subunit test protocol client, use standard name for startTest.
2010-09-14 10:54:27 +02:00
Jelmer Vernooij
8530d5afde
subunit: Initial work on using the standard TestResult class.
2010-09-14 10:54:26 +02:00
Günther Deschner
4c45e291a7
s3-waf: fix the build after privilege code changes.
...
Guenther
2010-09-14 08:38:30 +02:00
Volker Lendecke
9271570516
s3: Remove some unnecessary if-statements
2010-09-13 22:02:44 -07:00
Jeremy Allison
b3fccd10a6
Fix bug 7409 - Thousands of reduce_name: couldn't get realpath.
...
Don't log this at level 1 - every EACCES will generate one.
Thanks to muehlfeld@medizinische-genetik.de for pointing this out.
Jeremy.
2010-09-13 16:54:21 -07:00
Volker Lendecke
69db4b4ccf
ntlm_auth: Fix a valgrind error
2010-09-13 16:41:14 -07:00
Matthias Dieter Wallnöfer
6e720ecd25
s4:SID handling - always encode the SID using "ldap_encode_ndr_dom_sid" for LDAP filters
...
This makes also lookups through special backends as "samba3sam" work.
2010-09-13 22:41:06 +02:00
Matthias Dieter Wallnöfer
a4b7fac86d
s4:cosmetic - the SID attribute is called objectSid - not objectSID
2010-09-13 22:39:50 +02:00
Matthias Dieter Wallnöfer
0a19290ca7
testdata/samba3/provision_samba3sam.ldif - update also here the maximum domain controller functionality
...
And we do support also LDAPv2.
2010-09-13 21:24:53 +02:00
Jelmer Vernooij
f1b21bee16
param: Only include param_proto.h for Samba builds, provide those
...
prototypes necessary for external users (OpenChange) manually.
2010-09-13 20:42:01 +02:00
Volker Lendecke
95a0b6830f
s3: Fix a typo
2010-09-13 10:27:27 -07:00
Volker Lendecke
e03f8ded01
s3: Fix a typo (authentictaion->authentication)
2010-09-13 10:15:27 -07:00
Volker Lendecke
4dcd5ac442
s3: Do not directly log off after a pam_logon
2010-09-13 10:05:42 -07:00
Volker Lendecke
2ef4acb2bd
s3: Fix wbinfo arg for --pam-logon
2010-09-13 10:05:41 -07:00
Volker Lendecke
8768f627dc
ntlm_check: Fix some nonempty blank lines
2010-09-13 18:39:30 +02:00
Stefan Metzmacher
d10b2c07be
lib/tdb: change version to 1.2.4 after hash checking improvments
...
lib/tdb: change version to 1.2.4 after hash checking improvments
metze
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2010-09-13 20:08:58 +09:30
Rusty Russell
786b726300
tdb: put example hashes into header, so we notice incorrect hash_fn.
...
This is Stefan Metzmacher <metze@samba.org>'s patch with minor changes:
1) Use the TDB_MAGIC constant so both hashes aren't of strings.
2) Check the hash in tdb_check (paranoia, really).
3) Additional check in the (unlikely!) case where both examples hash to 0.
4) Cosmetic changes to var names and complaint message.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2010-09-13 20:05:59 +09:30
Rusty Russell
f77708e962
tdb: fix tdb_check() on other-endian tdbs.
...
We must not endian-convert the magic string, just the rest.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2010-09-13 19:59:18 +09:30
Rusty Russell
82e5644c9d
tdb: fix tdb_check() on read-only TDBs to actually work.
...
Commit bc1c82ea13
"Fix tdb_check() to work with read-only tdb databases."
claimed to do this, but tdb_lockall_read() fails on read-only databases.
Also make sure we can still do tdb_check() inside a transaction (weird,
but we previously allowed it so don't break the API).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2010-09-13 19:58:23 +09:30
Rusty Russell
9e0deff904
tdb: make check more robust against recovery failures.
...
We can end up with dead areas when we die during transaction commit;
tdb_check() fails on such a (valid) database.
This is particularly noticable now we no longer truncate on recovery;
if the recovery area was at the end of the file we used to remove it
that way.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2010-09-13 19:55:26 +09:30
Matthias Dieter Wallnöfer
fe958c009b
Revert "s4:samldb LDB module - simplify the message handling on add and modify operations"
...
This reverts commit 1d94bb3ad4
.
This commit causes unconditional behaviour (sometimes it works, sometimes not) -sorry for introducing this.
I will rework this further.
2010-09-13 10:39:39 +02:00
Matthias Dieter Wallnöfer
123712840f
s4:samldb LDB module - remove a disastrous "talloc_free"
...
This completely destroys the program logic (async callbacks). Sorry for
introducing this.
2010-09-12 22:26:10 +02:00
Matthias Dieter Wallnöfer
0939ba4488
Revert "s4:util_samr.c - also here we've now the default primaryGroupID detection working"
...
This reverts commit 7e9e35db41
.
Sorry, the logic is working differently here. We do still need this.
2010-09-12 22:25:37 +02:00
Matthias Dieter Wallnöfer
eaa55b4123
s4:torture/rpc/samr.c - fix typos in outputs
2010-09-12 22:10:06 +02:00
Matthias Dieter Wallnöfer
7e9e35db41
s4:util_samr.c - also here we've now the default primaryGroupID detection working
2010-09-12 21:19:27 +02:00
Matthias Dieter Wallnöfer
4a2941535d
s4:ldap.py - tests the primary group detection by the "userAccountControl"
2010-09-12 19:23:06 +02:00
Matthias Dieter Wallnöfer
4fd8ce42ce
s4:setup/provision_self_join.ldif - now the samldb LDB module detects automatically that this is a DC account
2010-09-12 19:23:06 +02:00
Matthias Dieter Wallnöfer
7f424155e6
s4:samldb LDB module - "samldb_check_primaryGroupID" - support RID derivation from "userAccountControl"
...
Specified in MS-SAMR 3.1.1.8.1 and probably fixes also bug #7441 .
2010-09-12 19:23:06 +02:00
Matthias Dieter Wallnöfer
1e52e72e40
libds:flag_mapping.c - introduce a call which maps the "userAccountControl" to the default primary group RID
2010-09-12 19:23:06 +02:00
Matthias Dieter Wallnöfer
2fb111f731
libds:flag_mapping.c - fix counter variable types
2010-09-12 19:23:06 +02:00
Matthias Dieter Wallnöfer
22d42432ac
s4:samldb LDB module - free the "ac" context after the delete checks
2010-09-12 19:23:05 +02:00
Matthias Dieter Wallnöfer
1d94bb3ad4
s4:samldb LDB module - simplify the message handling on add and modify operations
...
We perform always only one shallow copy operation of the message on the "req"
context. This allows to free the "ac" context when we've prepared all our
changes.
2010-09-12 19:23:05 +02:00
Matthias Dieter Wallnöfer
79f22e5d70
s4:samldb LDB module - move "samldb_prim_group_users_check" more down to see that it is only in use by the delete operation
...
add and modify helpers will stay on the top of the add and modify operation
since they will likely be shared as much as possible.
2010-09-12 19:23:05 +02:00
Matthias Dieter Wallnöfer
bb1da645ed
s4:samldb LDB module - add a comment to mark the beginning of the extended operation handler
2010-09-12 19:23:05 +02:00
Matthias Dieter Wallnöfer
dad7cdad22
s4:samldb LDB module - refactor "samldb_find_for_defaultObjectCategory" to be again synchronous
...
Also to make it easier to comprehend
2010-09-12 19:23:05 +02:00
Matthias Dieter Wallnöfer
6aca09b0b7
s4:samldb LDB module - refactor the "primaryGroupID" check on user creation
...
This looks more straight-forward now.
2010-09-12 19:23:05 +02:00
Matthias Dieter Wallnöfer
e1de425cb8
s4:samldb LDB module - get rid of the SID context variable
...
Since we get more and more rid of async stuff we don't need this in the context
anymore.
2010-09-12 19:23:05 +02:00
Matthias Dieter Wallnöfer
79a98b893a
s4:samldb LDB module - use also here the real attribute denomination "sAMAccountName"
...
Purely cosmetic - but nicer to read
2010-09-12 19:23:05 +02:00
Matthias Dieter Wallnöfer
0eb281d8f2
s4:samldb LDB module - rename "check_SamAccountType" into "check_sAMAccountType"
...
And a small cosmetic change.
I like to have the real attribute names in the function denominations
2010-09-12 19:23:04 +02:00
Matthias Dieter Wallnöfer
4ef9760db1
s4:samldb LDB module - make "samldb_check_sAMAccountName" synchronous again
...
To make it more understandable
2010-09-12 19:23:04 +02:00
Matthias Dieter Wallnöfer
64af772b38
s4:fsmo.py - fix an obvious typo
2010-09-12 19:23:04 +02:00
Volker Lendecke
adfa071c5a
s3: Remove a nesting level in winbindd_dual_pam_chauthtok
2010-09-12 18:30:38 +02:00
Matthieu Patou
6bd6fdcd72
s4:unittest: Test wbinfo --group-info and --gid-info
...
Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
2010-09-11 19:13:46 +02:00
Matthias Dieter Wallnöfer
8a0db43ad8
test_wbinfo.c - count more possible failures
2010-09-11 19:13:13 +02:00
Matthias Dieter Wallnöfer
1ddd63bddb
ldb:tools/cmdline.c - reorganise imports
2010-09-11 18:07:47 +02:00
Matthias Dieter Wallnöfer
b5d872704c
s4:param/secrets.c - reorganise imports
2010-09-11 18:04:50 +02:00