summaryrefslogtreecommitdiff
path: root/source4/lib
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r16908: Set an error string if we can't find a backend for an operation.Andrew Bartlett1-1/+5
Andrew Bartlett (This used to be commit 6a8c9af9bae8c482dfdb07114ae8313b7e35d9e9)
2007-10-10r16832: I should be more careful (and test!) when trying to make compilers andAndrew Bartlett1-1/+3
static checkers happy... Andrew Bartlett (This used to be commit ae7ec0d553650b2a90fac8b7564b8f986e3e4288)
2007-10-10r16829: Fix a number of issues raised by the IBM checker, or gcc warnings.Andrew Bartlett1-8/+11
In particular, this removes one use of the LDB_DN_NULL_FAILED macro, which was being used on more than DNs, had an embedded goto, and confused the IBM checker. In the password_hash code, ensure that sambaAttr is not, before checking the number of values. In GENSEC, note that this switch value can't occour. This seems to be the only way to quiet both the IBM checker and gcc, as well as cope with possibly invalid inputs. Andrew Bartlet (This used to be commit 3e58350ec2ab883795b1dd03ac46a3520cac67d0)
2007-10-10r16825: Make ldb_sainity_check() set an error string. This makes it muchAndrew Bartlett4-13/+26
easier to chase down what modules or application code gets wrong. Ensure not to leave memory allocated on failure in ldb_search() Andrew Bartlett (This used to be commit 0828739951ed879640f8ed6e4700d8ca6b8221b8)
2007-10-10r16784: - make some function in ldb static, they not need to be exported ↵Simo Sorce1-3/+3
anywhere - fix a bad segfault Andrew please make test before committing. Simo. (This used to be commit b9b6bb3e89d3b0e04ccce15156c1a128b6f20d88)
2007-10-10r16776: fix typoStefan Metzmacher1-1/+1
metze (This used to be commit 249bf24a40f78aab181a4cce8c42902859e43238)
2007-10-10r16774: This patch modifies the tdb API to allow the logging function to be usedAndrew Bartlett15-129/+198
as part of ldb. This allows tdb failures to be passed all the way up to Samba's DEBUG system, which allowed easier debugging. Unfortunately I had to extend the tdb API, as the logging function didn't have a context pointer. I've worked over the 'debug levels' in TDB. Most of them were 0, which didn't seem right, as some were trace-like messages. We didn't see any of these previously, except when accessing TDB directly. Andrew Bartlett (This used to be commit 58898092c1ce043f6d698db5065f372b79109e22)
2007-10-10r16716: patch from Bjoern Jacke to fix compiler warnings on AIXStefan Metzmacher1-0/+44
metze (This used to be commit 3e5de223f715343b6421d580dc1b3f9d67c980da)
2007-10-10r16571: - make push/pull_ascii()/_ucs() functions static,Stefan Metzmacher1-6/+19
callers should use push/pull_string() functions with STR_ASCII or STR_UNICODE - make the push/pull_ascii/ucs2/utf8_talloc() functions complete (they should be reduced to pull/push_string_talloc() later...) metze (This used to be commit b0af976187d2d46b7dbe5a532a5491476b459119)
2007-10-10r16556: Add mkdtemp to libreplace. This is apparantly available on LinuxJames Peach4-2/+22
and BSD systems, but it's not everywhere. (This used to be commit b3d2512ed4fc8c378607bcc2dc241a1f77ab7197)
2007-10-10r16517: Get rid of pointless safe_free() (not SAFE_FREE()!) function.Jelmer Vernooij2-14/+1
(This used to be commit 6bc91497827a66af6d9adf26c689e9cc458d8ecf)
2007-10-10r16516: Get rid of file_exists() as there already is a file_exist().Jelmer Vernooij1-9/+0
(This used to be commit c4b3c2b18c6df43c8a4808fab72bc45439ba9421)
2007-10-10r16447: print the result of talloc_set_parent()Stefan Metzmacher1-3/+4
trying to find the bug on HPUX metze (This used to be commit 3db6bd87158cd615a3e35009598863758099595b)
2007-10-10r16446: talloc_set_name() allocates and can fail...Stefan Metzmacher2-7/+22
pass the error to the callers metze (This used to be commit 7aa07a1e0b2abd1a6ecd490410685d20c0201094)
2007-10-10r16445: print out valuesStefan Metzmacher1-2/+4
metze (This used to be commit 972634b2021e60b27d68b0fd6d49ef95398d92e2)
2007-10-10r16442: if we want to use CHECK_SIZE(NULL, 3)Stefan Metzmacher1-0/+2
we need null tracking, so enable it explicit before running any tests metze (This used to be commit f3cd971ab70c3edee4da87b8ca38ec215c8bff49)
2007-10-10r16264: Add, but do not yet enable, the partitions module.Andrew Bartlett4-8/+15
This required changes to the rootDSE module, to allow registration of partitions. In doing so I renamed the 'register' operation to 'register_control' and 'register_partition', which changed a few more modules. Due to the behaviour of certain LDAP servers, we create the baseDN entry in two parts: Firstly, we allow the admin to export a simple LDIF file to add to their server. Then we perform a modify to add the remaining attributes. To delete all users in partitions, we must now search and delete all objects in the partition, rather than a simple search from the root. Against LDAP, this might not delete all objects, so we allow this to fail. In testing, we found that the 'Domain Controllers' container was misnamed, and should be 'CN=', rather than 'OU='. To avoid the Templates being found in default searches, they have been moved to CN=Templates from CN=Templates,${BASEDN}. Andrew Bartlett (This used to be commit b49a4fbb57f10726bd288fdc9fc95c0cbbe9094a)
2007-10-10r16186: Use full include path to make sure it's being picked up by theJelmer Vernooij1-1/+1
dependency generator. (This used to be commit fbbc3b11683d594d31e6487873946b68c2c46923)
2007-10-10r16185: Remove autogenerated file from SVN.Jelmer Vernooij1-25/+0
(This used to be commit a975f11d452deb2c5e06b8ba02f528b08d2842e1)
2007-10-10r16172: Translate the ldb error codes into appropriate messages for theAndrew Bartlett1-3/+9
transaction cases. Andrew Bartlett (This used to be commit 28883f719304ee438c54a4d33e6bf1239f8c4094)
2007-10-10r16143: Fix disappearance of user-specified CPPFLAGS,LDFLAGS and LIBS variables.Jelmer Vernooij1-3/+6
(This used to be commit b7c3f80efd08c2206048d00815b7396488c91d3b)
2007-10-10r16100: Patch from Michael Wood <mwood@icts.uct.ac.za>: s/then/than/ for ↵Gerald Carter7-9/+9
correct grammar (This used to be commit 26a2fa97e4c819e630bc9b50e11c8d5328c7b8c8)
2007-10-10r16090: Fix standalone build after the rename of enum ldb_request_type inTim Potter3-21/+21
r15944. Hey idra I think a better rename would be to keep the LDB_REQ suffix here to remain consistent with the other enums (e.g ldb_reply_type, ldb_async_wait_type and ldb_async_state). (This used to be commit d44ee8c43bd8f6f978330a8ded8bf30ffad494d6)
2007-10-10r16089: Make doxygen target work if $DOXYGEN variable is empty.Tim Potter1-1/+1
(This used to be commit 8f44d0a2d66751ebc648550eec1ea051724b750c)
2007-10-10r16087: Fix silly cut-and-paste typo that cost me much of my afternoon...Andrew Bartlett4-7/+4
This only affects my new partitions module, which I will post soon, but should be fixed anyway. Andrew Bartlett (This used to be commit 8912c4e057eb3962321245cf49b92999afcc64fc)
2007-10-10r16086: Ensure we can never dereference NULL pointers, and that describe whatAndrew Bartlett1-7/+14
these two DN comparison functions do. Andrew Bartlett (This used to be commit 733b64a733779daade7d1cabbacac2275564b697)
2007-10-10r16085: Set the error string if we fail to find a valid op to execute. HelpsAndrew Bartlett1-2/+6
in chasing down bugs :-) Andrew Bartlett (This used to be commit 9ede8edbaf1731f32814917439326f49b5f9f3ef)
2007-10-10r16084: Add private prototype for new ldb_connect_backend() function.Andrew Bartlett1-0/+5
Andrew Bartlett (This used to be commit 684126223046d88d1ff446767ab6783f6391b50c)
2007-10-10r16083: Make it possible to initialise a backend module, without it setting upAndrew Bartlett8-56/+152
the whole ldb structure. Because the sequence number was a fn pointer on the main ldb context, turn it into a full request (currently sync). Andrew Bartlett (This used to be commit fbe7d0ca9031e292b2d2fae263233c973982980a)
2007-10-10r16071: tdb has nested transactionsSimo Sorce1-53/+86
change the code to exploit that in ldb I still have to reintroduce transactions when you call ldb_request directly, I have some plans I hop to be able to develop in the next weekend (This used to be commit 35111206021d667dfd217b5fd8d82f5c2714cc9e)
2007-10-10r16067: Remove const, it isn't required and just causes a warning.Andrew Bartlett1-1/+1
Andrew Bartlett (This used to be commit 272a0957283daafb6cbf52219263b94856155d65)
2007-10-10r16066: The OSX AD plugin uses objectCategory searches a lot, and uses themAndrew Bartlett3-5/+84
both fully qualified and in the 'short' form. Now we test and support this query format. Andrew Bartlett (This used to be commit 9ddcfacbcedc5eea2730d4bf902c0fcd02bcfa11)
2007-10-10r16062: objectCategory is a DN, and needs to be matched as such.Andrew Bartlett1-0/+1
Andrew Bartlett (This used to be commit 1a868b451a47798dc539e0754ab2b075813ed368)
2007-10-10r16053: Allow entries without an objectClass. We need this to permit theAndrew Bartlett1-5/+3
cn=rootDSE entry. (it was also crashing, as 'ac' wasn't initialised at this point) Andrew Bartlett (This used to be commit 8455aafb1547ae843b066db716a892fda14438b4)
2007-10-10r16052: Add .m4 file for XATTR detection (from ntvfs/posix/config.m4)Andrew Bartlett1-0/+32
Andrew Bartlett (This used to be commit 9a9c2bc4aaa4afc947fb490f48bf037e03d2f223)
2007-10-10r16051: Move the XATTR compatability code into a new file, so I can use it forAndrew Bartlett3-0/+157
the getntacl utility. Andrew Bartlett (This used to be commit b1e0d4747b412929e1d4e24d6d9e504df3ddc824)
2007-10-10r16043: Fix error messageSimo Sorce1-3/+3
(This used to be commit 2898df2cee22f2d478440e9576bec15140909e45)
2007-10-10r16036: Add a couple of new functions to corretly deal with timeouts.Simo Sorce12-92/+106
Check timeouts are correctly verified. Some minor fixed and removal of unused code. (This used to be commit b52e5d6a0cb1a32e62759eaa49ce3e4cc804cc92)
2007-10-10r16028: Re-add the objectclass module, in the new async scheme.Andrew Bartlett2-107/+351
Add a test to show that we need this, and to prove it works (for add at least). Andrew Bartlett (This used to be commit f72079029abb594677bf8c2b63e40c07e910004f)
2007-10-10r16012: do the type checks before anythingelseStefan Metzmacher1-11/+12
metze (This used to be commit 092e52c51884706317564a5a5397f137689d78cb)
2007-10-10r16010: deal with the case that int64,uint64 are already typedef'edStefan Metzmacher1-2/+2
metze (This used to be commit 07b014f770714474660f68c6ebc510bfbb232abc)
2007-10-10r16007: If no error string was setup by the backend, ensure that we always getAndrew Bartlett1-1/+9
at least a generic error, even when inside a transaction. This helps debugging ldb/js interactions a lot... Andrew Bartlett (This used to be commit b607acf6f0b3567a40a3e35911c690feda243f50)
2007-10-10r16003: Tru64 doesn't have strtoll/strtoull but the size of 'long' is equal toStefan Metzmacher1-0/+4
the size of 'long long' so we can use strtol/strtoul Patch from Bjoern Jacke, thanks! (I only added the SIZEOF_LONG == SIZEOF_LONG_LONG) metze (This used to be commit 2bda7b63be1257210601dac3e2b1070f48d765b4)
2007-10-10r16002: fix the build on solarisStefan Metzmacher2-3/+3
Patch from Bjoern Jacke, thanks! metze (This used to be commit 1250355909533e033f30e6a960c58cfc9ec760ba)
2007-10-10r16001: we don't use u_intX_t any moreStefan Metzmacher2-7/+2
metze (This used to be commit e0e4f86b30185e01975eff91c2ce7ab7ca5353c1)
2007-10-10r15986: Declare struct tmJelmer Vernooij1-0/+1
(This used to be commit 139d9369dc1b7daaf980a0c95b0921388ec39913)
2007-10-10r15981: we need to initialize 'ret' before 'goto failed'Stefan Metzmacher1-5/+11
metze (This used to be commit 941f93f93f3ce9dacaafe80520b8751f738e7032)
2007-10-10r15979: some farmating...Stefan Metzmacher1-7/+6
metze (This used to be commit 53ec76d8d2edaa37bbccb6de838248931a3a76d2)
2007-10-10r15978: - pass the error code back to the caller...Stefan Metzmacher1-2/+2
- we were giving OPERATIONS_ERROR in all cases:-( - we now pass ALREADY_EXIST fine to the caller, and the code in libnet_site.c is happy again. - this bug wasn't noticed for a long time because the ldb_ildap code always passed SUCCESS to it's caller metze (This used to be commit 7b9d7119205c442f338deab07122ce1548bad9b6)
2007-10-10r15964: fix error handling in ldb_ildap backendStefan Metzmacher1-7/+14
metze (This used to be commit 54e5aeff87b859960dfc5e4b6e3ab026ce5470ff)