summaryrefslogtreecommitdiffstats
path: root/source4/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* LDB:paged searches module - change counters to "unsigned" where appropriateMatthias Dieter Wallnöfer2010-03-081-2/+2
|
* LDB:paged results module - change counters to "unsigned" where appropriateMatthias Dieter Wallnöfer2010-03-081-4/+4
|
* LDB:common - Change counters to "unsigned" where appropriateMatthias Dieter Wallnöfer2010-03-0811-67/+76
| | | | | | | | | To count LDB objects use variables of type "unsigned (int)" or "long long int" on binary or downto searches. To count characters in strings use "size_t". To calculate differences between pointers use "ptrdiff_t".
* s4:LDB TDB index code - reintroduce accidentally removed code partMatthias Dieter Wallnöfer2010-03-081-1/+3
| | | | This was removed by 95d726f3018ef5d249f89d56bde24b7ee0c24ecf. Sorry.
* s4:ldb_ldap.c - fix indentationMatthias Dieter Wallnöfer2010-03-081-1/+1
|
* LDB:TDB backend - change counter variables to "unsigned" where appropriateMatthias Dieter Wallnöfer2010-03-085-16/+19
|
* LDB:SQLITE3 backend - change counter variables to "unsigned" where appropriateMatthias Dieter Wallnöfer2010-03-081-8/+10
|
* LDB:LDAP backend - change a counter variable to "unsigned"Matthias Dieter Wallnöfer2010-03-081-1/+1
|
* LDB:map - make LDB "signed-safe" on counter variables where appropriateMatthias Dieter Wallnöfer2010-03-083-21/+28
|
* s4:ldif_handlers - Change "unsigned int" to "uint32_t" which fits better hereMatthias Dieter Wallnöfer2010-03-081-1/+1
|
* s4:lib/registry/ldb.c - fix trailing whitespacesMatthias Dieter Wallnöfer2010-03-061-6/+6
|
* s4:registry library - fix up "reg_ldb_set_value"Matthias Dieter Wallnöfer2010-03-061-9/+23
| | | | | The previous logic was wrong since it tried to add empty data in some cases which always ended in an error. This problem should be fixed with the new logic.
* s4:registry library - make "reg_ldb_pack/unpack_value" more robustMatthias Dieter Wallnöfer2010-03-061-28/+35
| | | | This to prevent segmentation faults, wrong server inputs ecc.
* s4:libregistry - change counters to be "unsigned"Matthias Dieter Wallnöfer2010-03-0610-40/+41
| | | | | Also the s4 registry library has to have "unsigned" counters like the Windows one.
* LDB:tools - change counters to be unsignedMatthias Dieter Wallnöfer2010-03-066-32/+38
| | | | | In most cases we do count LDB objects which are enumerated within the "unsigned" type. Therefore no need to use "signed" counters.
* s4-messaging: use auto-close on the socketAndrew Tridgell2010-03-051-0/+1
|
* s4:ldap.py - give the "primaryGroupToken" test a better nameMatthias Dieter Wallnöfer2010-03-041-3/+3
| | | | It tests also some other constructed attributes in a basic way.
* s4:ldap.py - add test for "tokenGroups"Matthias Dieter Wallnöfer2010-03-041-0/+44
|
* Refactored ACL python testsNadezhda Ivanova2010-03-041-441/+256
| | | | | Made each type into a separate class to be easily run individually, removed code duplication
* s4:ldif_handlers - Use "unsigned int" for counting purposesMatthias Dieter Wallnöfer2010-03-041-4/+4
| | | | | | I changed "uint32_t" to "unsigned int" since the LDB specification prescrives "unsigned (int)" for counter variables (number of attributes, number of values...).
* s4/ildap: fine tune ildb_callback()Kamen Mazdrashki2010-03-031-3/+3
| | | | | | | | | | Actually ildb_context pointer is not supposed to be valid after calling ildb_request_done(). This is due to the fact that when calling ildb_request_done() caller will (most probably) free any locally built ldap_request objects - thus rendering ildb_context invalid. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* LDB:NSS - make LDB "signed-safe" on counter variablesMatthias Dieter Wallnöfer2010-03-021-2/+2
| | | | | | | | | "i" needs to be unsigned on both places since it counts till a "count" variable of a "struct ldb_result" object which itself is unsigned. I see counting variables much better as "unsigned" since in most cases we don't use negative values at all. We've only to be careful on binary searches and downto counts regarding them.
* s4:LDB - cosmetic fix for a "for" loopMatthias Dieter Wallnöfer2010-03-011-1/+1
|
* s4:ldb_dn: fix an uninitialized variable (found by make valgrindtest)Stefan Metzmacher2010-02-261-1/+1
| | | | metze
* s4:ldb_dn: remove dn->ext_linearized when ext_components is modified.Stefan Metzmacher2010-02-261-3/+4
| | | | metze
* s4:ldb_dn: reset dn->ext_comp_num in ldb_dn_explode()Stefan Metzmacher2010-02-261-2/+2
| | | | metze
* s4:ldb Fix segfault in ldbsearch store_referral callbackAndrew Bartlett2010-02-251-6/+1
| | | | | | | | | | | | | | sctx->refs_store was not initialised, and that made talloc_realloc grumpy once we started actually returning referrals regularly from Samba4's partitions module (0be57c747825737fa9d64411223e693b055b5f8f by mdw). We now just use talloc_zero() and forget about this manual initialisation work. Tracking down use of uninitialised variables with valgrind was the grand idea when this started, but in practice we just get segfaults in unusual places. Andrew Bartlett
* ldb:web Fix typoSimo Sorce2010-02-221-1/+1
|
* s4:registry/regf.c - specify the context when freeing the "regf" variableMatthias Dieter Wallnöfer2010-02-221-1/+1
| | | | Otherwise we get a "talloc_free with references" warning.
* Spelling fixes for source4/lib/registry.Brad Hards2010-02-224-8/+8
| | | | Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
* Typo fix.Brad Hards2010-02-221-1/+1
| | | | Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
* LDB related spelling fixes.Brad Hards2010-02-2211-11/+11
| | | | Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
* s4/ldap: Refactor the fix for ldap nested searchesKamen Mazdrashki2010-02-171-9/+15
| | | | | | | | | | | Current implementation synchronizes processing for all types of LDAP request, not only LDAP_Search ones. Synchronization for ldap replies processing is done locally in ldb_ildap module as this concerns only ildb_callback() function. Signed-off-by: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
* s4-ldb: fixed permissions on urgent_replication.pyAndrew Tridgell2010-02-151-0/+0
|
* s4-test: minor fixes to urgent_replication.pyAndrew Tridgell2010-02-151-27/+4
| | | | | | - fix usage name - remove unnecessary python functions - remote unused gc ldb
* s4-drs: Test situations for Urgent ReplicationFernando J V da Silva2010-02-151-0/+414
| | | | | | | Checks if the partition's uSNUrgent is updated or not, depending on the class of the object which is created, modified or deleted. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-ldb: use TYPESAFE_QSORT() in the rest of the ldb codeAndrew Tridgell2010-02-145-11/+20
|
* s4:popt_common.c - fix intendationMatthias Dieter Wallnöfer2010-02-131-1/+1
|
* s4: use LDB_TYPESAFE_QSORT() instead of ldb_qsort()Andrew Tridgell2010-02-132-5/+2
|
* s4-ldb: added LDB_TYPESAFE_QSORT()Andrew Tridgell2010-02-131-0/+18
| | | | Like TYPESAFE_QSORT() but for the ldb_qsort() function
* s4-socket: use TYPESAFE_QSORT() in netif codeAndrew Tridgell2010-02-131-1/+2
|
* ldb_match - Ignore ":dn" part of extended matches for nowMatthias Dieter Wallnöfer2010-02-111-2/+5
| | | | | | | | | | | It's not fully clear what this ":dn" part means for us. What we know is that older AD implementations (Windows Server 2000, 2003) need it to have extended matches working in the expected way. To be able to interoperate with s3's winbind and other tools I and gd decided to transform this into a warning until we know what to do. This should fix bug #6511.
* s4-pyldb: null terminate string ldb message elements from pythonAndrew Tridgell2010-02-121-4/+4
| | | | | | We need to eventually get rid of ldb_msg_find_attr_as_string() (or add a mem_ctx to it), but meanwhile we have too many places that break if we don't add a nul to the end of ldb msg strings from python.
* 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>