summaryrefslogtreecommitdiffstats
path: root/source4
Commit message (Collapse)AuthorAgeFilesLines
...
* s4-repl: implement MSG_DREPL_ALLOCATE_RIDAndrew Tridgell2010-01-082-19/+48
| | | | | | | | | When the repl server gets MSG_DREPL_ALLOCATE_RID it contacts the RID Manager to ask for another RID pool. We use a callback on completion of the operation to make sure that we don't have two RID allocation requests in flight at once Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-repl: allow for callbacks when a repl operation completesAndrew Tridgell2010-01-083-4/+16
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: the dsdb ldb modules now need messagiing Andrew Tridgell2010-01-081-1/+1
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: send a message to the drepl task when we need another RID poolAndrew Tridgell2010-01-081-6/+66
| | | | | | | We send the message when the current pool is half gone. We don't wait for a reply. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-messaging: added a new msg type MSG_DREPL_ALLOCATE_RIDAndrew Tridgell2010-01-081-0/+1
| | | | | | This will be used to ask the drepl task for a new RID pool Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-repl: added request for RID allocation in drepl taskAndrew Tridgell2010-01-087-13/+276
| | | | | | | | | The drepl task now checks to see if our rIDAllocationPool is exhausted, and if it is then we queue a extended operation DsGetNCChanges call to ask the RID Manager to give us a new allocation pool. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: added dsdb_find_guid_attr_by_dn()Andrew Tridgell2010-01-081-5/+18
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-ridalloc: copy with missing rIDNextRid and rIDAllocationPoolAndrew Tridgell2010-01-081-24/+36
| | | | | | | | The attributes rIDNextRid and rIDAllocationPool are not replicated, so their initial value when we first get a RID Set from the RID Manager is blank. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: added dsdb_module_set_integer()Andrew Tridgell2010-01-081-0/+24
| | | | | | This will be used by ridalloc.c Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: clarify who is responsible for each attributeAndrew Tridgell2010-01-081-3/+5
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: fixed usage of rIDAllocationPool and rIDPreviousAllocationPoolAndrew Tridgell2010-01-081-44/+58
| | | | | | | These are very badly named attributes! See the comments in ridalloc.c for a explanation of what they really seem to mean Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: implement refresh of RID Set pool for a local RID ManagerAndrew Tridgell2010-01-081-44/+151
| | | | | | | when we run out of RIDs in our RID Set pool then grab a new one from the RID Manager object Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-provision: don't hard wire the creation of the RID Set objectAndrew Tridgell2010-01-084-29/+18
| | | | | | | | | | We now create it automatically in the samldb module when the first user is created. The creation of the dns user also had to move to the _modify.ldif as it now relies on the fSMO role being setup for the RID Manager Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: implement creation of the RID Set objectAndrew Tridgell2010-01-081-59/+289
| | | | | when we are the RID Manager we can create our own RID Set object when the first user is created
* s4-dsdb: use dsdb_next_callback()Andrew Tridgell2010-01-083-9/+11
| | | | | | | | We can't just use the callers callback directly otherwise the ldb_module_done() is never called on the parent request, as the child request is passed to the callback. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: added dsdb_next_callback()Andrew Tridgell2010-01-081-0/+12
| | | | | | | This should be used when you create a sub request and just want the parent requests callback to be called when done. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: added dsdb_module_constrainted_update_integer()Andrew Tridgell2010-01-081-0/+50
| | | | | | | This provides a convenient way to update a integer attribute with a constrained delete/add Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: added dsdb_module_reference_dn()Andrew Tridgell2010-01-081-0/+43
| | | | | | | This adds a module callable version of samdb_reference_dn(), which finds a DN via a reference link Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: added dsdb_module_add()Andrew Tridgell2010-01-081-0/+46
| | | | | | added a ldb add function for modules Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-provision: allow provision modifies to add recordsAndrew Tridgell2010-01-081-1/+4
| | | | we need to recognise a changetype of 'add'
* s4-dsdb: move the RID allocation logic into ridalloc.cAndrew Tridgell2010-01-083-89/+148
| | | | | | | This will end up having the RID Manager logic as well, so all the RID pool allocation logic is in one spot Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-samldb: use RID Set to allocate user/group RIDsAndrew Tridgell2010-01-081-559/+104
| | | | | | | This is the first step towards DRS-friendly RID allocation. We now get the next rid from the RID Set object Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-provision: the DC object itself needs a fixed objectSIDAndrew Tridgell2010-01-082-1/+3
| | | | | | | We can't allocate a objectSID until we have rIDSetReferences, but that is in the DC object, so we have to force the objectSID of the DC Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: added samdb_rid_set_dn()Andrew Tridgell2010-01-081-0/+18
| | | | | | This returns the DN of our RID Set object Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-provision: added an initial RID SetAndrew Tridgell2010-01-082-2/+12
| | | | | | We will allocate RIDs from this set Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-ldb: added nice ldif display of 64 bit ranges for RIDsAndrew Tridgell2010-01-082-0/+119
|
* s4-dsdb: added samdb_reference_dn()Andrew Tridgell2010-01-081-0/+62
| | | | | | | This returns a 'reference' DN, which is a link to a DN, from the specified object. It is then used by samdb_server_reference_dn() which returns the serverReference DN, and samdb_rid_manager_dn() which returns the rIDManagerReference DN.
* linked_attributes: Fix missing dependency on util.Jelmer Vernooij2010-01-081-1/+1
|
* s4 torture: Add RAW-OPEN-NTCREATEDIR to test error checking for open ↵Tim Prouty2010-01-071-0/+198
| | | | directories as files
* s4/torture: fix small bug in lock testSteven Danneman2010-01-061-0/+1
| | | | Cleanup path should unlock, not cancel existing locked range.
* s4/torture: add more lock cancellation testsSteven Danneman2010-01-061-2/+95
| | | | | * Test the SMB1 behavior when multiple lock ranges are requested, pend, and then are cancelled. The entire LockingAndX request fails.
* s4-smbtorture: add test_ChangeID to RPC-SPOOLSS.Günther Deschner2010-01-061-0/+179
| | | | | | | This tests ChangeID consistency between spoolss_GetPrinterData, spoolss_GetPrinterDataEx and spoolss_GetPrinter (level 0). Guenther
* s4-smbtorture: add test_SetPrinter to RPC-SPOOLSS.Günther Deschner2010-01-061-0/+26
| | | | Guenther
* s4-smbtorture: refactor test_GetPrinter in RPC-SPOOLSS.Günther Deschner2010-01-061-28/+50
| | | | Guenther
* s4: Fix result check for getaddrinfo()Kamen Mazdrashki2010-01-061-6/+11
| | | | | | | | | I think this completes commit 50feca550eed7828198b7c0fc5f0e5ddc863313d. Now result should be handled correctly both for systems that support EAI_NODATA but returns EAI_NONAME (as my Ubuntu 9.x) and systems that doesn't support EAI_NODATA at all. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:SAMLDB LDB module - Fix trailing whitespacesMatthias Dieter Wallnöfer2010-01-051-17/+17
|
* s4:SAMLDB LDB module - Rework to allow checks for wrong ↵Matthias Dieter Wallnöfer2010-01-051-50/+96
| | | | | | | | | | | | | | | | "defaultObjectCategory" attributes This allows a stricter check for "defaultObjectCategory" attributes which is performed when the "relax" control isn't specified. Additional note: As the added comment points out this isn't complete. And I personally think that moving this at some point to the "objectclass" module is a better idea to make this fully work (since there we have direct access to the schema). If someone has a good idea how to do this please inform me. Anyway, the SAMLDB module does require some restructure since at the moment it's very overloaded and therefore a bit a mess. In the meantime I started to work on a new approach to realise it in a better way.
* s4:schema_load.c - TypoMatthias Dieter Wallnöfer2010-01-051-1/+1
|
* s4:ldap_schema.py - add an additional check for validity of ↵Matthias Dieter Wallnöfer2010-01-051-0/+25
| | | | "defaultObjectCategory"
* s4:ldap_schema.py - Move generated attributes checkMatthias Dieter Wallnöfer2010-01-051-15/+15
| | | | Make more clear that they're created before the "schemaUpdateNow".
* Fix the merged build. Probably not strictly correct but allows us to "make ↵Jeremy Allison2010-01-041-1/+1
| | | | | | test". Jeremy.
* s4:dsdb/repl: convert dreplsrv_out_drsuapi_send/recv to tevent_reqStefan Metzmacher2010-01-042-99/+127
| | | | metze
* s4: Happy New Year 2010Stefan Metzmacher2010-01-041-1/+1
| | | | metze
* s4-dsdb: force REVISION_ADS for new and updated ACLs in dsdbAndrew Tridgell2010-01-021-0/+8
| | | | | | | | | w2k8-r2 gives a "schema mismatch" error if the revision is not set to REVISION_ADS and you replicate the ntsecuritydescriptor using DRS. Nadya, please check this! Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-drs: don't give an error on repsTo delete if add is also specifiedAndrew Tridgell2010-01-021-1/+3
| | | | w2k8-r2 in dcpromo asks for a delete+add during its initial join.
* s4-sddl: DRS replication needs REVISION_ADS for SDsAndrew Tridgell2010-01-021-1/+1
| | | | | DRS replication with w2k8-r2 fails with a schema mismatch error if we set the revision to NT4
* ldb: Fix the standalone ldb build.Jelmer Vernooij2010-01-021-14/+14
|
* s4-dsdb: switched to using RMD_FLAGS instead of DELETED in extended DNsAndrew Tridgell2010-01-025-40/+83
| | | | This allows for more flags in the future
* s4-kcc: added a preiodic task to remove deleted objectsAndrew Tridgell2010-01-024-4/+104
| | | | | we check for deleted objects in each partition every 10 minutes, using onelevel searches
* s4-dsdb: fixed several memory leaksAndrew Tridgell2010-01-021-5/+18
| | | | need to be careful with those temporary contexts