Matthias Dieter Wallnöfer
98ce053efd
s4:prefer "samdb_*_dn" basedn calls over the "ldb_get_*_dn" functions
...
Purely cosmetic change.
2010-04-12 18:49:01 +02:00
Jelmer Vernooij
3a34b5f35e
subunit: Remove more test output that could be interpreted by subunit.
2010-04-11 20:57:33 +02:00
Jelmer Vernooij
7da94cc4a6
subunit: Support formatting compatible with upstream subunit, for consistency.
...
Upstream subunit makes a ":" after commands optional, so I've fixed any
places where we might trigger commands accidently. I've filed a bug
about this in subunit.
2010-04-11 20:57:33 +02:00
Matthias Dieter Wallnöfer
568ca2433d
s4:samdb_server_site_dn - free unused DNs in the right way
2010-04-11 13:20:44 +02:00
Andrew Bartlett
77267733ed
s4:dsdb Don't use the permissive modify control on schemaInfo updates
...
The use of 'replace' is enough to wipe out the old value, whatever it
is, we don't need to set 'permissive modify' too.
Additionally, this seems to be causing trouble for the OpenLDAP backend
Andrew Bartlett
2010-04-10 21:41:57 +10:00
Andrew Bartlett
5ebeab3794
s4:dsdb Don't return operational attributes on special DNs
2010-04-10 21:41:02 +10:00
Andrew Bartlett
6ef167c37b
s4:rootdse Implement "tokenGroups" in the rootDSE
...
This returns the currently connected user's full token. This is very
useful for debugging, and should be used in ACL tests.
Andrew Bartlett
2010-04-10 21:41:02 +10:00
Andrew Bartlett
944dc2cb0b
s4:dsdb Improve error message in extended_dn_in
...
This error occours when an extended DN cannot be resolved, so it's
most helpful to print the problematic extended DN.
Andrew Bartlett
2010-04-10 21:41:01 +10:00
Andrew Bartlett
4074739fe7
s4:schema Try to fix OpenLDAP backend after schema reload support.
...
If we can't get @REPLCHANGED, default to a value of 0.
Andrew Bartlett
2010-04-10 21:40:59 +10:00
Kamen Mazdrashki
8149094edd
s4/dsdb: Set schemaInfo attribute value during provisioning
...
After provisioning new Forest, schemaInfo should be set
to a value with revision=1 and current invocation_id
2010-04-09 12:21:34 +03:00
Kamen Mazdrashki
4ba2ac073d
s4/dsdb: split writing of schemaInfo blob in two parts
...
ldb_msg preparation is moved into separate function
so that it can be used for implementing schemaInfo
updates both on module stack (dsdb_module_... functions)
and directly on ldb_context
2010-04-09 12:21:33 +03:00
Kamen Mazdrashki
fbef33fb73
s4/dsdb: Let caller to control if valid invocationId is critical or zero-guid is acceptable
2010-04-09 12:21:33 +03:00
Kamen Mazdrashki
5363b6e68b
s4/dsdb: Use dsdb_schema_info object to create default schemaInfo values
2010-04-09 12:21:32 +03:00
Kamen Mazdrashki
c3d7798991
s4/dsdb: Use dsdb_schema_info object to verify schema_info blobs
2010-04-09 12:21:31 +03:00
Kamen Mazdrashki
15921b669e
s4/waf: add new files to WAF build
2010-04-09 12:21:31 +03:00
Kamen Mazdrashki
6d439afbf7
s4/samldb: schemaInfo attribute must be updated when adding new Schema object
2010-04-09 12:21:30 +03:00
Kamen Mazdrashki
9d1f8bcca9
s4/dsdb: dsdb_schema_info object implementation
2010-04-09 12:21:26 +03:00
Kamen Mazdrashki
37a6b66344
s4/dsdb: Define dsdb representation for schemaInfo attribute
2010-04-09 12:21:25 +03:00
Jelmer Vernooij
57ac0a6042
s4-python: Move load_partition_usn to dsdb module.
2010-04-08 23:20:36 +02:00
Endi S. Dewata
5d5fc92c69
s4:dsdb - Handle INVALID_DN_SYNTAX from OpenLDAP in dsdb_module_load_partition_usn().
...
Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
2010-04-08 22:59:10 +02:00
Jelmer Vernooij
2578072541
s4-python: Move set_global_schema to pydsdb.
2010-04-08 12:21:35 +02:00
Jelmer Vernooij
21ab06f8a2
s4-python: Move samdb_ntds_objectGUID to pydsdb.
2010-04-07 17:39:59 +02:00
Jelmer Vernooij
ae97613499
s4-python: Move set_opaque_integer to pyldb.
2010-04-06 13:12:43 +02:00
Andrew Tridgell
7d34210772
s4-waf: added python_dsdb from merge with master
2010-04-06 20:27:26 +10:00
Andrew Tridgell
553324bc10
s4-waf: move to a universal method of recursing into subdirs
...
This works with both standalone lib builds and bundled builds
2010-04-06 20:27:25 +10:00
Andrew Tridgell
b690fedef5
s4-waf: removed the AUTOGENERATED markers
...
we won't be using the mk -> wscript generator again
2010-04-06 20:27:16 +10:00
Andrew Tridgell
01682f797f
s4-waf: fixed some deps now we don't auto-include tevent and replace
...
this is preparation for being able to use system versions of these
libraries
2010-04-06 20:27:12 +10:00
Andrew Tridgell
f9eae32f4b
s4-waf: mark the wscript files as python so vim/emacs knows how to highlight them
2010-04-06 20:27:11 +10:00
Andrew Tridgell
844acb2260
build: waf quicktest nearly works
...
Rewrote wafsamba using a new dependency handling system, and started
adding the waf test code
2010-04-06 20:26:48 +10:00
Andrew Tridgell
845e0cbe6f
build: commit all the waf build files in the tree
2010-04-06 20:26:48 +10:00
Andrew Tridgell
8f1b809d2c
build: nearly there on samba4 build
2010-04-06 20:26:47 +10:00
Andrew Tridgell
9129c3b3b6
build: fixes from ita
2010-04-06 20:26:40 +10:00
Andrew Tridgell
c7ea3e6fbf
build: source= is clearer for source lists
2010-04-06 20:26:39 +10:00
Andrew Tridgell
07eeed33f6
build: heimdal_build waf support
...
heimdal now mostly builds
2010-04-06 20:26:38 +10:00
Jelmer Vernooij
55aeb682ba
s4-python: Move dsdb_convert_schema_to_openldap to dsdb.
2010-04-04 00:42:52 +02:00
Jelmer Vernooij
2a67eda98f
s4-python: Move set_opaque_integer -> dsdb.
2010-04-04 00:40:01 +02:00
Jelmer Vernooij
8afd52a641
s4-python: Move samdb_server_site_name to dsdb module.
2010-04-04 00:21:09 +02:00
Jelmer Vernooij
31a517e172
s4-python: Move dsdb constants to a separate python module.
2010-04-04 00:14:23 +02:00
Eduardo Lima
af807758e8
s4-drs: replmd_delete with the 3 stage deletion recycle bin
2010-03-26 16:50:48 +11:00
Fernando J V da Silva
8e1d947787
s4-drs: If we are a RODC then do not send DSReplicaSync messages
2010-03-25 15:02:19 +11:00
Matthias Dieter Wallnöfer
6a63c38c12
s4:ldb_modules/util.c - fix two counter variables to be "unsigned"
2010-03-23 00:16:18 +01:00
Andrew Bartlett
f8019ff793
s4:dsdb Add a shortcut sequence number for schema reloads
...
This uses the ldb sequence number, in a hope to detect an unchanged
schema quicker.
Andrew Bartlett
2010-03-22 20:24:41 +11:00
Andrew Bartlett
fe3e1af901
s4:dsdb Rework schema loading and add schema reloading
...
This commit reworks Samba4's schema loading code to detect when it
needs to reload the schema. This is done by watching the @REPLCHANGED
special DN.
The reload happens by means of a callback, which is only set when the
schema is loaded from the ldb - not when loaded from an LDIF file or
DRS.
We also rework the global schema handling - instead of storing the
pointer to the global schema in each ldb, we store a flag indicating
that the global schema should be returned at run time. This makes it
much easier to switch to a new global schema.
Andrew Bartlett
2010-03-22 20:24:41 +11:00
Andrew Bartlett
d0b54476fc
s4:dsdb Move dsdb_save_partition_usn() to be a module helper function
...
This function should not traverse the module stack again, but instead
run from this point. Also add a matching
dsdb_module_load_partition_usn() and change repl_meta_data to match.
Andrew Bartlett
2010-03-22 20:24:41 +11:00
Andrew Bartlett
639728a298
s4:schema Expand the schema structure
...
We now store the location of the schema in the schema, and provide
hooks for a future schema reloading mechanism.
Andrew Bartlett
2010-03-22 20:24:41 +11:00
Andrew Bartlett
7fc94eb9a7
s4:dsdb Add 'const' to some struct dsdb_schema variables
...
We don't currently require this, but we may move this way in future.
2010-03-22 20:24:40 +11:00
Andrew Bartlett
fc5a507a86
s4:dsdb Don't load the schema unconditionally
...
Schema loads now come at a price, so avoid doing them if we don't have
to (such as when doing an @REPLCHANGED or other special DN based
search).
Andrew Bartlett
2010-03-22 20:24:40 +11:00
Andrew Bartlett
6de83ef627
s4:dsdb Move rdn_name down the stack
...
This is done so that it can be (in future) removed when the OpenLDAP
backend is in use and the rdn_val module is used, while keeping as
similar semantics as possible between the module stacks.
Andrew Bartlett
2010-03-18 22:05:38 +11:00
Matthias Dieter Wallnöfer
c3509d88a4
s4:resolve_oids LDB module - not really a change but a nicer method to call "talloc_reference"
2010-03-16 15:01:45 +01:00
Matthias Dieter Wallnöfer
d7de3fa799
s4:dsdb - fix up warnings
2010-03-16 09:50:39 +01:00