Volker Lendecke
08b628efe4
s3: Remove some unused code
2010-08-15 15:15:59 +02:00
Andreas Schneider
3d447e0160
s3-test: Try to fix the build farm subunit parsing.
2010-08-15 13:17:36 +02:00
Volker Lendecke
98187fe309
s3: Increase debug level for shutdown_other_smbds
2010-08-15 09:50:13 +02:00
Volker Lendecke
02002a52f2
s3: Add debugs to shutdown_other_smbds
2010-08-15 09:50:12 +02:00
Volker Lendecke
f94039a8ea
s3: Fix a typo
2010-08-15 09:45:30 +02:00
Matthias Dieter Wallnöfer
fb274f056b
s4:subtree_rename.c - relax the checks when requested
...
(Needed by upgradeprovision for example)
2010-08-15 09:24:22 +02:00
Kamen Mazdrashki
887b7306a7
s4-test: Add drs.rpc.msDSIntId test to knownfail tests
2010-08-15 01:02:33 +03:00
Kamen Mazdrashki
776a3cdc08
s4-test: Run all DRS-RPC.* tests in ncacn_ip_tcp_tests tests group
...
Andrew, please check.
2010-08-15 01:02:33 +03:00
Kamen Mazdrashki
e58aed25fc
s4-drs-test: Make the two DRS test suite a top-level test suites
...
so that test cases gets visible with "smbtorture --list"
2010-08-15 01:02:33 +03:00
Matthias Dieter Wallnöfer
d6ccd4c9da
s4:ldap_backend.c - fix a DS error code after WERROR change
2010-08-14 19:44:58 +02:00
Matthias Dieter Wallnöfer
7ffae93762
werror.h - fix order and duplicate DS error codes
2010-08-14 19:41:46 +02:00
Matthias Dieter Wallnöfer
ab3e20b82f
s4:libnet - free the "c" context also on error conditions
...
(and if it's NULL then "talloc_free" does ignore it)
2010-08-14 18:48:20 +02:00
Matthias Dieter Wallnöfer
2de63aa280
talloc:documentation - explain that "talloc_free" works also with "NULL" pointers
...
(talloc.c)
...
> static inline int _talloc_free_internal(void *ptr, const char *location)
> {
> struct talloc_chunk *tc;
>
> if (unlikely(ptr == NULL)) {
> return -1;
> }
>
> tc = talloc_chunk_from_ptr(ptr);
...
Obviously this never had been documented before.
2010-08-14 18:48:20 +02:00
Matthias Dieter Wallnöfer
07af3f289e
s4:samdb_set_password - return "NT_STATUS_WRONG_PASSWORD" when a user account doesn't exist
...
This is for the (SAMR) account detection protection mechanism.
2010-08-14 18:48:20 +02:00
Matthias Dieter Wallnöfer
1fa9e99442
s4:password_hash LDB module - improve an error message
2010-08-14 18:48:20 +02:00
Matthias Dieter Wallnöfer
4b569d74a4
s4:password_hash LDB module - implement the SAMR behaviour when checking old passwords
...
Sooner or later this module should take over all password change actions.
2010-08-14 18:48:20 +02:00
Matthias Dieter Wallnöfer
e335b24ad0
s4:password_hash LDB module - fix wrong error codes
...
To match the passwords.py test
2010-08-14 18:48:19 +02:00
Matthias Dieter Wallnöfer
a9b055291c
s4:passwords.py - test the error code when there doesn't exist any password yet
...
After the creation of a user object we don't have any password yet.
2010-08-14 18:48:19 +02:00
Matthias Dieter Wallnöfer
c335c5f54a
s4:passwords.py - perform testing of wrong old passwords on change operations
2010-08-14 18:48:19 +02:00
Matthias Dieter Wallnöfer
4f6377043d
s4:torture/rpc/samr.c - fix a wrong torture error message
2010-08-14 18:48:19 +02:00
Volker Lendecke
13a4922ae6
s3: Remove a conn NULL check from claim_connection
...
We've already dereferenced conn before
2010-08-14 12:27:17 +02:00
Volker Lendecke
19280b65a5
s3: Fix an uninitialized variable
2010-08-14 10:08:45 +02:00
Andrew Bartlett
4f8ef205ac
s3:auth Add error paths for invalid password_state values
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-08-14 11:58:13 +10:00
Andrew Bartlett
70211ea6a3
s3:auth Change winbindd -> auth interface to more standard structures
...
This removes conversions to and from the source3 varient of the
server_info structure when replaced in s3compat, and presents a tidier
interface to winbindd in any case.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-08-14 11:58:13 +10:00
Andrew Bartlett
b1b9752506
s3:auth Change 'make_user_info' to be talloc based
...
This is an ideal candidate, as it already uses a free function. It
now uses talloc destructors to clear the passwords if required.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-08-14 11:58:13 +10:00
Andrew Bartlett
e66f6e715f
s3:auth Whitespace fixes after auth merge
2010-08-14 11:58:13 +10:00
Andrew Bartlett
23994e1b53
s3:auth Make Samba3 use the new common struct auth_usersupplied_info
...
This common structure will make it much easier to produce an auth
module for s3compat that calls Samba4's auth subsystem.
In order the make the link work properly (and not map twice), we mark
both that we did try and map the user, as well as if we changed the
user during the mapping.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-08-14 11:58:13 +10:00
Andrew Bartlett
272e49e85c
s4:auth Move struct auth_usersupplied_info to a common location
...
This also changes the calling convention slightly - we should always
allocate this with talloc_zero() to allow some elements to be
optional. Some elements may only make sense in Samba3, which I hope
will use this common structure.
Andrew Bartlett
2010-08-14 11:58:13 +10:00
Andrew Tridgell
61930f50cb
waf: enable gccdeps in developer mode
...
there are some bugs in the waf builtin preproc this that avoids
2010-08-14 11:58:13 +10:00
Andrew Tridgell
952ef310b5
s4-build: fixed library name in dcerpc_server.pc.in
...
Thanks to Metze for spotting this
2010-08-14 11:58:13 +10:00
Andrew Tridgell
3828c76c76
ndr: allow ndr_print to print DATA_BLOB
...
this prints DATA_BLOB structures using the ndr->print() calls
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-08-14 11:58:13 +10:00
Andrew Tridgell
7bb5d353e8
dnsp: dnsp_name is 2 byte aligned
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-08-14 11:58:12 +10:00
Michael Adam
60eae5a134
s3:idmap: fix sid_to_unixid for builtin and own domain.
...
The old idmap code created a new mapping if asking the backends failed.
Now with the new layering, if passdb (which is used for our own domain
and builtin), then we need to continue and ask the backends, giving
tdb or whatever the default backend is a chance to create a mapping.
2010-08-14 02:10:57 +02:00
Michael Adam
9f60eb8c1b
s3:idmap: fix spacing/indentation
2010-08-14 02:10:57 +02:00
Michael Adam
a739cb5944
s3:idmap_ldap: use idmap_rw_new_mapping in idmap_ldap_new_mapping
2010-08-14 02:10:57 +02:00
Michael Adam
a7ba9064d6
s3:idmap_ldap: add idmap_rw_ops to idmap_ldap_context and init in db_init()
2010-08-14 02:10:57 +02:00
Michael Adam
6659ac11de
s3:idmap_tdb: use idmap_rw_new_mapping in idmap_tdb_new_mapping
2010-08-14 02:10:57 +02:00
Michael Adam
5a82cffb8b
s3:idmap_tdb: add idmap_rw_ops to idmap_tdb_context and initialize them in init_db
2010-08-14 02:10:57 +02:00
Michael Adam
3f3cff9127
s3:idmap_tdb2: use idmap_rw_new_mapping in idmap_tdb2_new_mapping
2010-08-14 02:10:57 +02:00
Michael Adam
e82ef14008
s3:idmap_tdb2: add rw_ops to idmap_tdb2_context and initialize in idmap_tdb2_db_init
2010-08-14 02:10:56 +02:00
Michael Adam
307e5b239a
s3:idmap: add abstract idmap_rw new_mapping mechanism without registering backends
2010-08-14 02:10:56 +02:00
Michael Adam
9897647584
s3:idmap_ad: untangle two assignments from checks
2010-08-14 02:10:56 +02:00
Michael Adam
264910b06f
s3:idmap_ad: remove unused filter_low_id and filter_high_id from idmap_ad_context
...
The filter range from the idmap_domain is used now.
2010-08-14 02:10:56 +02:00
Michael Adam
d515d7fe49
s3:idmap_ad: use range from idmap_domain in idmap_ad_sids_to_unixids()
2010-08-14 02:10:56 +02:00
Michael Adam
96607d9543
s3:idmap_ad: use range from idmap_domain in idmap_ad_unixids_to_sids()
2010-08-14 02:10:55 +02:00
Michael Adam
f07049495d
s3:idmap_rid: remove a comment that does not apply in that place.
...
Probably got copied from a different location.
2010-08-14 02:10:55 +02:00
Michael Adam
a758228367
s3:idmap_rid: remove unused domain_name from the idmap_rid_context.
2010-08-14 02:10:55 +02:00
Michael Adam
2916b302f3
s3:idmap_rid: remove range from idmap_rid_context()
...
Now, the idmap_domain range that is centrally parsed is used.
2010-08-14 02:10:55 +02:00
Michael Adam
ac63c50684
s3:idmap_rid: use range from idmap_domain in idmap_rid_sid_to_id()
2010-08-14 02:10:55 +02:00
Michael Adam
cda44b9e8e
s3:idmap_rid: use ranges from idmap_domain struct in idmap_rid_id_to_sid()
2010-08-14 02:10:55 +02:00