summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/common/ldb_dn.c
AgeCommit message (Collapse)AuthorFilesLines
2007-12-21r25630: Allow "NULL" as memory context, for consistency with the rest of the ↵Jelmer Vernooij1-1/+1
code, which also does. (This used to be commit 083b606496308741958bb9fc6b3e50a582857677)
2007-10-10r25215: replace talloc_append_string() with talloc_strdup_append_buffer()Stefan Metzmacher1-14/+6
metze (This used to be commit 8f2db3c130ce85d38f805836a7df039822ede066)
2007-10-10r23798: updated old Temple Place FSF addresses to new URLAndrew Tridgell1-2/+1
(This used to be commit 40c0919aaa9c1b14bbaebb95ecce53eb0380fdbb)
2007-10-10r23795: more v2->v3 conversionAndrew Tridgell1-1/+1
(This used to be commit 84b468b2f8f2dffda89593f816e8bc6a8b6d42ac)
2007-10-10r22696: Make sure this is an ascii charSimo Sorce1-0/+12
spotted by Volker (This used to be commit e24812016f60f506f0df2cb5ba8c2c6987f7da40)
2007-10-10r22694: It seems that AIX 5.3 with XLC has difficulties with <ctype.h>. This isVolker Lendecke1-1/+1
an attempt to work around this: Maybe it helps if we include other stuff first. This raises a question however: Do we want the DN handling to be locale dependent? isalpha() can return different things depending on the current locale. (This used to be commit 75ba82dee052fa5f4141e66e1cb748101aa95d71)
2007-10-10r22681: Fix standalone ldb build when parent directory name != ldb.Jelmer Vernooij1-2/+1
(This used to be commit 1093875d59f1ea9b8bd82277d4f9d8366e584952)
2007-10-10r20952: when a component is changed we need to rebuild the linearized stringStefan Metzmacher1-0/+1
metze (This used to be commit beb816fb78ec4a7816680611af6619740e159424)
2007-10-10r20373: When adding a base to a "" DN, don't precede it with a comma (,)Andrew Bartlett1-2/+10
Andrew Bartlett (This used to be commit ef1ca30180b1b225579a8200b65a4853a135602f)
2007-10-10r20184: change ldb_attrib_handler into ldb_schema_attribute, which has a pointerStefan Metzmacher1-5/+5
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 (This used to be commit b97b8f5dcbce006f005e53ca79df3330e62f117b)
2007-10-10r20023: handle <SID=...> <WKGUID=...> dn's also in ldb_dn_new_fmt()Stefan Metzmacher1-0/+10
metze (This used to be commit 01e3a5080a38c93c4bbf249b03135314b7e0b3f1)
2007-10-10r19954: allow more special dn's:Stefan Metzmacher1-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 (This used to be commit 3c087c89707398d88799367240fe4e6f8b192bb4)
2007-10-10r19910: Make better use of our set of talloc utility functionsSimo Sorce1-5/+5
(This used to be commit b1197dbeebff062b8ea1e8466d436be82b0b61e0)
2007-10-10r19901: Fix a potential NULL dereferenceVolker Lendecke1-0/+3
(This used to be commit 75e6fb9654f10a076ed49b0582b40368e149d30a)
2007-10-10r19887: return "" string only if the dn is a valid oneSimo Sorce1-5/+9
(This used to be commit 056f90798f6d2cea1debc50f31fea3d740c4a837)
2007-10-10r19885: special dn's were not casefolded before rev 19831,Stefan Metzmacher1-13/+11
act like this again... also when we already have a casefoled value we should not call ldb_dn_casefold_internal() metze (This used to be commit cbf4eb16725992bfdfa5a334e0e5547e6df568e6)
2007-10-10r19871: simplify moreSimo Sorce1-17/+7
(This used to be commit e9ddb18c83518703f987bf141807639956612dbf)
2007-10-10r19870: Simplify codeSimo Sorce1-25/+11
(This used to be commit c1737f9a52d9e4d118f969a0953a458188143d0d)
2007-10-10r19869: fix memleaksSimo Sorce1-34/+121
(This used to be commit 3a662a2d985bf801284c5dc1123dec6705e6d092)
2007-10-10r19832: better prototypes for the linearization functions:Simo Sorce1-2/+2
- ldb_dn_get_linearized returns a const string - ldb_dn_alloc_linearized allocs astring with the linearized dn (This used to be commit 3929c086d5d0b3f08b1c4f2f3f9602c3f4a9a4bd)
2007-10-10r19831: Big ldb_dn optimization and interfaces enhancement patchSimo Sorce1-587/+921
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. (This used to be commit a580c871d3784602a9cce32d33419e63c8236e63)
2007-10-10r19719: don't use 'new' as var name samba3 doesn't like it...Stefan Metzmacher1-4/+4
metze (This used to be commit 7a4f46c1c9ec8119db46ffc57d77fcf13ca0c5a8)
2007-10-10r19531: Make struct ldb_dn opaque and local to ldb_dn.cSimo Sorce1-31/+88
(This used to be commit 889fb983ba1cf8a11424a8b3dc3a5ef76e780082)
2007-10-10r19361: added a commentAndrew Tridgell1-0/+3
(This used to be commit 1581babfb5a5bbbfc2706dbec9b37b03fe9a5af6)
2007-10-10r19289: fixed a memory leak in ldb_dn_string_compose()Andrew Tridgell1-2/+4
(This used to be commit 669aa1424c7a931f57856af0cd4a6f6f4a60b823)
2007-10-10r19196: merge from samba3:Stefan Metzmacher1-12/+15
pass always a mem_ctx to functions and a ldb_context where needed metze (This used to be commit 67a6a41ba3af840cd8226de73576a90ecf602caa)
2007-10-10r19188: merge from samba3:Stefan Metzmacher1-2/+3
fix compiler warnings metze (This used to be commit dc139d8715f58b27363266f1426da451907845eb)
2007-10-10r19113: fixed another checker warning.Andrew Tridgell1-0/+1
(This used to be commit d12550af01f8d4c135fbf6f429852c31570ec92b)
2007-10-10r19079: talloc_array can failVolker Lendecke1-0/+1
(This used to be commit 441ad8a45c390f807a6ec5f27d585aad54f3b210)
2007-10-10r19076: ldb_dn_copy_partial can failVolker Lendecke1-0/+1
(This used to be commit 78aa689a74941cd6873a91c429889a4c1d1a6432)
2007-10-10r19075: Fix a potential NULL dereferenceVolker Lendecke1-0/+4
(This used to be commit 84ae80b39bfa49fe7f9fa801d45a79bf04df8aff)
2007-10-10r19068: Fix a potential NULL dereferenceVolker Lendecke1-0/+4
(This used to be commit 2dff8ee8cc8b9faf3fbec46d458d6de214622afc)
2007-10-10r17722: better to use talloc_vasprintf() than vasprintf() directly, as itAndrew Tridgell1-4/+3
depends on less libc functions (This used to be commit a05101d83b06543cd32b08b4dec29d8f6bd27674)
2007-10-10r17579: make ldb build g++ friendlyAndrew Tridgell1-36/+36
(This used to be commit 403cbd335594112e0c58fd68d20f0e3faad7d186)
2007-10-10r16936: Correct comment in this comparison functionAndrew Bartlett1-1/+1
Andrew Bartlett (This used to be commit d64987a2882c70669421b02aee8d75d95ce99bcb)
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-10r16100: Patch from Michael Wood <mwood@icts.uct.ac.za>: s/then/than/ for ↵Gerald Carter1-1/+1
correct grammar (This used to be commit 26a2fa97e4c819e630bc9b50e11c8d5328c7b8c8)
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-10r13333: revert previous commit I will use ldb_caseless_cmp in attrib_handlersSimo Sorce1-1/+1
to correctly support utf8 comparisons add an ldb_attr_Casefold function for attribute names and use it instead of casefold in the right places (This used to be commit 3b4eb2413bbce059dde69f35c03cdc3cc2ba85c5)
2007-10-10r13328: After the attribute name check cleanup it turned up ldb_caseless_cmp()Simo Sorce1-3/+2
was used just in one places and by mistake, as there we should have been using ldb_attr_cmp() Remove ldb_caseless_cmp() ... going on with the cleanup and utf8 compliance effort. Simo. (This used to be commit afda68d7bf655a9145648856d29e6e64b9f21aa3)
2007-10-10r13324: From now on check attribute names obey rfc2251Simo Sorce1-21/+5
Also add a way to provide utf8 compliant functions by registering them with ldb_set_utf8_fns() Next comes code to register samba internal utf8 functions. Simo. (This used to be commit ac9b8a41ffca8e06c5e849d544d3203a665b8e0d)
2007-10-10r12829: fix ldb headers, to not include '<...>' files in .c filesStefan Metzmacher1-3/+1
this helps in getting symbol -fvisibility=hidden (GCC 4 feature) working later. metze (This used to be commit 380938e97f31c7860aed1e73cc0110c6e17b472e)
2007-10-10r12748: Fix wrong handling of separation characters for RDNsSimo Sorce1-5/+15
allow escaped separation chars as part of the attr value of an RDN (This used to be commit 7ba341d6c3745cd99c4c79933f9bd54f41e12a9c)
2007-10-10r12733: Merge ldap/ldb controls into main treeSimo Sorce1-0/+33
There's still lot of work to do but the patch is stable enough to be pushed into the main samba4 tree. Simo. (This used to be commit 77125feaff252cab44d26593093a9c211c846ce8)
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-10r10956: Tridge thought some comments might be a good idea :-)Andrew Bartlett1-2/+14
Andrew Bartlett (This used to be commit c0d6126effdf31e0a107c06a400973c731e0e263)
2007-10-10r10953: Add a new function to form a canonicalName out of a DN to ldb_dn.cAndrew Bartlett1-0/+55
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-10r10918: - fixed standalone ldb buildAndrew Tridgell1-4/+5
- added note about allowedAttributesEffective (will be needed for mmc) - fixed some more ldb warnings (This used to be commit e9e4d81b6976549db8a7668572a5da466fbec4a9)