summaryrefslogtreecommitdiffstats
path: root/source4/lib
Commit message (Collapse)AuthorAgeFilesLines
* util: rewrite dlinklist.h so that DLIST_ADD_END() is O(1)Andrew Tridgell2010-02-101-59/+111
| | | | | | | | | | | | | | This changes the meaning of the ->prev pointer in our doubly linked lists to point at the end of the list from the front of the list. That allows us to implement DLIST_ADD_END() and related functions in O(1) time, which can be a huge saving in many places in Samba. This also means that the 'type' argument to various DLIST_*() macros is no longer needed, but I have left it in for now to keep the patchset small, which will make it easier to revert if any problems are found. In the future we should remove the 'type' arguments. (jra. Move the one use of DLIST_TAIL over to the new macros).
* s4-ldb: update ldb_tdb to use new DLIST_ macrosAndrew Tridgell2010-02-101-15/+3
| | | | (cherry picked from commit 6ede911654566a7e21ded70dacac68df3b6a1bca)
* Temporary changes to dlinklist to keep the implementation static whilstJeremy Allison2010-02-101-0/+16
| | | | | | | uses of (list)->prev are moved over to DLIST_PREV. This will be replaced when the final (new) version of the dlinklist.h header is added. Jeremy.
* s4:Remove "Py_RETURN_NONE" compatibility codeMatthias Dieter Wallnöfer2010-02-093-12/+0
| | | | This was needed only by Python 2.3 which we no longer support.
* s4-registry: fixed byte order assumptionsAndrew Tridgell2010-02-074-7/+9
| | | | the registry tests were broken on big-endian systems
* Change uint_t to unsigned int in source4Matt Kraai2010-02-021-1/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4/ldif: Handle Schema:prefixMap blobs in W2K3 and W2K8Kamen Mazdrashki2010-02-011-6/+16
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4/ldif: Better control on ldif_write_NDR() errors processingKamen Mazdrashki2010-02-011-6/+21
| | | | | | | Current implementation mask NDR_ errors implicitly. Thus the caller has no opportunity handle such an error. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:ldb quiet down rootdse control registrationSimo Sorce2010-01-311-1/+1
|
* s4:ldb Fix check made conditional by mistakeSimo Sorce2010-01-301-7/+11
|
* s4:ldb add support for permissive modify controlSimo Sorce2010-01-301-24/+96
|
* s4/ldap: Fix nested searches SEGFAULT bugKamen Mazdrashki2010-01-291-0/+11
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4-ldbtest: fixed python importAndrew Tridgell2010-01-281-2/+2
|
* s4-drs: implementation of some delete test casesEduardo Lima2010-01-281-0/+200
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4: Fix a few warnings.Jelmer Vernooij2010-01-212-0/+3
|
* Add a comment to tdb_wrap to explain why it should be used instead of ↵Matthieu Patou2010-01-211-0/+7
| | | | directly using tdb
* Fix unintentional free of the last value when adding a new value to a key.Wilco Baan Hofman2010-01-201-4/+8
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* ldap: Fix test failure that seemed to go unreported previously.Jelmer Vernooij2010-01-171-2/+1
|
* ldap.py: Remove unused imports.Jelmer Vernooij2010-01-171-18/+4
|
* Import testtools as well, required for subunit.Jelmer Vernooij2010-01-164-8/+4
|
* s4-ldb: cope with bad ptr alignment in ldb_index.cAndrew Tridgell2010-01-161-3/+3
| | | | | We can't assume that a rec_ptr will come back from a tdb traverse with alignment sufficient for a pointer.
* s4:ldb/tests: do a "schemaUpdateNow" after creating a new attribute in ↵Stefan Metzmacher2010-01-131-0/+10
| | | | | | | | | | | ldap_schema.py It seems that windows doesn't need that. And we should think about a check for reloading the schema at the start of each "write" operation. metze
* s4:ldb_msg: first try to decode integers as signed and then fallback to unsignedStefan Metzmacher2010-01-131-0/+18
| | | | | | | | LDAP only knowns about signed integers, so let ldb_msg_find_attr_as_uint() and ldb_msg_find_attr_as_uint64() cope with it. metze
* s4:ldb: be more strict in parsing ldb time stringsStefan Metzmacher2010-01-131-4/+4
| | | | metze
* s4-ldb: display security descriptors with correct SDL for known SIDsAndrew Tridgell2010-01-102-1/+7
| | | | This makes it much easier to compare SDs
* s4-messaging: remove only usage of debug_ctx()Andrew Tridgell2010-01-091-2/+4
|
* s4-messaging: fixed a memory leak in messaging_path()Andrew Tridgell2010-01-091-2/+9
| | | | | It is a bit convoluted to fix, as cluster_id_string() may return a const string.
* s4-ldb: validate the type of the ldb argument to ldb_dn_new()Andrew Tridgell2010-01-091-1/+7
| | | | | It has been a common bug to get the first two arguments the wrong way around
* s4-acl: fixed acl.py test to use correct ldifAndrew Tridgell2010-01-081-1/+2
| | | | same problem as sec_descriptor.py
* s4-secdesc: fixed the sec_descriptor.py testAndrew Tridgell2010-01-081-42/+74
| | | | | | | | | | The test was using a "changetype: add" to try and add a member to a group, where it should use a "changetype: modify" with a "add: member" Also fixed the recovery when the test fails part way through (delete the test users at the start as well as the end) Nadya, please check!
* s4-ldb: improve error handling in indexing codeAndrew Tridgell2010-01-082-5/+34
| | | | When we get an indexing failure we want a clear error message
* s4-event: added s4_event_context_set_default()Andrew Tridgell2010-01-082-1/+15
| | | | we're still not weaned off event_context_find()
* 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-ldb: added nice ldif display of 64 bit ranges for RIDsAndrew Tridgell2010-01-082-0/+119
|
* 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.
* 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-021-1/+1
| | | | This allows for more flags in the future
* s4-ldb: fixed valgrind error: ares can be freed by callbackAndrew Tridgell2010-01-021-4/+1
|
* s4-ldaptest: need to use MessageElement for modify messagesAndrew Tridgell2010-01-021-2/+4
| | | | Without MessageElement() the flags are not set, which is invalid
* s4-ldb: show an error string, as well as error messageAndrew Tridgell2010-01-021-3/+4
| | | | | This makes it easier to track down error mismatches from the test suite
* s4-ldbtest: fixed message element in modifyAndrew Tridgell2010-01-021-1/+2
| | | | a flags value of zero is not valid
* s4-ldb: allow modules to override error return valuesAndrew Tridgell2010-01-021-2/+4
| | | | | | The samldb module overrides the error code for some returns when handling primaryGroupID. We need to take the error from the async callback to allow this to work reliably
* s4-ldbmodify: show the error code as well as error stringAndrew Tridgell2010-01-021-1/+2
|
* s4-ldb: declate ldb_val_to_time()Andrew Tridgell2010-01-021-0/+6
|
* s4-ldb: use safe length limited conversions for int64 and timeAndrew Tridgell2010-01-021-13/+48
|
* s4-dsdb: use safe length limiting in string->integer conversionAndrew Tridgell2010-01-021-11/+35
| | | | | The ldap.py test suite could trigger a read past the end of the struct ldb_val buffer
* s4-ldb: added ldb_val_to_time() Andrew Tridgell2010-01-021-0/+27
| | | | | | This is intended as a replacement for ldb_string_to_time() for ldb_val inputs. This ensures it is length limited and includes additional validity checks
* s4-ldb: show the error code as well as errstrAndrew Tridgell2010-01-021-2/+3
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>