summaryrefslogtreecommitdiffstats
path: root/source/lib/ldb/common
Commit message (Collapse)AuthorAgeFilesLines
* r22557: Simo has long bugged me that the paths in the sam.ldb partitions wereAndrew Bartlett2007-04-281-1/+11
| | | | | | | | | not relative to the location of the sam.ldb, but instead lp_private_dir(). This fixes that issue. Andrew Bartlett
* r22474: If ldb does not return sucess, then the res variable may not be valid.Andrew Bartlett2007-04-231-2/+0
| | | | | | | It *should* just be NULL from the initialisation above, but I've had this not be the case... Andrew Bartlett
* r21761: - Give more detail on LDAP client library failures (make it clearAndrew Bartlett2007-03-081-1/+1
| | | | | | | | where the error is from) - Make default error string more consistant Andrew Bartlett
* r21760: Try to pin down were some errors are coming from. Ensure we at leastAndrew Bartlett2007-03-081-8/+25
| | | | | | name the module. Andrew Bartlett
* r21736: Fix the smbclient test to do something more interesting with the lastAndrew Bartlett2007-03-071-0/+3
| | | | | | | | | | few authentication tests. Now that the tests correctly 'fail', I was able to fix the credentials subsystem to honour USER and PASSWD. To get --machine-pass working, I needed ldb to always load it's static modules, so I put this in ldb_connect(). Andrew Bartlett
* r21496: A number of ldb control and LDAP changes, surrounding theAndrew Bartlett2007-02-221-5/+442
| | | | | | | | | | | | | | | | 'phantom_root' flag in the search_options control - Add in support for LDB controls to the js layer - Test the behaviour - Implement support for the 'phantom_root' flag in the partitions module - Make the LDAP server set the 'phantom_root' flag in the search_options control - This replaces the global_catalog flag passed down as an opaque pointer - Rework the string-format control parsing function into ldb_parse_control_strings(), returning errors by ldb_errorstring() method, rather than with printf to stderr - Rework some of the ldb_control handling logic Andrew Bartlett
* r20952: when a component is changed we need to rebuild the linearized stringStefan Metzmacher2007-01-221-0/+1
| | | | metze
* r20852: add a function to add a ldb control to a ldb_requestStefan Metzmacher2007-01-171-0/+28
| | | | metze
* r20761: let ldb modules call ldb_set_default_dns()Stefan Metzmacher2007-01-141-1/+1
| | | | metze
* r20731: we need the complex memmove() handling for removing an attribute ↵Stefan Metzmacher2007-01-131-16/+12
| | | | | | only in one place metze
* r20588: handle extended operations in the ldb_next_request() callStefan Metzmacher2007-01-061-0/+3
| | | | metze
* r20583: implement the frontend calls for extended operationsStefan Metzmacher2007-01-061-0/+106
| | | | metze
* r20581: - the ldb modules have explicit hooks for extended operationsStefan Metzmacher2007-01-061-0/+4
| | | | | | | so call them - reorder the request operations first all with explixit hooks metze
* r20462: add functions to handle UTCTime stringsStefan Metzmacher2007-01-021-3/+56
| | | | metze
* r20373: When adding a base to a "" DN, don't precede it with a comma (,)Andrew Bartlett2006-12-281-2/+10
| | | | Andrew Bartlett
* r20317: store references to all important naming contexts.Stefan Metzmacher2006-12-221-13/+45
| | | | | | | add ldb_get_config_basedn(), ldb_get_schema_basedn() and ldb_get_root_basedn() metze
* r20192: I assume a 'break' is the correct thing to do here,Stefan Metzmacher2006-12-151-0/+1
| | | | | | | | simo,tridge: please check this. found by the IBM checker metze
* r20189: remove unused struct elementStefan Metzmacher2006-12-152-3/+0
| | | | metze
* r20188: move back to an default attribute handler and not use the '*' attributeStefan Metzmacher2006-12-151-2/+15
| | | | | | | | | | | | to not conflict with the one that maybe added via the @ATTRIBUTES object this is just to make the test-tdb-feature.sh torture test happy There's still a bug when a attribute is registered multiple time without removing old ldb_schema_attribute instances. But this bug was there before my changes too and was just triggered by my changes metze
* r20184: change ldb_attrib_handler into ldb_schema_attribute, which has a pointerStefan Metzmacher2006-12-154-102/+103
| | | | | | | | | | | | | | | | to a ldb_schema_syntax struct. the default attribute handler is now registered dynamicly as "*" attribute, instead of having its own code path. ldb_schema_attribute's can be added to the ldb_schema given a ldb_schema_syntax struct or the syntax name we may also need to introduce a ldb_schema_matching_rule, and add a pointer to a default ldb_schema_matching_rule in the ldb_schema_syntax. metze
* r20168: start separating attributes and syntaxesStefan Metzmacher2006-12-142-26/+24
| | | | metze
* r20033: Never commit before testingSimo Sorce2006-12-051-3/+6
| | | | | | | Never commit before testing Never commit before testing :-)
* r20032: Add ldb_search_exp_fmt()Simo Sorce2006-12-051-0/+36
| | | | | This functions adds support of a memory context to hook the results to and a printf style exp_fmt partameter to easily build expressions at once.
* r20023: handle <SID=...> <WKGUID=...> dn's also in ldb_dn_new_fmt()Stefan Metzmacher2006-12-031-0/+10
| | | | metze
* r19966: we don't need 2 versions of this functionsStefan Metzmacher2006-11-301-34/+4
| | | | metze
* r19964: make debuging easier and report usefull error messagesStefan Metzmacher2006-11-301-1/+1
| | | | metze
* r19954: allow more special dn's:Stefan Metzmacher2006-11-291-0/+10
| | | | | | | | | | | | this works now against w2k3: bin/ldbedit -U administrator%test -H ldap://w2k3-101/ -b "<GUID=44087590-dd95-435c-adc1-ec20a50807be>" -s base bin/ldbedit -U administrator%test -H ldap://w2k3-101/ -b "<SID=S-1-5-21-769185814-1958994947-1641909093-513>" -s base bin/ldbedit -U administrator%test -H ldap://w2k3-101/ -b "<WKGUID=AB8153B7768811D1ADED00C04FD8D5CD,DC=w2k3,dc=vmnet1,dc=vm,dc=base>" -s base and we should try to implement this in the server too... metze
* r19910: Make better use of our set of talloc utility functionsSimo Sorce2006-11-261-5/+5
|
* r19909: Make this one double as fastSimo Sorce2006-11-261-5/+17
|
* r19907: this function is used a lotSimo Sorce2006-11-261-18/+40
| | | | use a binary search to get the right handler
* r19906: ldb_attr_cmp is used a lotSimo Sorce2006-11-261-11/+0
| | | | remove unneded overhead of a function call
* r19901: Fix a potential NULL dereferenceVolker Lendecke2006-11-251-0/+3
|
* r19888: make it possible to use default attrib handlers from extensionsSimo Sorce2006-11-251-10/+11
| | | | | list more DN attributes as part of samba attribute handlers (nCName moved here)
* r19887: return "" string only if the dn is a valid oneSimo Sorce2006-11-251-5/+9
|
* r19886: ncName is specific to samba, not the generic ldb engineSimo Sorce2006-11-251-1/+0
|
* r19885: special dn's were not casefolded before rev 19831,Stefan Metzmacher2006-11-251-13/+11
| | | | | | | | act like this again... also when we already have a casefoled value we should not call ldb_dn_casefold_internal() metze
* r19871: simplify moreSimo Sorce2006-11-231-17/+7
|
* r19870: Simplify codeSimo Sorce2006-11-231-25/+11
|
* r19869: fix memleaksSimo Sorce2006-11-231-34/+121
|
* r19832: better prototypes for the linearization functions:Simo Sorce2006-11-224-5/+5
| | | | | | | | - ldb_dn_get_linearized returns a const string - ldb_dn_alloc_linearized allocs astring with the linearized dn
* r19831: Big ldb_dn optimization and interfaces enhancement patchSimo Sorce2006-11-227-621/+962
| | | | | | | | | | | | | | | | This patch changes a lot of the code in ldb_dn.c, and also removes and add a number of manipulation functions around. The aim is to avoid validating a dn if not necessary as the validation code is necessarily slow. This is mainly to speed up internal operations where input is not user generated and so we can assume the DNs need no validation. The code is designed to keep the data as a string if possible. The code is not yet 100% perfect, but pass all the tests so far. A memleak is certainly present, I'll work on that next. Simo.
* r19743: merge from samba3:Stefan Metzmacher2006-11-161-1/+0
| | | | | | remove old unused schema module metze
* r19742: fix compiler warningsStefan Metzmacher2006-11-161-4/+8
| | | | metze
* r19740: fix compiler warningStefan Metzmacher2006-11-161-1/+1
| | | | metze
* r19731: Modify the ldb_map infrustructure to always map from requestedAndrew Bartlett2006-11-161-1/+13
| | | | | | | | | | | | | | | | | | | attributes to backend (remote) attributes. We can't do a reverse mapping safely where the remote attribute may be a source for multiple local attributes. (We end up with the wrong attributes returned). In doing this, I've modified the samba3sam.js test to be more realistic, and fixed some failures in the handling of primaryGroupID. I've added a new (private) helper function ldb_msg_remove_element() to avoid a double lookup of the element name. I've also re-formatted many of the function headers, to fit into standard editor widths. Andrew Bartlett
* r19720: - don't pass a pointer reference to ldb_search_default_callback()Stefan Metzmacher2006-11-151-13/+14
| | | | | | | | | | as it's ugly when it free's the callers memory on failure! - only steal the controls on a LDB_REPLY_EXTENDED, LDB_REPLY_DONE and ignore them on LDB_REPLY_ENTRY, LDB_REPLY_REFERRAL as we currently have not way to return them in a ldb_result (we should fix this!) metze
* r19719: don't use 'new' as var name samba3 doesn't like it...Stefan Metzmacher2006-11-151-4/+4
| | | | metze
* r19531: Make struct ldb_dn opaque and local to ldb_dn.cSimo Sorce2006-11-012-32/+89
|
* r19507: Merge my DSO fixes branch. Building Samba's libraries as shared ↵Jelmer Vernooij2006-10-291-3/+12
| | | | | | libraries works again now, by specifying --enable-dso to configure.
* r19490: better to check the return resultSimo Sorce2006-10-251-4/+5
|