summaryrefslogtreecommitdiff
path: root/source4/lib
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r10980: Use ldb_attr_cmp and ldb_dn_escape_valueAndrew Bartlett1-6/+6
Andrew Bartlett (This used to be commit 2b1c88f628b27ffda08de3f4ac83c1f3b052a078)
2007-10-10r10959: fix compiler warningsStefan Metzmacher1-2/+3
metze (This used to be commit 9a9311fa6b4bbb2a385413c056c8be57cdb9eb59)
2007-10-10r10957: make a comment clearerAndrew Tridgell1-1/+1
(This used to be commit d379fb5f101155edd5f266ae9aaae4e7ac7bd76b)
2007-10-10r10956: Tridge thought some comments might be a good idea :-)Andrew Bartlett1-2/+14
Andrew Bartlett (This used to be commit c0d6126effdf31e0a107c06a400973c731e0e263)
2007-10-10r10954: added support for canonicalName in the operational module, using theAndrew Tridgell3-32/+94
dn->canonicalName function abartlet just committed (This used to be commit 197e8a27f0557869eacd17b74e1b14e0665883b1)
2007-10-10r10953: Add a new function to form a canonicalName out of a DN to ldb_dn.cAndrew Bartlett2-0/+57
Use this new function in the client and server for the CrackNames case, where we particularly need it. Andrew Bartlett (This used to be commit 380037ee09ef8293bdb288d6c015e7c80f180a30)
2007-10-10r10924: we don't need this line twiceStefan Metzmacher1-1/+0
metze (This used to be commit f1ee8d4b58d97888dc4c57af34c7604ee9dd2a73)
2007-10-10r10918: - fixed standalone ldb buildAndrew Tridgell8-241/+15
- added note about allowedAttributesEffective (will be needed for mmc) - fixed some more ldb warnings (This used to be commit e9e4d81b6976549db8a7668572a5da466fbec4a9)
2007-10-10r10917: copy the element name in a ldb_msg_rename_attr() and ↵Andrew Tridgell3-9/+18
ldb_msg_copy_attr() to ensure that callers (like the ldap server) can talloc_steal the name (This used to be commit 9c914542cc346758c82f89990c80eb096a9c0959)
2007-10-10r10916: - finished the 'operational' ldb moduleAndrew Tridgell5-39/+145
- removed the timestamps module, replacing it with the operational module - added a ldb_msg_copy_shallow() function which should be used when a module wants to add new elements to a message on add/modify. This is needed because the caller might be using a constant structure, or may want to re-use the structure again - enabled the UTC time attribute syntaxes in the operational module (This used to be commit 61e8b010223ac6a0573185008f3719ba29574688)
2007-10-10r10915: added a standard attribute handler for a ldap UTC time stringAndrew Tridgell3-11/+56
(This used to be commit efd7dd1a775c06f21924f35760f7768b4e8db449)
2007-10-10r10914: moved the ldap time string functions into ldb so they can be used byAndrew Tridgell3-41/+46
the time attribute handling functions (This used to be commit 93c296d52718e77f8b702e1721b548eaadc56c76)
2007-10-10r10913: This patch isn't as big as it looks ...Andrew Tridgell24-225/+570
most of the changes are fixes to make all the ldb code compile without warnings on gcc4. Unfortunately That required a lot of casts :-( I have also added the start of an 'operational' module, which will replace the timestamp module, plus add support for some other operational attributes In ldb_msg_*() I added some new utility functions to make the operational module sane, and remove the 'ldb' argument from the ldb_msg_add_*() functions. That argument was only needed back in the early days of ldb when we didn't use the hierarchical talloc and thus needed a place to get the allocation function from. Now its just a pain to pass around everywhere. Also added a ldb_debug_set() function that calls ldb_debug() plus sets the result using ldb_set_errstring(). That saves on some awkward coding in a few places. (This used to be commit f6818daecca95760c12f79fd307770cbe3346f57)
2007-10-10r10897: added in a hackish ldb proxy module that I am using to experiment withAndrew Tridgell1-0/+1
mmc management support (This used to be commit 99a5b088810e8e2f4e28b99a4a0e5e7dc9301594)
2007-10-10r10896: added a strcasestr() replacement functionAndrew Tridgell3-2/+20
(This used to be commit 4483d275e12006e5acc72ae143c0a01da01bd00d)
2007-10-10r10895: allow 'dn=string' searches to work again. Windows doesn't allow these,Andrew Tridgell1-7/+2
but they are so very useful for things like dn=@MODULES that I think its worth supporting them (This used to be commit e2e3193a98b0f81c7bdb02c98db375ca0449022a)
2007-10-10r10894: make the handling of dn/distinguishedName much closer to realAndrew Tridgell7-8/+13
ldap. Also ensure we put a objectclass on our private ldb's, so they have some chance of being stored in ldap if you want to (This used to be commit 1af2cc067f70f6654d08387fc28def67229bb06a)
2007-10-10r10893: add configure test for utime (needed for the previous utime patch)Andrew Tridgell1-1/+1
(This used to be commit ef020d599fd2336cbf879920fe3505b97783dfc8)
2007-10-10r10892: - improved the handling of the special distinguishedName attributeAndrew Tridgell1-85/+43
- ensure we don't add attributes twice, should a user ask for the attribute twice. Do this in such a way that we don't become O(n^2) - removed some unused code (This used to be commit 7684cdb47b4ae516f066afb249d5f88032152ec9)
2007-10-10r10891: I noticed that the secrets.db was not being backed up on my system dueAndrew Tridgell1-0/+9
to msync/mmap not changing the mtime of the file. This patch ensures that for successfully completed transactions we update the mtime. I don't do this on all tdb writes as its too expensive, but doing it just on transactions is bearable, as those cost quite a lot anyway. (This used to be commit b2934732dd62f705f59c124f19460c5436a9a422)
2007-10-10r10889: make searches for dn's less of a special case, and much faster whenAndrew Tridgell2-15/+7
part of more complex expressions (This used to be commit 40d304140b4cf22559d6b55c8cbaf1b984baf62f)
2007-10-10r10856: we need aclocal.m4 in ldb for standalone configureAndrew Tridgell2-2/+14
(This used to be commit b2551e76e8b0edf99483343d687df3a6cecff1f5)
2007-10-10r10830: we should use the same name in all places:-)Stefan Metzmacher1-1/+1
metze (This used to be commit fbe8fd06b700b78f02b7f01fc2ad45eee419d216)
2007-10-10r10810: This adds the hooks required to communicate the current user from theAndrew Bartlett1-0/+5
authenticated session down into LDB. This associates a session info structure with the open LDB, allowing a future ldb_ntacl module to allow/deny operations on that basis. Along the way, I cleaned up a few things, and added new helper functions to assist. In particular the LSA pipe uses simpler queries for some of the setup. In ldap_server, I have removed the 'ldasrv:hacked' module, which hasn't been worked on (other than making it continue to compile) since January, and I think the features of this module are being put into ldb anyway. I have also changed the partitions in ldap_server to be initialised after the connection, with the private pointer used to associate the ldb with the incoming session. Andrew Bartlett (This used to be commit fd7203789a2c0929eecea8125b57b833a67fed71)
2007-10-10r10790: allow updating of existing ldb opaque values (thanks to abartlet forAndrew Tridgell1-1/+11
spotting this) (This used to be commit ef13569ca94da00cc410318e61505e70f3606674)
2007-10-10r10759: make modules easier to write by allowing modules to only implement theAndrew Tridgell6-174/+76
functions they care about, instead of all functions. This also makes it more likely that future changes to ldb will not break existing modules (This used to be commit 45f0c967b58e7c1b2e900a4d74cfde2a2c527dfa)
2007-10-10r10757: remove the proxy module (it is not complete yet)Andrew Tridgell1-1/+0
(This used to be commit 3c5f3032fcb092545580b986e0ce58bb49e4d9cb)
2007-10-10r10756: another fix for the construction of expressions from subtrees forAndrew Tridgell1-4/+6
SUBSTRING searches. This time fix multi-part substring searches. (This used to be commit bf5cef6f00466fc1dc3c2864a109f1ccd92681b0)
2007-10-10r10755: fixed the construction of expressions from subtrees for SUBSTRING ↵Andrew Tridgell1-1/+8
searches (This used to be commit 71c06778d4a3ac1ca4198071ae3351acdc0656d9)
2007-10-10r10753: don't require every ldb module to implement both a search_bytree() andAndrew Tridgell16-219/+95
a search() function, instead each module now only implements the bytree method, and the expression based search is handled generically by the modules code. This makes for more consistency and less code duplication. fixed the tdb backend to handle BASE searches much more efficiently. They now always only lookup one record, regardless of the search expression (This used to be commit 7e44f9153c5578624e2fca04cdc0a00af0fd9eb4)
2007-10-10r10726: fix to talloc_parent() from Michael O'BrienAndrew Tridgell1-1/+1
(This used to be commit f31a2376f3fef1cc2b40b37fb4d94a4b67eec6d4)
2007-10-10r10708: a bit more error checking in the idap ldb backendAndrew Tridgell1-0/+5
(This used to be commit 63ebaad393e38b28c8f97f33e2b22f2445733405)
2007-10-10r10695: strupper() of NULL should be NULL, not panic.Andrew Bartlett1-0/+4
Andrew Bartlett (This used to be commit b1bcc0dc0b3c6d4d931100dee21ba16cb5521978)
2007-10-10r10690: Fix a bug that metze pointed out: Leaving the "rejecting" destructor ↵Volker Lendecke1-0/+1
around prevents the memory from being freed. Thanks, Volker (This used to be commit df8eeb01f498568207a4a8d5d12348c473f41799)
2007-10-10r10684: Add a nasty hack for the failure case of wbinfo -t. Tridge has a ↵Volker Lendecke1-1/+9
proper fix for it pending. Also fix a bug with timed events: Don't call the same event recursively in the handler's inner semi-async event loop. Volker (This used to be commit e38e50127a3414461578421e676a9c58c106c272)
2007-10-10r10678: Add debug helperJelmer Vernooij1-0/+22
Fix push for non-fixed length strings (This used to be commit 821b0bb56f6d6b9df7bbdeeddc206505f3f0a7c2)
2007-10-10r10667: cope with a NULL tree for base searches in ldb_search()Andrew Tridgell1-11/+11
(This used to be commit 26ff53857802ae4a63f2b6e46c9caa7ca2fbbe89)
2007-10-10r10666: - reverse the ildap ldb backend so tree based searches go throughAndrew Tridgell1-22/+28
directly, and expression based searches are converted to trees. This makes for less conversions. - allow the caller to supply a set of credentials via the ldb opaque name 'credentials'. I will be using this in my ldb proxy module. (This used to be commit af24f3d7faac6ef74feef73a23345d8c484da07c)
2007-10-10r10665: fixed some crash errors and an error encoding AND and OR operations ↵Andrew Tridgell1-3/+16
in the expression parsing code (This used to be commit 0d4a900ce5705856d61c6dd4ccb8fdbd049d22b7)
2007-10-10r10664: Include limits.h in replace.h for HOST_NAME_MAXJelmer Vernooij1-0/+21
(This used to be commit dc3dc796746de672dbf3ad0e4715e8b30ae4afb7)
2007-10-10r10641: fixed the error handling on search errors in the ildap backendAndrew Tridgell1-0/+1
(This used to be commit e80d42933fe3cbc18cb229e47fffb9ca8068aca5)
2007-10-10r10605: Forgot one file...Jelmer Vernooij1-0/+416
(This used to be commit 441419a08f0845af2b4c8023e1e5bcfda24a6d62)
2007-10-10r10604: Put in the new registry "patchfile" code (similar to ldifJelmer Vernooij7-874/+72
for LDB); not finished yet. (This used to be commit b405b27ba4bf4ddbaff9ca58926d94d1b2fd09f6)
2007-10-10r10603: neaten up the ldb module initialisation codeAndrew Tridgell2-63/+33
(This used to be commit 8e7c4c98a7b4fd814f298fba1b6b686cb58339f8)
2007-10-10r10596: Move the credentials code into it's own subsystem, and push it under ↵Andrew Bartlett3-1049/+2
auth/ Andrew Bartlett (This used to be commit 2e76a4b8efd59c496d64241d654538d3222545c6)
2007-10-10r10593: Add printf attributeAndrew Bartlett1-1/+1
Andrew Bartlett (This used to be commit ba11061b96e26900fd09c32b95c2af934c1e2070)
2007-10-10r10592: Add "adfgets()" function, which allocates and reads a line from a fd.Jelmer Vernooij1-1/+49
Also add torture tests for this function and file_{load,save}. I've hardcoded a file name here.. should I handle that neater somehow? (This used to be commit 8fa383f182f1c4479979455968dd690edc0117ea)
2007-10-10r10588: Remove more unused files, macrosJelmer Vernooij1-4/+13
(This used to be commit d2f80c0457f7404b2cac9df59a400130e9ad025f)
2007-10-10r10586: Add MergedObject() builder. Default to Library() ratherJelmer Vernooij18-50/+50
then StaticLibrary() (This used to be commit b53313dc517986c69a4e4cb8fe3885b696f8faa1)
2007-10-10r10579: str_list_make() can return NULLJelmer Vernooij1-0/+3
(This used to be commit f547ab4644fd1c8ae2e44a25e874abf35e02d986)