Commit Graph

2800 Commits

Author SHA1 Message Date
Howard Chu
e75627a7a7 Don't need to malloc/free ma_rule_text 2002-01-06 06:21:11 +00:00
Howard Chu
ec46a2f33a Use 'm' ber_scanf format where convenient 2002-01-06 06:11:01 +00:00
Kurt Zeilenga
645ae7a22f Hide select matching rules from published schema 2002-01-06 05:29:04 +00:00
Kurt Zeilenga
c7a0c436d2 Don't split DESC over multiple lines 2002-01-06 05:27:03 +00:00
Kurt Zeilenga
4b3e7fa668 Add LDAP/X.500 subentry schema (draft-zeilenga-ldap-subentry-xx.txt) 2002-01-06 04:59:26 +00:00
Howard Chu
ce7d8d26f2 Changed conn->c_cdn to struct berval. 2002-01-06 03:26:09 +00:00
Kurt Zeilenga
d218a5ed5c Add SLAP_MALLOC() and friends.
Intended to be used instead of ch_malloc() and friends.
See comment.
2002-01-06 01:34:53 +00:00
Kurt Zeilenga
eaf3264184 Add some critical control checks. 2002-01-06 00:36:55 +00:00
Kurt Zeilenga
4aae03ef24 Remove lint. 2002-01-06 00:35:41 +00:00
Kurt Zeilenga
95082964fc Fix compile errors 2002-01-06 00:35:01 +00:00
Kurt Zeilenga
c83b406fdc Fix compile errors 2002-01-05 19:36:41 +00:00
Pierangelo Masarati
e5beebd6a3 more cleanup 2002-01-05 18:31:38 +00:00
Pierangelo Masarati
d0261ee534 leftover ber_bvdup eliminated; rewritten ber_bvdup in terms of ber_dupbv; eliminated wrapper macro; other ber_* improvements 2002-01-05 17:49:59 +00:00
Pierangelo Masarati
a744ca2be3 fix logs 2002-01-05 16:53:08 +00:00
Pierangelo Masarati
ca60d05dd1 fix malformed test 2002-01-05 15:44:08 +00:00
Howard Chu
05b9ddc15f Fix uninitialized pointers 2002-01-05 13:25:04 +00:00
Howard Chu
225fa32d8f BVarray fixes for ldap_dnattr_rewrite 2002-01-05 11:41:23 +00:00
Howard Chu
5fd983725e Fix at_destroy free of slap_schema.si_at_undefined (when it's NULL) 2002-01-05 11:41:03 +00:00
Pierangelo Masarati
f3b61d87b7 fix BVarray 2002-01-05 09:58:19 +00:00
Kurt Zeilenga
add5119c1a Cleanup 2002-01-04 23:49:58 +00:00
Kurt Zeilenga
0e2af54a3f Update copyright statements 2002-01-04 21:17:25 +00:00
Pierangelo Masarati
b28c3953d4 more fixes/updates 2002-01-04 19:23:10 +00:00
Pierangelo Masarati
847f0f5b8f misc fix/improvements 2002-01-04 19:11:55 +00:00
Pierangelo Masarati
cdc1e149ca fix attribute mapping bug 2002-01-04 18:03:43 +00:00
Pierangelo Masarati
4f4f5dc93f move mapping in a separate file 2002-01-04 18:01:56 +00:00
Pierangelo Masarati
10352caec1 fix rewrite iteration 2002-01-04 17:51:46 +00:00
Pierangelo Masarati
bd535be5cb hide mapping initialization 2002-01-04 17:51:20 +00:00
Pierangelo Masarati
d3dae8d1cd more cleanup; doesn't work (fails on ldap_result, select returns -1) 2002-01-04 15:26:45 +00:00
Howard Chu
05b2332caa struct berval fixes, fix memory leak in ldap_send_entry 2002-01-04 00:49:34 +00:00
Kurt Zeilenga
f5ab06738b All empty IA5 and Printable strings, but not Directory strings. 2002-01-03 20:03:27 +00:00
Kurt Zeilenga
32b764a9b0 Remove lint 2002-01-03 20:02:49 +00:00
Pierangelo Masarati
db71bb1c4d lots of migration to struct berval; unfortunately it seems to be broken 2002-01-03 16:29:38 +00:00
Pierangelo Masarati
3e230c7f91 trivial fixes 2002-01-03 16:28:21 +00:00
Kurt Zeilenga
33e6f6e65c Cleanup (not)found logic 2002-01-03 08:03:22 +00:00
Kurt Zeilenga
d14579589e Indicate support for True (&) and False (|) filters 2002-01-03 08:02:17 +00:00
Howard Chu
9ad0c5a2e5 Fix from Jonghyuk Choi jongchoi@us.ibm.com; return 0 IDs when bdb_key_read
returns DB_NOTFOUND.
2002-01-03 05:53:27 +00:00
Howard Chu
265a03c7bd Changed AttributeName back into an array instead of a linked list 2002-01-03 05:41:50 +00:00
Howard Chu
bcdfdb968f Changed AttributeName back into an array instead of a linked list.
Fixed bug in do_search eating up controls.
2002-01-03 05:38:26 +00:00
Howard Chu
029306a5be Use ldap_queue.h instead of <ac/queue.h> 2002-01-03 00:12:46 +00:00
Howard Chu
013b3a9f3d Minor cleanup 2002-01-02 23:26:20 +00:00
Howard Chu
38fea082ad Remove unused int i, j 2002-01-02 22:57:57 +00:00
Howard Chu
1a8543da6d Fix for attr_merge 2002-01-02 22:46:10 +00:00
Kurt Zeilenga
2a799ef855 Fix yet another stupid error... 2002-01-02 19:06:49 +00:00
Kurt Zeilenga
b905b543e0 Additional error checking + misc cleanup 2002-01-02 18:48:10 +00:00
Pierangelo Masarati
c8afe173ba more cleanup 2002-01-02 18:14:29 +00:00
Pierangelo Masarati
09348fcd85 minor fixes 2002-01-02 17:56:48 +00:00
Kurt Zeilenga
763c0de59b Rework filter code
Misc cleanup / lint removal
2002-01-02 17:06:56 +00:00
Kurt Zeilenga
f6be5028f0 cleanup 2002-01-02 17:05:12 +00:00
Kurt Zeilenga
c603bc3946 use sizeof instead of strlen/hardcoded-consts 2002-01-02 17:04:09 +00:00
Kurt Zeilenga
af121f0489 Remove lint 2002-01-02 17:02:30 +00:00
Kurt Zeilenga
c999444f40 Cleanup 2002-01-02 17:01:44 +00:00
Kurt Zeilenga
3adff99b47 Zap unbind and abandon 2002-01-02 17:00:54 +00:00
Kurt Zeilenga
da6928b437 use malloc not calloc 2002-01-02 17:00:21 +00:00
Kurt Zeilenga
38d800637f Use AC_MEMCPY instead of memcpy
Use sizeof instead of strlen
2002-01-02 16:58:37 +00:00
Kurt Zeilenga
f418f6247f use sizeof not strlen 2002-01-02 16:57:30 +00:00
Howard Chu
4aa2a28692 Changed struct berval ** to BVarray 2002-01-02 13:28:10 +00:00
Howard Chu
f59fc68beb Changed struct berval ** to BVarray 2002-01-02 13:09:28 +00:00
Howard Chu
b15eebf50b Minor cleanup. bvarray_add should return success/fail, like
ber_bvecadd does.
2002-01-02 13:03:46 +00:00
Howard Chu
17a36b757c Changed struct berval ** to BVarray 2002-01-02 13:03:06 +00:00
Howard Chu
ee98e6938c Fix memory leak of Mod.sml_type 2002-01-02 12:34:35 +00:00
Howard Chu
a18e437356 Fix entry_decode 2002-01-02 11:52:06 +00:00
Howard Chu
f52cc9bab5 Change struct berval ** to BVarray 2002-01-02 11:00:36 +00:00
Howard Chu
ce9ac6d273 Removed unused unbind stuff 2002-01-02 04:42:09 +00:00
Howard Chu
78c6bd9d23 Removed unused unbind stuff 2002-01-02 04:32:34 +00:00
Howard Chu
b2809cb330 Fix dnParent to return "" for root 2002-01-01 13:32:10 +00:00
Howard Chu
affa8f5a65 More struct berval conversions 2002-01-01 13:31:20 +00:00
Howard Chu
dc4fe01758 Remove abandon cruft 2002-01-01 12:23:02 +00:00
Howard Chu
de97928160 Remove abandon cruft 2002-01-01 11:38:30 +00:00
Howard Chu
ab713881b9 Cleanup 2002-01-01 09:49:23 +00:00
Howard Chu
fdc4dec350 Use ldap_str2rdn 2002-01-01 09:41:10 +00:00
Howard Chu
6fa6ac6676 Fix dnValidate 2002-01-01 09:40:57 +00:00
Howard Chu
1a7d129585 Use ldap_str2rdn instead of rdn_attr 2002-01-01 09:18:34 +00:00
Howard Chu
5b83bbc681 Fix previous commit 2002-01-01 04:44:59 +00:00
Howard Chu
3d8d9344dd Optimize ISSPACE checks in UTF8StringNormalize 2002-01-01 04:43:03 +00:00
Pierangelo Masarati
7d12cbe341 my compiler complains ... 2001-12-31 16:10:39 +00:00
Howard Chu
c962743263 Free any ADs attached to the undefined attribute type 2001-12-31 14:47:41 +00:00
Howard Chu
d9fec6d815 More for ad_inlist 2001-12-31 14:47:20 +00:00
Howard Chu
743c402265 Changed search attrs from struct berval ** to AttributeName * 2001-12-31 11:35:52 +00:00
Howard Chu
b92710e3a5 Minor cleanup 2001-12-31 06:44:36 +00:00
Howard Chu
74cd06efdd Fix previous commit 2001-12-31 06:09:29 +00:00
Howard Chu
9383bf3265 Use ber_free_buf 2001-12-31 06:02:35 +00:00
Howard Chu
e6d4c7dbcc Added oidm_destroy 2001-12-31 04:35:02 +00:00
Howard Chu
10961151ef Use queue-compat for Connection->c_ops,c_pending_ops 2001-12-31 04:08:29 +00:00
Howard Chu
07b4ad7fa2 Use dnIsSuffix 2001-12-30 10:47:28 +00:00
Howard Chu
776ce133e9 More str2rdn tweaks 2001-12-30 09:42:58 +00:00
Howard Chu
5d28b4555e Reorganize LDAPAVA allocation layout 2001-12-30 06:56:57 +00:00
Howard Chu
1f8cf93db8 One more uninit 2001-12-30 00:38:44 +00:00
Howard Chu
c5529b489b fix uninitialized vars 2001-12-30 00:24:44 +00:00
Howard Chu
7ffc723c40 Cleanup, fix uninitialized vars 2001-12-30 00:14:45 +00:00
Howard Chu
f7c1ef4398 More ava fixups 2001-12-29 15:24:53 +00:00
Pierangelo Masarati
7b8c4c3b50 fix some ava bugs 2001-12-29 15:13:24 +00:00
Howard Chu
185ff129b5 Change struct berval * to struct berval in various structures 2001-12-29 15:01:10 +00:00
Pierangelo Masarati
6d046b1681 fix rewrite stuff 2001-12-29 14:18:31 +00:00
Howard Chu
a191392e2e Changed LDAP_AVA struct berval * to struct berval. 2001-12-29 10:35:24 +00:00
Pierangelo Masarati
3930a390e0 cleanup 2001-12-29 10:30:23 +00:00
Howard Chu
dd59babf43 More cleanup 2001-12-29 10:25:19 +00:00
Howard Chu
68daf5bee9 Misc cleanup 2001-12-29 05:44:37 +00:00
Howard Chu
975a5e9a24 Added dnPretty2/dnNormalize2 using preallocated destination berval 2001-12-29 04:48:00 +00:00
Howard Chu
40dc0aa329 Silence warning 2001-12-29 02:56:27 +00:00
Howard Chu
c4b432cb3f Fix newSuperior handling. Back out previous commit. 2001-12-29 02:56:08 +00:00
Pierangelo Masarati
04ce28cf48 a couple of comments; will require special DN handling ... 2001-12-28 18:18:16 +00:00
Pierangelo Masarati
1a349907f3 cached entries are deleted if volatile; small improvements 2001-12-28 15:58:51 +00:00
Pierangelo Masarati
c8335e7d14 strengthen previous commit 2001-12-28 15:56:18 +00:00
Pierangelo Masarati
9dab474fa4 fix realloc bug 2001-12-28 15:28:10 +00:00
Pierangelo Masarati
cd8eb327d6 more exploitation of efficient parsing 2001-12-28 15:13:16 +00:00
Pierangelo Masarati
f2a80ff827 fix acl_dn_pat bervalization 2001-12-28 14:47:26 +00:00
Pierangelo Masarati
2f3f7c6765 ldap_str2rdn() can parse without allocating a LDAPRDN* (not very clean, though); used by dn_rdnlen 2001-12-28 12:50:48 +00:00
Howard Chu
92c6c9c25d Misc berval stuff. 2001-12-28 11:45:25 +00:00
Howard Chu
65636e0855 Changed dnExtractRdn to use a provided berval instead of allocating one.
Use ldap_dn2bv and ldap_rdn2bv instead of the *2str versions.
2001-12-28 10:04:53 +00:00
Howard Chu
514f605ef5 Fix modrdn newSuperior checks 2001-12-28 09:48:52 +00:00
Howard Chu
d6a37432bd Changed dn_rdn/dn_rdnlen to struct berval 2001-12-28 08:38:24 +00:00
Howard Chu
ef62c618d7 Fix previous commit 2001-12-28 08:01:01 +00:00
Howard Chu
0039cb2a37 More dnPrettyNormal 2001-12-28 07:58:54 +00:00
Kurt Zeilenga
699a092967 More dn_normalize -> dnNormalize changes 2001-12-28 07:41:52 +00:00
Kurt Zeilenga
27f42bba62 More dn_normalize() -> dnNormalize() changes 2001-12-28 07:30:34 +00:00
Howard Chu
292c575c1f Added dnPrettyNormal, do both Pretty and Normalize at once to save
some ldap_str2dn overhead.
2001-12-28 07:27:15 +00:00
Kurt Zeilenga
4810c8c255 dn_normalize -> dnNormalize 2001-12-28 07:09:12 +00:00
Howard Chu
6b413395fd More struct beral conversion 2001-12-28 04:20:08 +00:00
Kurt Zeilenga
b17572c7d3 cleanup 2001-12-27 23:01:09 +00:00
Pierangelo Masarati
cd06dac298 :) 2001-12-27 18:10:25 +00:00
Kurt Zeilenga
cefce9c965 dnExtractRDN should take a struct berval DN. 2001-12-27 17:17:01 +00:00
Pierangelo Masarati
0bff9e6eb7 struct bervals for DN; fix in send children 2001-12-27 15:16:12 +00:00
Pierangelo Masarati
70e7d58c7d small improvement and prototyping 2001-12-27 15:15:30 +00:00
Pierangelo Masarati
02153708a0 conversion to berval DN 2001-12-27 12:17:54 +00:00
Pierangelo Masarati
7d63865e9f group and attribute conversion to berval DN 2001-12-27 12:17:28 +00:00
Pierangelo Masarati
bc68b6faa7 matched_dn may be null 2001-12-27 12:16:58 +00:00
Howard Chu
102cb93220 Fix memory leak in str2entry 2001-12-27 10:25:50 +00:00
Kurt Zeilenga
cddf7e0e00 More struct berval DN changes
decrease dependency on dn_validate/dn_normalize
2001-12-27 07:13:13 +00:00
Kurt Zeilenga
f9c2dc3701 Clean up a few globals 2001-12-27 02:03:57 +00:00
Howard Chu
ef31250591 More struct berval fixes 2001-12-27 01:38:15 +00:00
Howard Chu
0e5e2a95fd More struct berval fixes for modrdn 2001-12-27 01:10:52 +00:00
Howard Chu
3e826ae1c7 More struct berval fixes for modrdn 2001-12-27 00:58:14 +00:00
Kurt Zeilenga
b503ca65ee Misc cleanup 2001-12-27 00:31:55 +00:00
Kurt Zeilenga
b144879650 Quick struct berval DN support for defer alias API.
Underlying code needs work.
2001-12-27 00:26:59 +00:00
Kurt Zeilenga
3a8f99a24d add group.c 2001-12-27 00:18:09 +00:00
Kurt Zeilenga
f2eadedd5f Quick patch to support struct berval dn2entry changes 2001-12-27 00:10:44 +00:00
Kurt Zeilenga
467213affd Update groups to use struct berval DNs. 2001-12-26 23:49:19 +00:00
Kurt Zeilenga
a553a03586 More struct berval DNs changes 2001-12-26 23:43:28 +00:00
Howard Chu
e8fa25a215 Changed Filter.f_dn to struct berval* 2001-12-26 23:37:59 +00:00
Kurt Zeilenga
ef7a99ff99 Additional struct berval DN changes... 2001-12-26 23:26:55 +00:00
Howard Chu
66dc664930 Some more (incomplete) struct berval conversion 2001-12-26 23:26:17 +00:00
Kurt Zeilenga
93fb01e2f0 Fix modrdn and other misc cleanup 2001-12-26 23:03:36 +00:00
Kurt Zeilenga
d9d636f00c Update to new API (struct berval DNs) 2001-12-26 22:59:28 +00:00
Kurt Zeilenga
a3e6048359 Update to new struct berval DN API 2001-12-26 22:53:54 +00:00
Kurt Zeilenga
e0b83b3096 Fix syntax errors caused by struct berval changes... 2001-12-26 21:25:04 +00:00
Kurt Zeilenga
21cecb3831 Update referral handling to use struct berval DNs. 2001-12-26 20:59:24 +00:00
Pierangelo Masarati
f6deebfe6b not needed any longer 2001-12-26 20:53:49 +00:00
Pierangelo Masarati
e2fdaed3c7 some char* to berval fixes 2001-12-26 20:47:41 +00:00
Kurt Zeilenga
bd0135ccb4 Move search, modify, and modrdn APIs to struct berval DNs.
Much clean up is needed.
2001-12-26 19:50:40 +00:00
Kurt Zeilenga
7195dad7c2 Zap configinfo and cleanup unused defaults 2001-12-26 19:10:13 +00:00