Volker Lendecke
b01958b0bd
s3: Remove serverid_[de]register_self
...
This removes some deep references to procid_self()
2010-07-04 16:41:14 +02:00
Volker Lendecke
ba57d23c1c
s3: ALWAYS run make test before checkin ....
2010-07-04 14:59:34 +02:00
Volker Lendecke
34558ae945
s3: Slight reshaping of server_exists_parse
...
Doing a copy and then do the compare is a bit pointless, use memcmp
2010-07-04 14:37:10 +02:00
Volker Lendecke
f8e7077d5c
s3: Don't attempt to deregister from serverid twice
...
The parent has to take care of crashed child processes anyway, so we don't have
to clean up in the child
2010-07-04 13:48:10 +02:00
Volker Lendecke
9e3fc22c60
s3: Fix bug 7338, smbget skips leading slash when using a custom outputfile
2010-07-04 11:44:20 +02:00
Volker Lendecke
285176cbc9
s3: Fix some nonempty blank lines
2010-07-04 11:44:20 +02:00
Volker Lendecke
8c0fbc4107
s3: Fix bug 7336: Enable idmap_passdb module build as shared
2010-07-04 10:04:25 +02:00
Volker Lendecke
e17ce247a3
wbinfo: Fix error messages
2010-07-03 22:42:52 +02:00
Matthias Dieter Wallnöfer
6dc1c70876
s4:torture/rpc/samlogon.c - strip trailing whitespaces
2010-07-03 21:10:18 +02:00
Matthias Dieter Wallnöfer
e2e09f5c45
s4:torture/rpc/samlogon.c - provide a function which sets and afterwards resets the minimum password age
...
This is needed since we on s4 do now use the Windows Server standard of 1 day.
2010-07-03 21:04:47 +02:00
Matthias Dieter Wallnöfer
518232d457
s4:kinit blackbox test - set/reset also here the "minPwdAge"
2010-07-03 16:08:24 +02:00
Matthias Dieter Wallnöfer
f41d9eb8dc
s4:dsdb/tests/python/ldap_schema.py - remove a now useless "schemaUpdateNow" request
...
"schemaUpdateNow" on s4 is now a non-op and therefore not strictly needed anymore.
2010-07-03 15:37:45 +02:00
Matthias Dieter Wallnöfer
465c601071
s4:urgent_replication.py test - remove unneeded "relax" control parameters
2010-07-03 15:30:20 +02:00
Matthias Dieter Wallnöfer
326aac06f5
s4:schema_load LDB module - fix a segfault condition on schema refresh
...
The schema refresh operation itself starts requests from the top of the LDB
modules stack (see call "dsdb_schema_set_attributes" - search operations).
This doesn't work well when these do perform "dsdb_get_schema" calls. Since the
new schema isn't marked as "refreshed" atm (but in fact it still is - we didn't
terminate the reload/refresh yet) we could perform other calls to
"dsdb_schema_refresh" and run into serious trouble (segfault).
2010-07-03 15:28:57 +02:00
Matthias Dieter Wallnöfer
02eab66026
s4:schema_set.c - Fix a comment
2010-07-03 14:53:03 +02:00
Matthias Dieter Wallnöfer
d1ee7ab16e
s4:dsdb_schema_set_attributes - remove unneeded filter criterias
...
We already choose the right entry by specifying the right basedn with scope
"LDB_SCOPE_BASE".
2010-07-03 14:53:02 +02:00
Matthias Dieter Wallnöfer
368aa25f7c
s4:dsdb_module_load_partition_usn - check for "res->count" equal/unequal to 1
2010-07-03 12:47:46 +02:00
Matthias Dieter Wallnöfer
4df9757b48
s4:schema_set.c - fix typo
2010-07-03 12:36:34 +02:00
Matthias Dieter Wallnöfer
de81160e75
s4:schema_load.c - jump to "failed" on an error condition
2010-07-03 12:35:16 +02:00
Matthias Dieter Wallnöfer
43b0c314d8
s4:setup/provision_basedn_modify.ldif - set "minPwdAge" to the right value
...
Now we should have fixed all password related tests to cooperate with this value
2010-07-03 11:38:54 +02:00
Matthias Dieter Wallnöfer
c0ee606474
s4:pwsettings net utility - change also here the "minPwdAge" to be the real default
...
Which is one day.
2010-07-03 11:38:54 +02:00
Matthias Dieter Wallnöfer
73c69a195a
s4:blackbox/test_passwords.sh - perform also here the adaptions for "minPwdAge" != 0
2010-07-03 11:38:49 +02:00
Matthias Dieter Wallnöfer
ec9fa906c7
s4:dsdb/tests/passwords.py - set and reset the "minPwdAge" properly
...
After a patch proposal of Nadya and some reflection I think that it's really
worth to change all tests which need a "0" "minPwdAge" to set it manually and
reset the default afterwards.
So we can finally introduce the default "minPwdAge" on provision.
Patch proposal by: Nadya Ivanova
2010-07-03 11:28:21 +02:00
Nadezhda Ivanova
86cde0a7dc
Tests for user-change-password and force-password-change access rights
2010-07-02 16:38:05 +03:00
Günther Deschner
61e956036e
s3-net: forgot to set type in winreg getvalue operation.
...
Guenther
2010-07-02 13:09:41 +02:00
Anatoliy Atanasov
62341537d7
s4/schema: remove unnecessary deletion of dsdb_schema cached pointer
...
This is needed so we can find and free old schemas based using
the cached pointer
2010-07-02 11:55:33 +03:00
Günther Deschner
d9429a874c
s3-registry: remove 2 byte winreg type limitation.
...
We already pull and push 4 byte winreg type in the registry.tdb, we were just
not using full 4 bytes within the reg_object functions.
With this change we finally pass the set extended value torture test.
Guenther
2010-07-02 10:50:22 +02:00
Günther Deschner
ddb8fae401
s3-registry: allow to read NULL entries (that we allow to store) back from the tdb.
...
Guenther
2010-07-02 10:50:21 +02:00
Günther Deschner
6da040261d
s4-smbtorture: enable extended SetValue test against Samba3.
...
Guenther
2010-07-02 10:50:21 +02:00
Günther Deschner
786198e523
s3-registry: remove unused reg_util_marshalling code.
...
Guenther
2010-07-02 10:50:21 +02:00
Günther Deschner
b381fba089
s3-registry: avoid using registry_value union.
...
Just pull and push data as is.
Guenther
2010-07-02 10:50:21 +02:00
Andrew Tridgell
84c5dd1e4b
s4-ldb: fixed error handling in openldap backend
...
fixed several bugs in error handling. the ldb context was used without
being initialised in the error paths, and several error paths did not
set an ldb error string.
2010-07-02 12:49:04 +10:00
Andrew Tridgell
277a9b4aac
s4-ldb: fixed the parsing of references in the openldap backend
...
We need to use ldap_parse_reference() not ldap_parse_result()
2010-07-02 12:49:04 +10:00
Andrew Tridgell
f9022a1a30
s4-dsdb: fixed use after free of sasl mechanisms opaque
...
the supportedSASLMechanisms opaque must live for at least as long as
the ldb, or we can crash when the first connection is torn down
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-07-02 12:49:04 +10:00
Andrew Tridgell
2671b5aeb0
s4-dsdb: fixed spelling of supportedSASLMechanisms
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-07-02 12:49:04 +10:00
Andrew Bartlett
c48279896d
s4:dsdb Ensure we free old schema copies
...
It was reported by aatanasov that we kept around one whole schema per
modification made. This does not fix that, but I hope moves us closer
to a fix
The most important part of the fix is that:
- if (schema_out != schema_in) {
- talloc_unlink(schema_in, ldb);
- }
was the wrong way around. This is now handled in the schema_set calls.
Andrew Bartlett
2010-07-02 10:08:16 +10:00
Kamen Mazdrashki
5a66edc99e
s4/dsdb: Assert DSDB_FLAG_*_MODULE is always passed in function call
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-02 10:08:12 +10:00
Kamen Mazdrashki
73474998e1
s4-source4/dsdb/samdb/ldb_modules/util.c Use DSDB_FLAG_NEXT_MODULE flag
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-02 10:08:07 +10:00
Kamen Mazdrashki
682f7a5338
s4-source4/dsdb/samdb/ldb_modules/subtree_delete.c: Use DSDB_FLAG_NEXT_MODULE flag
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-02 10:08:02 +10:00
Kamen Mazdrashki
bf373d5c29
s4-source4/dsdb/samdb/ldb_modules/schema_load.c: Use DSDB_FLAG_NEXT_MODULE flag
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-02 10:07:57 +10:00
Kamen Mazdrashki
7c653c429a
s4-source4/dsdb/samdb/ldb_modules/samldb.c: Use DSDB_FLAG_NEXT_MODULE flag
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-02 10:07:53 +10:00
Kamen Mazdrashki
0e023f2340
s4-source4/dsdb/samdb/ldb_modules/samba3sid.c: Use DSDB_FLAG_NEXT_MODULE flag
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-02 10:07:48 +10:00
Kamen Mazdrashki
30a69eb4a0
s4-source4/dsdb/samdb/ldb_modules/rootdse.c: Use DSDB_FLAG_NEXT_MODULE flag
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-02 10:07:43 +10:00
Kamen Mazdrashki
68c6e607d9
s4-source4/dsdb/samdb/ldb_modules/ridalloc.c: Use DSDB_FLAG_NEXT_MODULE flag
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-02 10:07:39 +10:00
Kamen Mazdrashki
f3f87e8dee
s4-source4/dsdb/samdb/ldb_modules/repl_meta_data.c: Use DSDB_FLAG_NEXT_MODULE flag
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-02 10:07:34 +10:00
Kamen Mazdrashki
b29921b82e
s4-dsdb/samdb/ldb_modules/linked_attributes.c: make use of DSDB_FLAG_NEXT_MODULE flag
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-02 10:07:27 +10:00
Kamen Mazdrashki
f570eec264
s4/dsdb: Add DSDB_FLAG_NEXT_MODULE flag
...
Although it is not currently used in implementation,
my intention is for callers to clearly state what
action they want to execute.
Currently when a caller wants to pass the call to the next
module in the chain, this flag is either omitted or 0 is used
(which is somewhat hacky, isn't it)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-02 10:07:09 +10:00
Simo Sorce
3721161d90
s3:auth Fix switch statement referencing a uninitialized variable
...
Looking at the original commit (9a747d500f
)
this seem the right solution.
Andrew please check.
2010-07-01 18:18:41 -04:00
Günther Deschner
d1538add73
s3-nss_info: only include nss_info.h where needed.
...
Guenther
2010-07-01 23:20:40 +02:00
Günther Deschner
04641abb33
s3-libads: move ldap posix schema defines to their own header file.
...
Guenther
2010-07-01 23:20:40 +02:00