Matthias Dieter Wallnöfer
5585591b2e
s4:samldb/objectclass_attrs LDB modules - move "description" logic from "objectclass_attrs" into "samldb"
...
This according to an answer from dochelp is SAM specific behaviour.
2010-11-12 18:55:04 +00:00
Jelmer Vernooij
b6e13627df
Lowercase DNS_UPDATE_SRV name.
2010-11-12 13:50:07 +00:00
Kamen Mazdrashki
0868a15982
s4-repl: Propagate remote prefixMap in DRSUAPI data conversion functions
2010-11-11 18:54:20 +00:00
Kamen Mazdrashki
2d0cb54ceb
s4-dsdb_syntax: Warning message that we can't find requested ATTID in Schema Cache
2010-11-11 18:54:20 +00:00
Kamen Mazdrashki
3ab75524ee
s4-prefixMap: dsdb_schema_pfm_oid_from_attid() to use const prefixMap
...
It is not supposed to change supplied prefixMap
2010-11-11 18:54:20 +00:00
Kamen Mazdrashki
e772518a64
s4-dsdb_syntax: Use remote prefixMap to handle generic cases in drsuapi_to_ldb conversions
2010-11-11 18:54:20 +00:00
Kamen Mazdrashki
f65c840299
s4-dsdb_syntax: Add remote prefixMap member for dsdb_syntax conversions
2010-11-11 18:54:20 +00:00
Kamen Mazdrashki
a8495d380e
s4-repl: dsdb_extended_replicated_objects_convert -> dsdb_replicated_objects_convert/
...
It is part of dsdb_replicated_* family of functions
2010-11-11 18:54:20 +00:00
Kamen Mazdrashki
227e8dcfcf
s4-repl: dsdb_extended_replicated_objects_commit -> dsdb_replicated_objects_commit
...
It is part of dsdb_replicated_* family of functions
2010-11-11 18:54:20 +00:00
Kamen Mazdrashki
28f41c166a
s4-repl: dsdb_convert_object -> dsdb_origin_object_convert
...
It is used in dsdb_origin_objects_commit() func,
hence the dsdb_origin_ prefix
2010-11-11 18:54:20 +00:00
Andrew Bartlett
78928f5956
s4-dsdb Remove incorrectly declared ** variable used as *.
...
The cleartext_utf16_str variable was declared char **, but due to the
cast on convert_string_talloc() and the lack of type checking here and
on data_blob_const (due to void *) it was able to be used as if it was
a char *.
The simple solution seems to be to fill in cleartext_utf16 blob directly.
Andrew Bartlett
2010-11-11 09:55:06 +00:00
Andrew Bartlett
eebbbeac14
s4-dsdb Convert new krbtgt_xxx password into UTF16
...
The new stricter test on clearTextPassword values caught out that
we did not provide a utf16 password here.
Andrew Bartlett
2010-11-11 09:55:06 +00:00
Andrew Bartlett
01d10c8413
s4-dsdb Return an error if we can't convert UTF16MUNGED -> UTF8
...
The UTF16MUNGED helper will map all invalid sequences (except odd
input length) to valid input sequences, per the rules. Therefore if
it fails, we need to bail out, somehing serious is wrong.
Andrew Bartlett
2010-11-11 09:55:06 +00:00
Matthias Dieter Wallnöfer
feb00fe7cc
s4:dsdb - proof against empty RDN values where expected
...
This should prevent crashes as pointed out on the mailing list.
2010-11-11 10:03:40 +01:00
Zahari Zahariev
4fe63d927e
Cannot create OU using custom Schema class
...
If we define our own child class 'subClassOf' system Schema class
e.g. organizationalUnit then we cannot create OU in the Dafualt
Naming Context that has this custom Schama class in the objectClass
attribute.
2010-11-11 10:03:40 +01:00
Matthias Dieter Wallnöfer
e96c9df817
s4:objectclass LDB module - allow RDNs also to come from superclasses
...
Detected by a testcase written by Zahari Zahariev.
2010-11-11 10:03:40 +01:00
Matthias Dieter Wallnöfer
4f86f297a2
s4:passwords.py - add a test for the normal "userPassword" behaviour
...
Just to make sure that this works now too
2010-11-11 10:03:40 +01:00
Matthias Dieter Wallnöfer
7f171a9e0f
s4:password_hash and acl LDB modules - handle the "userPassword" attribute according to the "dSHeuristics"
2010-11-11 10:03:39 +01:00
Matthias Dieter Wallnöfer
d6c78fbd3a
s4:password_hash LDB module - move "samdb_msg_find_old_and_new_ldb_val" into the password_hash LDB module
...
It's only used there and so I think it doesn't really belong in
"dsdb/common/util.c" (I first thought that it could be useful for ACL checking
but obviously it wasn't).
2010-11-11 10:03:39 +01:00
Matthias Dieter Wallnöfer
39f86619f5
s4:local_password LDB module - remove schema checking code and fix some typos
...
This is now done by the "objectclass_attrs" LDB module.
2010-11-11 10:03:39 +01:00
Matthias Dieter Wallnöfer
ed704c28b2
s4:ldb_modules/util.c - "dsHeuristics" -> "dSHeuristics"
2010-11-11 10:03:38 +01:00
Matthias Dieter Wallnöfer
5ded90ef66
s4:acl.py - two password change tests are expected to fails on Windows 2000 function level
2010-11-11 09:50:06 +01:00
Matthias Dieter Wallnöfer
cc7f390bf9
s4:python tests - fix script names in the help text
2010-11-11 09:12:24 +01:00
Kamen Mazdrashki
38585a7490
s4-pydsdb: py_dsdb_am_rodc() may call samdb_rodc() only once to get the job done :)
2010-11-10 10:20:02 +02:00
Kamen Mazdrashki
d073c5f23a
s4-pydsdb: py_dsdb_load_partition_usn() - simplify error handling in
...
and print on which partition error has occured
2010-11-10 10:20:01 +02:00
Kamen Mazdrashki
89440dd617
s4-pydsdb-py_samdb_ntds_objectGUID(): Avoid potential memory leak
...
in case py_ldb is not a valid LDB
2010-11-10 10:20:01 +02:00
Kamen Mazdrashki
06b0596537
s4-pydsdb-py_dsdb_get_oid_from_attid(): Avoid potential memory leak
...
in case py_ldb is not a valid LDB
2010-11-10 10:20:00 +02:00
Kamen Mazdrashki
ad5a399d54
s4-pydsdb.c: Fix small memory leak in py_samdb_set_domain_sid()
2010-11-10 10:20:00 +02:00
Anatoliy Atanasov
4b978b36a9
s4/syntax: Add tests for DN+String and DN+Binary
...
These tests aim to verify the behavior for 2.5.5.7 and 2.5.5.14 syntaxes.
Autobuild-User: Anatoliy Atanasov <anatoliy@samba.org>
Autobuild-Date: Wed Nov 10 06:57:04 UTC 2010 on sn-devel-104
2010-11-10 06:57:04 +00:00
Stefan Metzmacher
3c496f37c4
s4:dsdb/operational.c: use DSDB_SECRET_ATTRIBUTES_EX()
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Nov 9 22:43:44 UTC 2010 on sn-devel-104
2010-11-09 22:43:44 +00:00
Stefan Metzmacher
dedc9e32e5
s4:dsdb/common: add DSDB_SECRET_ATTRIBUTES_EX()
...
metze
2010-11-09 23:01:25 +01:00
Stefan Metzmacher
2fba9500b3
s4:dsdb/local_password: use DSDB_SECRET_ATTRIBUTES
...
metze
2010-11-09 22:53:01 +01:00
Stefan Metzmacher
9f39d4bfa4
s4:dsdb/schema/schema_filtered.c: make never_in_filtered_attrs static const
...
metze
2010-11-09 22:52:59 +01:00
Stefan Metzmacher
44b1c82e84
s4:dsdb/schema/schema_filtered.c: use DSDB_SECRET_ATTRIBUTES
...
metze
2010-11-09 22:52:57 +01:00
Stefan Metzmacher
0e3a13f8cc
s4:dsdb/common: create a DSDB_SECRET_ATTRIBUTES define with all secret attributes
...
We should have them just in one place, so that we don't forget some of them.
metze
2010-11-09 22:25:51 +01:00
Andrew Tridgell
9c7228d6aa
s4-drs: reduce verbosity of dreplsrv_out_connection_attach
2010-11-08 23:23:07 +00:00
Kamen Mazdrashki
0aeb08e2eb
s4-attid: Uppercase ATTID type constants
...
Thanks Metze for noting this!
Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Mon Nov 8 23:06:41 UTC 2010 on sn-devel-104
2010-11-08 23:06:41 +00:00
Matthias Dieter Wallnöfer
124abb37bf
s4:password_hash LDB module - introduce a "userPassword" flag which enables/disables the two "userPassword" behaviours
...
- Enabled: "userPassword" password change behaviour (will later be linked to the
"dSHeuristics")
- Disabled: "userPassword" plain attribute behaviour (default)
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Mon Nov 8 15:28:06 UTC 2010 on sn-devel-104
2010-11-08 15:28:06 +00:00
Matthias Dieter Wallnöfer
58cfa5a825
s4:passwords.py - test empty password attributes behaviour
...
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Mon Nov 8 12:09:56 UTC 2010 on sn-devel-104
2010-11-08 12:09:56 +00:00
Matthias Dieter Wallnöfer
0bfbf6d526
s4:password_hash LDB module - deleting password attributes is a little more complicated
2010-11-08 11:27:03 +00:00
Matthias Dieter Wallnöfer
9154d4dcfc
s4:samdb_msg_find_old_and_new_ldb_val - rework
...
- don't crash when no values where specified
- return ERR_CONSTRAINT_VIOLATION on malformed messages
- only check for flags when we are involved in a LDB modify operation
2010-11-08 11:27:03 +00:00
Matthias Dieter Wallnöfer
6041ef7442
s4:password_hash LDB module - clear the fact that a delete of password attributes isn't possible
2010-11-08 11:27:03 +00:00
Matthias Dieter Wallnöfer
d4c9a34cf8
s4:acl LDB module - define the delete passwords special case a bit better
2010-11-08 11:27:03 +00:00
Matthias Dieter Wallnöfer
acffe25896
s4:passwords.py - add another two failure cases
2010-11-08 11:27:03 +00:00
Matthias Dieter Wallnöfer
af84b6d325
s4:pydsdb.c - use "Py_ssize_t" for Python list counters
...
Seems to be the most appropriate type
2010-11-08 10:39:05 +00:00
Matthias Dieter Wallnöfer
9f2d21561b
s4:pydsdb.c - introduce Python 2.4 compatibility defines
2010-11-08 10:39:05 +00:00
Matthias Dieter Wallnöfer
4b97e7c8f2
s4:objectguid/repl_meta_data LDB module - deny "objectGUID" updates
...
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Mon Nov 8 10:36:50 UTC 2010 on sn-devel-104
2010-11-08 10:36:49 +00:00
Matthias Dieter Wallnöfer
8caf0ed909
s4:objectclass LDB module - no idea why we'd need the "objectGUID" here
2010-11-08 10:51:45 +01:00
Matthias Dieter Wallnöfer
bb2eef5295
s4:objectguid LDB module - make use of "dsdb_next_callback"
2010-11-08 10:36:12 +01:00
Andrew Bartlett
3c4376c4d8
s4-dsdb Explain why we may not use the GC name in some situations.
...
This delicate balance caused us a bit of a puzzle when we could not work
out why an DC join failed with the new python scripts.
Andrew Bartlett
2010-11-08 18:15:23 +11:00