Howard Chu
fb3af1ccbd
Merged ber_bvstr and ber_bvstrdup into ber_str2bv.
2001-12-26 10:06:19 +00:00
Howard Chu
d00fe773ae
Fix attrs handling
2001-12-26 09:19:57 +00:00
Howard Chu
e78a0930c8
Fix attrs handling
2001-12-26 08:49:27 +00:00
Howard Chu
ede3abc8c7
Changed search attrs to struct berval **.
...
Use typedefs for all backend functions, to minimize work in future API
updates. (back-*/external.h will never need updating in the future.)
2001-12-26 08:47:04 +00:00
Howard Chu
c7d7c6f18f
Added missing passwd_back_db_config.
2001-12-26 08:32:08 +00:00
Howard Chu
68b1bbb89d
Changed search attrs to struct berval **.
...
Use typedefs for all backend functions, to minimize work in future API
updates. (back-*/external.h will never need updating in the future.)
2001-12-26 08:17:44 +00:00
Howard Chu
65977a0f83
Migrate to dnNormalize
2001-12-26 06:21:23 +00:00
Howard Chu
34214776d1
Minor cleanup
2001-12-26 06:21:06 +00:00
Howard Chu
7685b237b7
Fix unterminated string in previous commit. dnNormalize ought to use an
...
ldap_bv2dn function instead of ldap_str2dn and honor the bv_len's...
2001-12-26 04:51:10 +00:00
Howard Chu
b96645af7d
More struct berval changes, dnNormalize migration...
2001-12-26 04:17:49 +00:00
Kurt Zeilenga
dab28c8773
Fix typo
2001-12-25 19:53:59 +00:00
Kurt Zeilenga
2dd27b0786
More struct berval DNs
2001-12-25 19:48:26 +00:00
Kurt Zeilenga
7431cb9eee
FIx up replog calls, add replog call to bdb passwd
2001-12-25 18:20:35 +00:00
Kurt Zeilenga
e08a10b853
Have replog() use struct berval DNs
2001-12-25 04:09:09 +00:00
Kurt Zeilenga
c3323c31d5
Fix modrdn
2001-12-25 03:47:35 +00:00
Kurt Zeilenga
ae0a17fa4e
Adjust e_name.bv_len on modrdn
2001-12-25 03:03:03 +00:00
Kurt Zeilenga
3336619c80
More "char *" to struct berval DN changes
2001-12-25 02:30:01 +00:00
Kurt Zeilenga
5ee89d6167
Use struct berval DNs for root DN and update DN
2001-12-25 00:05:26 +00:00
Kurt Zeilenga
f443af5a57
Remove unneeded cheats. hyc found/fixed my bug (in slap.h)
2001-12-24 20:42:05 +00:00
Kurt Zeilenga
5ccff70aa3
update comment
...
make tests (0-4) now works! (w/ dnNormalize/dnMatch cheats)
2001-12-24 20:29:59 +00:00
Howard Chu
6654fffb3e
Fix SEGV when no newSuperior is specified
2001-12-24 20:27:00 +00:00
Kurt Zeilenga
5b49e1a9c5
This really should work... but it's no more broken than last commit
2001-12-24 20:20:29 +00:00
Howard Chu
a61b777cdc
Fix uninitialized struct berval* to avoid assert in dnNormalize
2001-12-24 20:12:30 +00:00
Kurt Zeilenga
b735ca3237
Add some cheats to dnNormalize and dnMatch to workaround
...
ava normalization issues.
2001-12-24 20:07:19 +00:00
Howard Chu
3df5c17881
Fix typo in e_ndn macro
2001-12-24 20:03:54 +00:00
Kurt Zeilenga
6441db83c0
Misc cleanup, but doesn't fix tests.
2001-12-24 19:21:42 +00:00
Kurt Zeilenga
54e11f63e5
Missed a dnPretty ber_val NULL...
2001-12-24 18:53:33 +00:00
Pierangelo Masarati
cbe43a8540
more re-engineering; now rdn_attrs() and so are written in terms of ldap_str2rdn; some functions are deprecated
2001-12-24 18:42:51 +00:00
Pierangelo Masarati
e544300b05
back out previous change
2001-12-24 18:39:41 +00:00
Kurt Zeilenga
d047cc854e
Require the struct berval **out argument of dnPretty/dnNormalize
...
point to a NULL pointer, that is assert( *out == NULL ).
Eventually, we'll allow **out to point to a preallocated
struct berval (to avoid unnecessary allocation).
2001-12-24 18:38:20 +00:00
Kurt Zeilenga
d3d4bb9270
Fix up frontend side of modrdn. Need to rework backend side (especially
...
to adjust ber_lens as needed).
2001-12-24 18:02:49 +00:00
Howard Chu
3b8cf82517
Use e_nname.bv_len
2001-12-24 17:52:07 +00:00
Howard Chu
b4b948c37b
e_name.bv_len stuff in entry_decode
2001-12-24 17:37:22 +00:00
Pierangelo Masarati
f0c9590e68
comment for future optimization
2001-12-24 17:27:26 +00:00
Kurt Zeilenga
aac4f1caf5
Basic ename.bv_len work.
2001-12-24 17:24:18 +00:00
Pierangelo Masarati
7aedd4972d
trim spurious e_ndn also from back-meta
2001-12-24 17:24:07 +00:00
Howard Chu
6e3ec13e05
Avoid conflict with e_ndn macro
2001-12-24 17:06:46 +00:00
Kurt Zeilenga
fa30a46446
Fix DN struct berval issue
2001-12-24 17:01:08 +00:00
Kurt Zeilenga
f6085d3f82
Every quick mod to use a struct berval for e_dn/e_ndn. No bv_len yet.
2001-12-24 16:53:47 +00:00
Howard Chu
70194f9ad6
Changed suffix_alias() to use struct berval * in-place.
2001-12-24 16:29:18 +00:00
Pierangelo Masarati
7bf6ec940b
re-engineered some dn related functions with ldap_dn* functions; helpers should be used instead of deprecated functions in code
2001-12-24 15:48:35 +00:00
Howard Chu
9e0ab3da36
Changed Access->a_set_pat and acl->acl_dn_pat to struct berval to eliminate
...
strlen() from acl processing.
2001-12-24 15:43:27 +00:00
Howard Chu
18cd610f2d
op->o_ndn berval fixes for SLAPD_ACI_ENABLED
2001-12-24 15:18:02 +00:00
Howard Chu
2f3399265c
Changed sai_dn, sai_ndn to struct berval. (Affects op->o_dn,o_ndn,
...
conn->c_dn,c_ndn, Access->a_dn_pat)
2001-12-24 15:11:01 +00:00
Howard Chu
9969058a06
Fix typo in berval commit
2001-12-24 13:47:47 +00:00
Kurt Zeilenga
883196d348
Clean up some symbol scoping
2001-12-24 06:36:44 +00:00
Kurt Zeilenga
d0abe6f59f
Misc DN cleanup, no functional changes
2001-12-24 06:00:02 +00:00
Kurt Zeilenga
e701812f27
Make note of deprecated DN routines. Need to write
...
"struct berval" versions
2001-12-24 04:39:15 +00:00
Kurt Zeilenga
914eba1207
Improve error message
2001-12-24 04:03:27 +00:00
Kurt Zeilenga
9d56c59d1b
Minor cleanup, rename ldapava_free_*() routines and
...
don't expose symbols of ava helper routines
2001-12-23 22:46:37 +00:00