Pierangelo Masarati
83fc428a44
make sure the attribute exists
2005-01-08 09:59:53 +00:00
Pierangelo Masarati
9d5d9cc2ec
fix mix memory issues and cleanup
2005-01-08 09:59:16 +00:00
Pierangelo Masarati
e5eaef6248
fix previous commit
2005-01-08 09:51:29 +00:00
Pierangelo Masarati
5422345e55
major namespace cleanup & minor fixes
2005-01-08 09:20:54 +00:00
Pierangelo Masarati
4d8267595f
retry on ldap_result() with a timeout
2005-01-08 09:19:51 +00:00
Pierangelo Masarati
4b4bdc6bf6
...but rather here: GLUE entries would remain such until the server was restarted
2005-01-08 09:13:16 +00:00
Pierangelo Masarati
8cfda61cb4
cosmetic changes (the problem was not there)
2005-01-08 09:12:35 +00:00
Pierangelo Masarati
a4a9d9df72
beware of URIs that are not parsed or rebuilt successfully
2005-01-08 09:11:53 +00:00
Kurt Zeilenga
1c5d78d8dd
Add "disclose" and "manage" ACL levels (but no meat).
...
Disclose permission intended to be used for "disclose on error"
(as in our present "none"), none being "don't disclose on error".
Manage permission is intended to be used to allow DSA IT management
(e.g., changing entryCSNs, structuralObjectClass, etc.).
2005-01-08 05:26:18 +00:00
Kurt Zeilenga
1ad97bf656
Cleanup
2005-01-08 05:25:58 +00:00
Kurt Zeilenga
5593d17582
s/RFC2459/RFC3280/
2005-01-07 18:14:49 +00:00
Kurt Zeilenga
c72452dce0
Add X.520(4th)'s pseudonym
2005-01-07 18:11:05 +00:00
Pierangelo Masarati
f40527ef49
fix ACL value checking for bind (ITS#3446)
2005-01-07 13:57:16 +00:00
Pierangelo Masarati
6f2ffa30ed
fix ACL value checking for bind (ITS#3446)
2005-01-07 13:50:38 +00:00
Pierangelo Masarati
60a1ae56e4
fix value match
2005-01-07 13:37:22 +00:00
Pierangelo Masarati
845cc3d6ee
revert unintended commit
2005-01-05 16:25:12 +00:00
Pierangelo Masarati
f5936eb7fc
minor naming cleanup; improvements to DN mapping layer; major docs update
2005-01-05 16:23:00 +00:00
Pierangelo Masarati
c1e4eeb23b
fix max arg number for limits
2005-01-03 18:20:37 +00:00
Pierangelo Masarati
2ed3625a13
fix group limits when objectClass/attribute are provided
2005-01-03 18:09:03 +00:00
Pierangelo Masarati
edc9b936d0
mostly copyright cleanup; removal of unnecessary headers
2005-01-03 10:51:59 +00:00
Kurt Zeilenga
dc0eacd40b
Happy New Year!
2005-01-01 20:49:32 +00:00
Kurt Zeilenga
4b0a9be3b5
More cr statements
2005-01-01 20:43:42 +00:00
Kurt Zeilenga
477e1309d1
Update notice.
2005-01-01 20:38:40 +00:00
Pierangelo Masarati
642f7aed50
apply patches 1,2,3,5,8 (with changes) from ITS#3432)
2005-01-01 16:21:55 +00:00
Pierangelo Masarati
8ec78171d3
trim comment
2005-01-01 16:14:40 +00:00
Pierangelo Masarati
a8547f5945
fix comment
2005-01-01 16:14:11 +00:00
Pierangelo Masarati
9fbc616ac9
cleanup
2005-01-01 16:13:25 +00:00
Pierangelo Masarati
83dc46d1bf
set LDAPURLDesc lud_scope to LDAP_SCOPE_DEFAULT if set to LDAP_SCOPE_BASE, so no trailing '??base' is added to referrals...
2005-01-01 16:12:09 +00:00
Pierangelo Masarati
250c096713
rework internal handling of strings to minimize temporary allocation; impacts rewrite() and rewrite_session() behavior in case of no rewriting; set LDAPURLDesc lud_scope to LDAP_SCOPE_DEFAULT if set to LDAP_SCOPE_BASE, so no trailing '??base' is added to referrals...
2005-01-01 16:11:38 +00:00
Pierangelo Masarati
52b878dcc0
rework internal handling of strings to minimize temporary allocation; impacts rewrite() and rewrite_session() behavior in case of no rewriting
2005-01-01 16:10:25 +00:00
Kurt Zeilenga
c9156d7995
cleanup
2004-12-31 12:02:35 +00:00
Kurt Zeilenga
3ea0f0cd0b
Move test.schema to tests/data
2004-12-31 04:32:49 +00:00
Kurt Zeilenga
951159447b
Cleanup
2004-12-30 19:15:52 +00:00
Pierangelo Masarati
f1427fd871
remap compare attribute; fix erroneous pointers; minor cleanup
2004-12-30 17:46:38 +00:00
Pierangelo Masarati
ba6ac023ad
works now
2004-12-30 17:45:07 +00:00
Pierangelo Masarati
7b6d707d92
TODO: rewrite/remap the newRDN and related stuff both in back-meta and in rwm overlay
2004-12-30 15:06:58 +00:00
Pierangelo Masarati
bf2653ef8b
use normalized new superior
2004-12-30 14:49:30 +00:00
Pierangelo Masarati
889b20e358
fix error return when there's no write access to naming attributes (ITS#3450)
2004-12-29 13:45:16 +00:00
Pierangelo Masarati
4b8e57e11f
rework operations in a table-driven manner; better exception handling
2004-12-29 12:31:06 +00:00
Pierangelo Masarati
564d1a6aff
fix previous commit (for compilers that require at least one statement after a label)
2004-12-28 22:48:43 +00:00
Kurt Zeilenga
4a618959bb
PROTOS fix
2004-12-28 19:05:52 +00:00
Pierangelo Masarati
7a1537c640
list permissive in supported controls (ITS#3453)
2004-12-28 10:54:49 +00:00
Pierangelo Masarati
7198e9e4b9
fix typos leading to memory issues
2004-12-23 10:43:58 +00:00
Sang Seok Lim
263b8e72d5
Bug fix
...
support for multi-values attribute in Component Matching
2004-12-23 05:44:52 +00:00
Sang Seok Lim
65026f4300
Adjusting an initial buffer size for x509Certificate
2004-12-22 01:24:12 +00:00
Sang Seok Lim
e3ab329d4e
Fixing bug in extensible filter indexing
2004-12-22 01:23:27 +00:00
Sang Seok Lim
79d9ef9c87
Buf size adjustment
2004-12-21 04:46:44 +00:00
Sang Seok Lim
94ed6b410d
Cleanup unused fields of ComponentDesc
2004-12-21 04:46:21 +00:00
Jong Hyuk Choi
706e7f819a
misc cleanup
2004-12-20 22:07:17 +00:00
Jong Hyuk Choi
35c19ef342
misc fix for the component indexing commit
2004-12-20 20:28:30 +00:00
Sang Seok Lim
ccd3acc98e
return value mising
2004-12-20 04:48:16 +00:00
Sang Seok Lim
28a967584d
Component Indexing support for BDB
...
- only for equality matching
- only components of ASN.1 types used in an X.509 certificate can be indexed
(composite types except for RDN and DN are not supported yet)
- how to use
index [attribute name].[component reference] eq
Ex)
index userCertificate eq
index userCertificate.toBeSigned.issuer.rdnSequence eq
index userCertificate.toBeSigned.serialNumber eq
index userCertificate.toBeSigned.version eq
2004-12-20 03:31:44 +00:00
Howard Chu
b3dfae907f
Remove obsolete comment
2004-12-17 10:24:54 +00:00
Howard Chu
a2a1ffb05d
Revert previous, unnecessary
2004-12-17 09:48:26 +00:00
Howard Chu
090270e965
Use of bzero is not portable
2004-12-16 19:52:38 +00:00
Jong Hyuk Choi
238f6333d2
ITS#3445
2004-12-16 15:59:35 +00:00
Howard Chu
3c0ee263b5
Move mkdir def. It should really go somewhere else...
2004-12-16 15:41:49 +00:00
Howard Chu
8d4281d843
ITS#3443 fix shutdown test
2004-12-16 13:48:36 +00:00
Jong Hyuk Choi
5162c4477b
adaptive caching code
2004-12-14 17:25:35 +00:00
Jong Hyuk Choi
273052b573
adaptive caching implementation
2004-12-14 17:22:22 +00:00
Jong Hyuk Choi
d6410c9207
zone invalidation/locking implementation
2004-12-14 03:51:09 +00:00
Sang Seok Lim
3492452a5b
1) <select> and <content> type component reference support
...
2) attribute aliasing support
- x509CertificateIssuer
- x509CertificateSerial
- x509CertificateIssuerAndIssuer
3) AuthorityKeyIdentifier support(one of certificate extension)
4) Misc. improvement
- integrate OID and its decoder mapping table
- normalize and validate the values of both component asserions and
extracted components
5) Misc. bug fix
2004-12-13 16:26:58 +00:00
Pierangelo Masarati
c90c9f3689
don't try to send results on abandon (ITS#3434)
2004-12-12 23:23:00 +00:00
Howard Chu
4ea68d5e8d
Fix playlog uninit'd fields
2004-12-12 07:00:58 +00:00
Howard Chu
edde8c99d8
Fix ITS#3425, use less restrictive search filter when getting info about
...
an old entry that must be deleted.
2004-12-12 06:09:02 +00:00
Pierangelo Masarati
5a920206dd
more cleanup
2004-12-11 18:36:31 +00:00
Pierangelo Masarati
6fdb803bde
cleanup
2004-12-11 18:04:38 +00:00
Pierangelo Masarati
2f5e17d056
improve usability of global ovrlays for write operations; may need to anticipate SLAPI accordingly. More work needed for add (overlays need to understand they're global and call slap_mods2entry() explicitly)
2004-12-11 17:48:15 +00:00
Pierangelo Masarati
57c4f45977
work out an issue with chk_referrals and back-relay/rwm; this looks like the best compromise; minor cleanup
2004-12-11 17:37:21 +00:00
Pierangelo Masarati
ed0949c7e7
work out an issue with chk_referrals and back-relay/rwm; this looks like the best compromise
2004-12-11 17:36:25 +00:00
Jong Hyuk Choi
7e310a62d8
data struct for zone allocator
2004-12-11 17:16:58 +00:00
Pierangelo Masarati
fa4918ec1e
(temporary?) fix to ITS#3434
2004-12-11 16:28:45 +00:00
Pierangelo Masarati
bd166fbcb8
rework fix for NULL be_pcl_mutexp
2004-12-11 15:44:30 +00:00
Pierangelo Masarati
b498a9222a
better fix to ITS#3433
2004-12-11 15:41:50 +00:00
Pierangelo Masarati
0fe40e4ebd
temporarily work around ITS#3433; need to understand why it happens and how to fix it correctly
2004-12-11 14:06:21 +00:00
Pierangelo Masarati
fe30850765
required by global overlay write funcs...
2004-12-11 12:53:47 +00:00
Howard Chu
73bab2b619
Moved cookie validation into slap_parse_sync_cookie so consumer uses it too
2004-12-10 03:18:33 +00:00
Howard Chu
ccdbb52266
Don't reject invalid cookies, just ignore them. partially revert prev.
2004-12-10 02:51:34 +00:00
Howard Chu
9a6e040373
Fix, don't record psearch until after it has been validated
2004-12-10 01:50:16 +00:00
Howard Chu
480394acef
Fix abandon, only drop our cloned ops, not real frontend ops
2004-12-10 01:35:34 +00:00
Pierangelo Masarati
d3210693d2
minor cleanup
2004-12-09 23:11:08 +00:00
Jong Hyuk Choi
10f8eae366
updated zone tree structure; added debug info
2004-12-09 22:32:19 +00:00
Howard Chu
19abba6cc2
Fix abandon processing
2004-12-09 22:21:26 +00:00
Howard Chu
948fa42499
Fix prev commit
2004-12-09 21:49:24 +00:00
Howard Chu
423c53d267
Add fe_op_abandon, call it in connection_abandon()
2004-12-09 21:17:29 +00:00
Howard Chu
dced3cca04
Fix typo in prev commit
2004-12-09 21:16:16 +00:00
Howard Chu
dc7ec5c6db
Fix delete/refresh switch
2004-12-09 20:30:48 +00:00
Howard Chu
41aaaf0b8d
Persist mode fixes
2004-12-09 19:52:30 +00:00
Jong Hyuk Choi
c88afd1e17
include zn_malloc.c
2004-12-09 17:35:05 +00:00
Jong Hyuk Choi
670e418064
minor cleanup
2004-12-09 16:43:36 +00:00
Jong Hyuk Choi
10115c2f18
zone-based memory allocator for adaptive caching
2004-12-09 16:38:25 +00:00
Howard Chu
cf137fc9ef
Fix 1.48 change
2004-12-09 09:20:11 +00:00
Howard Chu
c83a74f4f3
Add better validation of received cookie csn
2004-12-09 08:49:54 +00:00
Howard Chu
4b736945be
A better approach for detach_op
2004-12-09 08:28:12 +00:00
Howard Chu
bbe93b5141
ITS#3426, copy group ACL cache to saved Op
2004-12-09 08:14:57 +00:00
Howard Chu
72490da301
Fix ITS#3424
2004-12-08 20:55:35 +00:00
Pierangelo Masarati
989cba9de5
cleanup; add entryCSN
2004-12-08 19:40:46 +00:00
Pierangelo Masarati
10ce37aa31
fix schema (1.3.6.1.4.1.4203.666.3.13 for 'monitoredObject' was already assigned to 'lastmod')
2004-12-08 19:21:37 +00:00
Pierangelo Masarati
ccc54a2994
- consistently honor multiple referrals
...
- return those that failed as referrals
- fix handling of some operational attributes
- fix URI rebuilding (use default scope)
- make copies of o_req_dn/o_req_ndn in case other overlays muck with them
2004-12-08 19:14:57 +00:00
Pierangelo Masarati
fefa59059d
minor cleanup
2004-12-08 19:11:27 +00:00
Pierangelo Masarati
80c2bb5003
clarify why we don't accept scheme other than ldap:// in authz-regexps
2004-12-08 19:09:54 +00:00
Pierangelo Masarati
cad0d2b705
make sure global overlays don't use ora_e after the lock is released
2004-12-08 19:08:06 +00:00
Pierangelo Masarati
24a3f59e53
use pre-formatted log string in configure; note the failure reason for DN syntax checks
2004-12-08 19:07:24 +00:00
Pierangelo Masarati
af7079d32b
declare oc_bvfind_undef()
2004-12-08 19:06:10 +00:00
Jong Hyuk Choi
4984e157b1
misc cleanup
2004-12-08 08:12:15 +00:00
Howard Chu
97d7bdf0f4
ITS#3423 implement delete for ID sets
2004-12-08 04:47:29 +00:00
Howard Chu
0eab783e6a
ITS#3422, restore original select() behavior
2004-12-08 03:47:48 +00:00
Howard Chu
b8c6727dc9
Fix playlog search
2004-12-08 02:05:50 +00:00
Howard Chu
8bad70d957
Added sessionlog support. consumer needs work...
2004-12-08 00:47:24 +00:00
Howard Chu
99f2d0b49b
Let slap_get_commit_csn return the current CSN as well
2004-12-08 00:46:14 +00:00
Howard Chu
33bb06475b
Fix findpresent, include user's filter
2004-12-07 18:52:55 +00:00
Kurt Zeilenga
d616bd4ff8
cleanup
2004-12-07 18:40:47 +00:00
Howard Chu
d3d73a0b96
Delete unused slap_build_syncUUID_set()
2004-12-07 18:29:21 +00:00
Howard Chu
4ae3efbdd7
Rearrange shortcut check for context with no changes
2004-12-07 10:43:48 +00:00
Howard Chu
c14cf9c7c8
Preallocate syncuuid set instead of realloc/freeing
2004-12-07 10:05:24 +00:00
Pierangelo Masarati
f3a959970e
hardcode "uid" into slapd & improve previous commit
2004-12-07 10:01:48 +00:00
Howard Chu
b70d375964
Fix ITS#3420
2004-12-07 08:48:28 +00:00
Howard Chu
bc09291b81
restore code in search_cleanup to free ctrls
2004-12-07 02:58:33 +00:00
Howard Chu
c607449cd0
Write contextCSN during db_open if it's newer than was previously recorded
2004-12-07 02:20:15 +00:00
Howard Chu
fc9b1b7aca
Delete unused be_context_csn, cleanup pending csn entry
2004-12-06 23:17:58 +00:00
Howard Chu
e14322dcbf
Fix entry_release backend swapping
2004-12-06 22:13:19 +00:00
Howard Chu
e472ed00e2
Fix inequality cursor management
2004-12-06 21:25:16 +00:00
Howard Chu
4ffff34a65
Fix mod locking
2004-12-06 20:32:53 +00:00
Pierangelo Masarati
cc78fb525b
ITS#3419: values in built auth DNs may need DN escaping, so build them via ldap_dn2bv
2004-12-06 15:17:23 +00:00
Howard Chu
810abc1419
Better fix for prev commit
2004-12-06 07:38:09 +00:00
Howard Chu
89912db91e
Store entryIDs in big-endian order, no more custom sort function.
...
back-hdb still needs work.
2004-12-06 07:28:47 +00:00
Howard Chu
a518895b72
Fix previous commit
2004-12-06 07:27:09 +00:00
Howard Chu
3e5a2904e8
bdb_tool_dn2id_get should use bdb_dn2id, not duplicate the code
2004-12-06 07:25:33 +00:00
Howard Chu
70f375eae0
Fix GE inequality lookups, key was getting overwritten
2004-12-06 07:16:57 +00:00
Howard Chu
ee01d03766
Don't assert on short time strings, just ignore them.
2004-12-06 03:37:06 +00:00
Howard Chu
fb2d226a70
Add glue overlay
2004-12-05 21:15:48 +00:00
Howard Chu
7e2aea4994
Forced commit - add CVS ID tag
2004-12-05 20:57:34 +00:00
Howard Chu
ee9872f39f
Restored findcsn( MAX ), used at db_open time
2004-12-05 20:52:49 +00:00
Howard Chu
76ad79b7d7
More shutdown fixes
2004-12-05 08:19:28 +00:00
Howard Chu
de85fbc6e0
Fix prev commit
2004-12-05 07:30:12 +00:00
Howard Chu
25334fec4e
Make sure db_close only gets called once
2004-12-05 07:07:50 +00:00
Howard Chu
2c25924d28
Go back to original startup/shutdown behavior. Fix entry_release.
2004-12-05 06:44:54 +00:00
Howard Chu
8a4931c4d6
Fix typo
2004-12-05 03:06:01 +00:00
Howard Chu
8dd2d202e5
Fix defaultSearchBase
2004-12-05 02:10:50 +00:00
Howard Chu
30a6f4d24d
Better fix for ITS#3365, manage back-bdb's read locks so frontend/etc.
...
don't need to worry about them.
2004-12-05 02:00:19 +00:00
Howard Chu
dfb8c86dc3
Deleted subordinate keyword in favor of glue overlay
2004-12-04 20:08:56 +00:00
Howard Chu
8ac15e9069
Delete backglue.c in favor of glue overlay
2004-12-04 19:41:58 +00:00
Howard Chu
916e931065
Always exclude subordinates from top-level ops so glue overlay can
...
intercept. Now a single syncprov works over the entire glued context.
2004-12-04 19:26:22 +00:00
Howard Chu
36a3a1d62f
FIx ITS#3417,3418 bogus string arg handling
2004-12-03 17:53:07 +00:00
Howard Chu
b467dbb470
ITS#3404, fix uninit'd ctrl fields
2004-12-03 17:28:33 +00:00
Howard Chu
74da2306ff
Add a checkpoint task if time-based checkpointing is configured.
2004-12-03 17:11:39 +00:00
Howard Chu
5c8fd8bf11
Rename syncrepl_rq to slapd_rq, move to daemon.c
2004-12-03 16:49:23 +00:00
Pierangelo Masarati
2624711bc5
fix ITS#3413,3414; cleanup for readability; silence warnings
2004-12-03 10:11:43 +00:00
Pierangelo Masarati
564c34d131
fix ITS#3416
2004-12-03 08:41:06 +00:00
Howard Chu
5a5fc55a13
Fix ITS#3413, bad variable re-use
2004-12-03 03:39:27 +00:00
Howard Chu
a4f3a45b6d
Fix ITS#3412, bogus TLS option processing
2004-12-03 03:22:05 +00:00
Pierangelo Masarati
2d88c1b826
comment about helper requirements
2004-12-02 22:59:55 +00:00
Howard Chu
02a85a1c93
Hide CSN schema dependencies
2004-12-02 16:59:00 +00:00
Pierangelo Masarati
5769f419db
cleanup previous commit (still temporary, need to define dedicated attributeTypes)
2004-12-02 12:32:36 +00:00
Howard Chu
1e577505eb
Add CSN syntax, matching rules (to support inequality indexing)
2004-12-02 09:05:26 +00:00
Howard Chu
f83b55b2a2
Avoid segfault if backend_destroy is called before frontendDB is created
2004-12-02 08:59:02 +00:00
Pierangelo Masarati
0cc024a370
more on DN munging; now works for all operations
2004-12-02 00:33:36 +00:00
Pierangelo Masarati
396743f62f
fix DN munging; also fix potential error when logging incomplete deletes
2004-12-01 23:16:21 +00:00
Sang Seok Lim
98485f5247
1) existing matching rules support in component filter
...
2) remove double buffering for decoded component values
3) caching decoded component assertion values
2004-12-01 22:11:55 +00:00
Pierangelo Masarati
6e12819387
allow undefined schema items to be returned by back-ldap and remapped by the rwm overlay
2004-12-01 21:47:13 +00:00
Howard Chu
996354e2dd
Pass entire entry to password_quality check module, not just attrs
2004-12-01 16:01:04 +00:00
Pierangelo Masarati
8866a28fb3
don't yell at regex styling that wraps all the suffix in a submatch
2004-11-30 22:50:07 +00:00
Jong Hyuk Choi
8771bdfcbb
restructuring and cleanup
2004-11-30 16:32:37 +00:00
Howard Chu
4869523567
Add comments, fix search args in syncrepl_entry
2004-11-30 11:08:25 +00:00
Pierangelo Masarati
0c65f51ab2
fix user/operational mix of attribute request
2004-11-30 01:49:06 +00:00
Pierangelo Masarati
66a66db3da
retry if addition of an entry previously added as glue fails; entryUUID must be added to mods in pretty and normalized form
2004-11-30 01:48:08 +00:00
Howard Chu
86ef9285b7
Delete define of SLAPD_OVER_GLUE
2004-11-30 01:40:58 +00:00
Pierangelo Masarati
e77570799b
essential support for refreshOnly syncrepl
2004-11-29 22:04:53 +00:00
Howard Chu
ad9f3ebe34
Backglue hastily modified as an overlay
2004-11-29 20:55:50 +00:00
Sang Seok Lim
decfd7217f
1) <all> type component reference support
...
2) nibble type memory support when decoding
3) description type object identifier support
4) OPTIONAL, DEFAULT support in certificate decoder/extractor/matching
5) Misc bug fix
2004-11-29 20:21:38 +00:00
Howard Chu
7bdf2ab549
_operational should return SLAP_CB_CONTINUE
2004-11-29 19:33:35 +00:00
Pierangelo Masarati
9114b1b116
glue also in case of no such object, indicating that the suffix entry is missing yet (unordered results of initial content poll)
2004-11-29 19:03:55 +00:00
Howard Chu
7129b27810
Fix db_close
2004-11-29 14:17:16 +00:00
Pierangelo Masarati
6b1c641bc1
warn users of the need to use the rwm overlay
2004-11-29 12:40:36 +00:00
Howard Chu
ef2df3e398
Cleanup - enable config, delete unused code
2004-11-29 10:27:38 +00:00
Pierangelo Masarati
6c3715aff9
more on syncprov support
2004-11-29 09:36:22 +00:00
Howard Chu
4fec2f56df
Fix slap_known_controls initialization
2004-11-29 08:55:50 +00:00
Howard Chu
d47f98c2eb
Cleanup... never replicate syncConsumersubentries. Plug memleaks.
2004-11-29 06:51:44 +00:00
Howard Chu
a88c78d64e
Remove syncinfo si_UUID_dn, make consumer use modify/modrdn instead of
...
just deleting and adding modified entries.
2004-11-29 05:56:51 +00:00
Howard Chu
948aca3540
Partially revert previous commit. Fix startup csn generation.
...
Fix findbase initialization.
2004-11-29 05:54:55 +00:00
Howard Chu
0145d54325
In build_new_dn, rdn may be part of a larger string, use strncopy.
2004-11-29 04:03:56 +00:00
Pierangelo Masarati
2c89c53cda
fix typo
2004-11-29 00:53:43 +00:00
Pierangelo Masarati
873a5b73ff
first round at enabling back-sql as LDAPsync provider
2004-11-29 00:50:55 +00:00
Pierangelo Masarati
fc57a3e3f8
generate contextCSN if not available; don't fail if a referral is sent (or don't accept referrals?)
2004-11-29 00:48:26 +00:00
Pierangelo Masarati
870cc69c93
fix o_hdr use
2004-11-28 16:25:20 +00:00
Howard Chu
74b745454e
Use rdwr lock for si_mods to avoid deadlock
2004-11-27 20:34:12 +00:00
Howard Chu
8f64cb135f
Fix syncprov_db_close, only cleanup thrctx once
2004-11-27 16:05:49 +00:00
Pierangelo Masarati
6f182a7547
make unregistered known controls show up as undefined; move LDAPsync cid to frontend; some cleanup
2004-11-27 15:08:24 +00:00
Howard Chu
8d0cd119ab
Let the backend know there's a sync search
2004-11-27 14:54:49 +00:00
Howard Chu
865f0db180
Add checkpointing to save contextCSN periodically. Read contextCSN
...
on startup, save on shutdown.
2004-11-27 14:52:28 +00:00
Howard Chu
30333b989c
Let the overlay run before the backend in bi_db_close
2004-11-27 14:43:07 +00:00
Howard Chu
38b430be3c
Fix prev commit
2004-11-27 11:50:54 +00:00
Howard Chu
d3ced75fe7
Add SLAP_DBFLAG_OVERLAY
2004-11-27 11:45:54 +00:00
Howard Chu
b4eceddb52
Add slap_find_control_id
2004-11-27 11:45:07 +00:00
Howard Chu
ed9925f6d9
Cleanup controls
2004-11-27 10:49:47 +00:00
Pierangelo Masarati
27529430a6
wait until syncprov freezes
2004-11-27 10:16:15 +00:00
Howard Chu
1bb93ae084
Fix modify serialization
2004-11-27 08:55:04 +00:00
Howard Chu
584d5355b8
Fix overlay aux_operational, add contextCSN as operational attribute
...
of suffix entry
2004-11-27 08:30:44 +00:00
Howard Chu
8866cc9c92
Force a refresh if the search base has changed
2004-11-27 07:47:24 +00:00
Howard Chu
ee20d206cd
Cleanup
2004-11-27 07:29:10 +00:00
Howard Chu
08564beb6b
Serialize multiple modifies of the same entry (ala seqmod.c)
2004-11-27 07:05:24 +00:00
Howard Chu
287d5be13c
Fix op_cleanup
2004-11-27 07:04:52 +00:00
Howard Chu
8d9509d8d0
Fix abandon sequencing
2004-11-27 06:17:24 +00:00
Howard Chu
5dc1dd1441
Added abandon/cancel support
2004-11-27 01:26:12 +00:00
Howard Chu
5f99f7c991
More migration of syncrepl from frontend to syncprov overlay
...
define OPERATION_BUFFER_SIZE for dummy Operations
2004-11-27 00:57:37 +00:00
Howard Chu
a2400fc0f8
Self-contained detached operation
2004-11-26 23:10:48 +00:00
Howard Chu
2620b4084d
Added response queuing for updates occurring during a refresh
2004-11-26 21:24:40 +00:00
Howard Chu
d413097d8b
Fix prev commit
2004-11-26 17:32:36 +00:00
Howard Chu
e6dd9ec8a2
More Opheader fixes
2004-11-26 10:10:29 +00:00
Howard Chu
c2b339d456
More syncprov fixes. test019 now passes.
2004-11-26 09:40:22 +00:00
Howard Chu
3426a11983
More BDB_PSEARCH cleanup
2004-11-26 09:39:33 +00:00
Howard Chu
127a85b553
More Operation/Opheader fixes
2004-11-26 09:39:14 +00:00
Pierangelo Masarati
e891dbcdc4
fix dynacl compile
2004-11-26 00:34:48 +00:00
Howard Chu
90cc409325
Split Operation into Opheader and op
2004-11-25 22:59:00 +00:00
Howard Chu
3a5bde98ba
Disable back-bdb native syncrepl support, enable syncprov overlay,
...
remove syncrepl stuff from Operation struct
2004-11-25 21:16:54 +00:00
Howard Chu
618cc56265
Merge op->o_sync_mode into op->o_sync
2004-11-25 18:31:31 +00:00
Howard Chu
f0cae31b0e
Fix send_ldap* macros
2004-11-25 14:41:00 +00:00
Howard Chu
dca809ff8d
Revert previous commit, it breaks everything.
2004-11-25 07:03:43 +00:00
Howard Chu
bf97a1f865
Cleanup, add some more descriptive comments.
...
Still needs: error checking, queuing results when refresh is in progress
2004-11-24 20:34:28 +00:00
Jong Hyuk Choi
7fa860ef16
Add the omitted part from the original buddy allocator commit
2004-11-24 17:46:47 +00:00
Jong Hyuk Choi
83fd442ded
Omitted from the original buddy allocator commit
2004-11-24 17:27:25 +00:00
Howard Chu
a6d2bfe9a4
Persist passes test018
2004-11-24 17:07:14 +00:00
Howard Chu
fe4095ebc3
Use normalized UUID...
2004-11-24 16:13:20 +00:00
Howard Chu
4e530bf54d
First pass at persist, not working
2004-11-24 15:58:38 +00:00
Howard Chu
02e171e886
Use BackendInfo instead of direct references to back-ldap functions
2004-11-24 11:31:43 +00:00
Howard Chu
a057ff5bee
ITS#3401 avoid empty make target when SLAPD_DYNAMIC_BACKENDS is empty
2004-11-24 06:41:21 +00:00
Howard Chu
6170a2bbb4
Fix ITS#3400, move ebadf declaration
2004-11-24 05:27:59 +00:00
Pierangelo Masarati
dceaa05c0e
should fix compile when SLAPD_ACI_ENABLED is undefined
2004-11-23 21:20:13 +00:00
Jong Hyuk Choi
7891097a79
remove schema which was used for component match testing
2004-11-23 17:10:38 +00:00
Howard Chu
dbe5e00929
Use SLAP_CONTROL_* constants
2004-11-23 16:02:07 +00:00
Jong Hyuk Choi
994edd5500
buddy allocator for sl_malloc. Configurable at thread heap creation time. Need optimization for higher perf.
2004-11-23 15:37:06 +00:00
Howard Chu
50ed4465fb
slap_known_controls is now an array. (control.c r1.117)
2004-11-23 14:45:36 +00:00
Howard Chu
6bbca5e368
Now that we have a fixed number of slots for controls, don't bother
...
realloc'ing slap_known_controls.
2004-11-23 14:42:04 +00:00
Howard Chu
155387428a
Add comment for spare bits in ctrlflags
2004-11-23 14:12:13 +00:00
Howard Chu
47dd8d8732
Dynamic control management
2004-11-23 13:08:45 +00:00
Howard Chu
99ee94a3de
Tweak findcsn conditions for validating cookie csn
2004-11-22 03:56:27 +00:00
Howard Chu
09e2035c39
Passes test017
2004-11-22 03:24:59 +00:00
Howard Chu
c5006f4b87
Fix modtail initialization in loop
2004-11-22 02:11:15 +00:00
Howard Chu
e49c13b874
More refresh working...
2004-11-21 18:25:02 +00:00
Howard Chu
884ab2e0c7
Getting refresh working
2004-11-21 17:59:21 +00:00
Howard Chu
8632d8cd04
BDB 4.3 compatibility - errcall prototype
2004-11-21 16:50:24 +00:00
Howard Chu
70d3e8f102
Don't bother including <sys/epoll.h> if we're not using epoll.
2004-11-21 02:18:26 +00:00
Pierangelo Masarati
f93d4a31e8
allow a "users" type in ACI
2004-11-20 14:07:07 +00:00
Pierangelo Masarati
cc0353610f
more cleanup and ITS number
2004-11-20 12:12:57 +00:00
Pierangelo Masarati
c75386a279
cleanup fix to ITS#3303
2004-11-20 12:07:39 +00:00
Pierangelo Masarati
40762c524a
fix ITS#3303
2004-11-20 11:55:46 +00:00
Pierangelo Masarati
1e650374c2
add more semantics to the "type" field; fix a bug in anonymous operations; treat children aci_mask() as internal searches
2004-11-20 11:45:05 +00:00
Pierangelo Masarati
e79fbb88cf
move ACIs under a dynamic infrastructure that allows run-time loadable custom access control logic (needs work)
2004-11-20 01:27:03 +00:00
Howard Chu
2a50cbffd1
Use avl_find2, not avl_find
2004-11-20 00:55:58 +00:00
Howard Chu
87c74c2d52
Cleanup, delete test define
2004-11-19 23:45:31 +00:00
Howard Chu
d7c5ccabe9
Use exop_is_write() macro
2004-11-19 23:27:02 +00:00
Howard Chu
59b50101bd
Overlay for serializing modifications of a specific entry without
...
using backend-specific locks
2004-11-19 23:22:49 +00:00
Howard Chu
c8f49d0337
Add SLAP_EXOP_WRITES flag, expose flags in Operation,
...
add exop_is_write() macro for detecting exops that modify a target entry
2004-11-19 22:19:13 +00:00
Howard Chu
c7a8625da7
Fix waking test
2004-11-19 00:13:00 +00:00
Howard Chu
f0372748e8
Fix prev commit
2004-11-18 23:08:57 +00:00
Howard Chu
f825367acf
Check for sys/epoll.h
2004-11-18 22:07:37 +00:00
Howard Chu
fb7a5d7a55
shutdown on failure in epoll_ctl when adding a socket...
2004-11-18 19:29:24 +00:00
Howard Chu
bf0d729454
Fix prev commit, didn't mean to have HAVE_EPOLL hardcoded
2004-11-18 19:15:21 +00:00
Howard Chu
495ea2c13c
epoll support works
2004-11-18 19:06:14 +00:00
Howard Chu
b4e10e194d
Fix epoll compilation
2004-11-18 17:27:43 +00:00
Howard Chu
b7d4e1a5f1
First pass at macro-izing event handling method. Still only supports
...
select(). If you think this is too ugly, feel free to revert...
2004-11-18 16:41:04 +00:00
Howard Chu
0464155205
Allow a small number of waking events to be outstanding, not just 1
...
(chose 5 arbitrarily)
2004-11-18 15:40:49 +00:00
Howard Chu
69dc60e5ca
Count writers, don't pass w fd_set if there are none
...
Deleted broken/unused FD_MANUAL_COPY code
2004-11-18 00:19:52 +00:00
Pierangelo Masarati
f1187e4165
the caching database may need to inherit ACLs and limits from the proxy
2004-11-17 21:38:14 +00:00
Howard Chu
ecf5581f0d
Fix include path for backend.h when using separate object directory
2004-11-17 20:22:46 +00:00
Pierangelo Masarati
6ff5fce743
FIXME: needs work/cleanup
2004-11-17 19:42:19 +00:00
Pierangelo Masarati
6eec000889
improve diagnostics
2004-11-17 17:55:44 +00:00
Pierangelo Masarati
dd18c8b2a4
revert last commit
2004-11-17 15:56:25 +00:00
Howard Chu
f1ae2e63c1
Fix BDB 4.3 fasttool, flag must be set before opening environment
2004-11-17 15:12:31 +00:00
Pierangelo Masarati
262df940f1
cleanup previous commit
2004-11-17 15:05:59 +00:00
Pierangelo Masarati
bc478dee46
log the right function names
2004-11-17 14:53:03 +00:00
Pierangelo Masarati
437bd421bb
test "entry" as default attribute
2004-11-17 13:43:04 +00:00
Pierangelo Masarati
c7d2cf91fd
cleanup and line up with code
2004-11-16 22:14:21 +00:00
Howard Chu
2415f5085d
Avoid filling the wake_sds when massive numbers of connections close at once.
2004-11-16 20:26:50 +00:00
Pierangelo Masarati
184fc4878a
more on ITS#3396: note that the filter is mandatory, and that the protocol must be ldap://
2004-11-16 18:57:40 +00:00
Pierangelo Masarati
227961178e
fix ITS#3396 (filter in URI replacement must be present)
2004-11-16 18:43:48 +00:00
Pierangelo Masarati
947268c5ee
partially revert previous commit (the "creator" special DN pattern is redundant as "dnattr" is more expressive
2004-11-15 22:57:03 +00:00
Pierangelo Masarati
064eb88ef8
move special dn patterns to style enum; add creator special dn pattern
2004-11-15 22:15:28 +00:00
Pierangelo Masarati
78ddb88960
minor cleanup
2004-11-15 22:10:10 +00:00
Pierangelo Masarati
b29bf83e7e
remove back-*/external.h
2004-11-15 19:45:49 +00:00
Pierangelo Masarati
fcf89c9a3d
add directory in labeledURI for back-bdb/hdb; put overlays in database entry's children
2004-11-15 15:46:56 +00:00
Pierangelo Masarati
2d5ec082dd
cleanup
2004-11-15 14:17:08 +00:00
Pierangelo Masarati
5a91da6624
don't list multiple occurrences of the same overlay
2004-11-15 14:13:54 +00:00
Pierangelo Masarati
ee4c10d5d0
allow backends to automatically install overlays; issue warnings in case of duplicates (fixes ITS#3395 for cases (1.a), (1.b) and (2) simultaneously)
2004-11-15 10:28:33 +00:00
Howard Chu
04b078d6eb
Fix prev commit. I wonder if we should convert the fdset bitvector into
...
an array like winsock does. That would speed up response time for small
number of connections with large FD_SETSIZE, but probably equalize out
as the number of active connections goes up. ??
2004-11-15 04:05:32 +00:00
Howard Chu
a59243ceee
Slight tweak for select descriptor checking
2004-11-14 21:27:53 +00:00
Sang Seok Lim
a90e63fde0
ComponentFilterMatch support for userCertificate
2004-11-14 20:11:38 +00:00
Pierangelo Masarati
9c550e7235
first step towards removing back-*/external.h
2004-11-13 18:52:44 +00:00
Pierangelo Masarati
cd35386935
fix ITS#3391
2004-11-13 18:40:16 +00:00
Pierangelo Masarati
9cff3e39d8
inherit from back-ldap
2004-11-13 18:36:02 +00:00
Pierangelo Masarati
158067a46e
sanity check
2004-11-13 17:27:15 +00:00
Pierangelo Masarati
db4f223c66
improve overlay helpers
2004-11-13 17:20:24 +00:00
Pierangelo Masarati
7ff445d8ae
further cleanup
2004-11-13 15:10:47 +00:00
Pierangelo Masarati
f036fff9e5
further cleanup
2004-11-13 14:57:39 +00:00
Pierangelo Masarati
363fdcd951
no longer required (moved to rwm overlay)
2004-11-13 14:50:34 +00:00
Pierangelo Masarati
253266ef07
import stuff removed from back-ldap
2004-11-13 14:45:18 +00:00
Pierangelo Masarati
f176935a58
remove rewrite stuff -- now delegted to rwm overlay
2004-11-13 14:43:30 +00:00
Howard Chu
3cfbe2ec29
fasttool: BDB 4.3 uses DB_LOG_INMEMORY instead of DB_TXN_NOT_DURABLE
2004-11-13 13:23:33 +00:00
Howard Chu
ab25b43364
Update BDB 4.3 errcall prototype again to silence warnings
2004-11-13 13:22:48 +00:00
Pierangelo Masarati
d7bdb8cb24
disable referral rewrite in default suffix massage
2004-11-13 12:15:40 +00:00
Pierangelo Masarati
34478b3ca6
more on monitor customization
2004-11-12 12:54:42 +00:00
Pierangelo Masarati
5d99b9d747
cleanup
2004-11-12 12:53:19 +00:00
Pierangelo Masarati
f41f1aaac0
initialize var
2004-11-12 12:52:42 +00:00
Pierangelo Masarati
166f9afa34
check validity of naming context
2004-11-12 12:51:53 +00:00
Pierangelo Masarati
018526ff14
fix spurius noSuchObject when base=suffix
2004-11-12 12:51:16 +00:00
Pierangelo Masarati
5b67eecb45
don't hijack members of op for temporaries...
2004-11-12 12:49:43 +00:00
Pierangelo Masarati
7bee593572
cleanup
2004-11-12 12:46:30 +00:00
Pierangelo Masarati
ab94342cc6
silence warnings
2004-11-12 12:45:40 +00:00
Pierangelo Masarati
dd367a2b78
make sure we're comparing the same database
2004-11-11 13:12:34 +00:00
Pierangelo Masarati
91f2a8bc46
remove backed-out code from previous commit
2004-11-11 09:43:15 +00:00
Pierangelo Masarati
79f744f30b
rework static backend initialization
2004-11-11 00:39:19 +00:00
Pierangelo Masarati
be32dce97f
rework static backend initialization
2004-11-11 00:38:11 +00:00
Pierangelo Masarati
0e83717e80
fix return code; fix test (please review)
2004-11-11 00:32:47 +00:00
Jong Hyuk Choi
62febe5dff
fix slap_sl_free() calls in pre / post read controls
2004-11-10 21:38:41 +00:00
Howard Chu
616d7962ef
Fix bind_anon keyword
2004-11-10 18:20:49 +00:00
Pierangelo Masarati
f06f2a6aec
fix ITS#3350 (rewrite/remap will be replaced by the rwm overlay)
2004-11-10 09:56:55 +00:00
Pierangelo Masarati
b349604352
fix ITS#3387
2004-11-10 09:45:02 +00:00
Jong Hyuk Choi
71ac7140b6
fix suspicious capitalization to make subentries control work properly
2004-11-10 03:52:42 +00:00
Jong Hyuk Choi
b6f77e2936
ldapsync fix for recursive deletion (ITS#3385)
2004-11-10 03:52:12 +00:00
Howard Chu
73a666778e
Delete incorrect comments
2004-11-10 01:29:51 +00:00
Howard Chu
e0726c2b55
A bit more...
2004-11-09 03:12:03 +00:00
Pierangelo Masarati
70884b8860
allow to register entries and entry callbacks; radical namespace cleanup
2004-11-08 18:52:27 +00:00
Pierangelo Masarati
c8fd4a203b
allow creation of subsystems whatever order the databases appear
2004-11-08 11:33:53 +00:00
Pierangelo Masarati
3743579870
fix typo in rww; general cleanup
2004-11-08 10:55:33 +00:00
Pierangelo Masarati
b3ec75d032
rework subsystem initialization (can be added dynamically...)
2004-11-08 10:10:15 +00:00
Howard Chu
9dd58533ca
Better cache counting, partially revert 1.85
2004-11-08 07:18:33 +00:00
Howard Chu
504d7ea261
Assist in cache debugging
2004-11-08 04:23:37 +00:00
Ralf Haferkamp
c7a2f95493
Plugged memory leak
2004-11-05 15:29:59 +00:00
Howard Chu
e4c231fe0c
Only use libltdl #if SLAPD_MODULES is defined, otherwise ignore
...
external pwdCheckModules.
2004-11-05 08:57:05 +00:00
Howard Chu
4e56d4b75f
ITS#3376 fix subordinate keyword
2004-11-05 07:51:33 +00:00
Kurt Zeilenga
b29e311ae7
unifdef -DBDB_ALIASES
...
delete dead code
2004-11-05 07:48:15 +00:00
Howard Chu
1d35c8f8ec
ITS#3376 Fix prev commit, handling of replogfile
2004-11-05 07:10:44 +00:00
Howard Chu
db8debbfc8
ITS#3376 table-driven config engine
2004-11-05 06:22:04 +00:00
Howard Chu
9ebcc83796
Minor cleanup of prev commit
2004-11-04 03:10:03 +00:00
Howard Chu
3d23a4d2c5
Consolidate redundant code
2004-11-04 02:59:34 +00:00
Ralf Haferkamp
93cec8b694
- Added autoconf test for CRL capable OpenSSL Version
...
- #ifdef'd CRL checking code.
2004-11-03 12:02:38 +00:00
Howard Chu
aa7ed3d8c8
Incomplete skeleton
2004-11-02 04:51:06 +00:00
Sang Seok Lim
55b4021183
Misc cleanup
2004-11-01 19:10:54 +00:00
Sang Seok Lim
2ed313e7f2
Bug fix: return value check
2004-11-01 18:59:33 +00:00
Howard Chu
14b0d4fdad
Fix hdb cache kid counts
2004-10-31 22:07:15 +00:00
Howard Chu
7087ffa2ca
ITS#3356 - when purging cache, free entryInfo if node has no children
2004-10-31 13:04:27 +00:00
Howard Chu
501f749c05
Don't access entry after commit; it may be gone if the cache is full
2004-10-30 23:48:26 +00:00
Pierangelo Masarati
3b46fd7cde
silence warnings (some cleanup required)
2004-10-30 11:40:40 +00:00
Jong Hyuk Choi
42f8426b5b
patch for ITS#3379
2004-10-28 21:40:42 +00:00
Ralf Haferkamp
5704a2ef6e
CRL checking options for ldap.conf and slapd.conf
2004-10-28 18:50:38 +00:00
Jong Hyuk Choi
1d618e0964
move componentCertificate to test.schema for now
2004-10-27 22:01:19 +00:00
Kurt Zeilenga
33f8164c58
Remove 'componentCertificate', doesn't belong in 'core.schema'.
2004-10-27 21:37:40 +00:00
Sang Seok Lim
20965abe9c
remove a componentCertificate attribute from the organizationalPerson objectclass
2004-10-27 20:14:29 +00:00
Sang Seok Lim
2353678647
Header file for component.c
2004-10-27 19:53:26 +00:00
Sang Seok Lim
71e78dd7f9
Component Matching module
...
See "contrib/slapd-modules/comp_match/README" to understand
what's the purpose of this patch is and how to use it.
2004-10-27 19:37:02 +00:00
Howard Chu
02cf375603
ITS#3369 - be is seldom NULL, now test for be == frontendDB
2004-10-27 16:28:12 +00:00
Howard Chu
0c9c90a3e9
ITS#3365 - fix leaking bdb locks when evaluating dynamic groups
2004-10-27 14:52:18 +00:00
Howard Chu
e7ec96fc6d
ITS#3358 - make bdb_cache_lru_add skip entries that are being deleted
2004-10-27 14:01:12 +00:00
Pierangelo Masarati
fbe8243b86
warn when using "replogfile" or "replica" inside monitor database
2004-10-27 11:34:27 +00:00
Kurt Zeilenga
30fdb0e0ca
Fix LDAP Intermediate Response tag values.
...
with code to accept old values.
2004-10-20 21:47:40 +00:00
Kurt Zeilenga
a99731b001
Fix typo
2004-10-19 03:06:16 +00:00
Kurt Zeilenga
e983616d75
More NEW_LOGGING removal
2004-10-19 01:40:38 +00:00
Howard Chu
e6a12272cc
BDB 4.3 compatibility
2004-10-16 22:10:32 +00:00
Howard Chu
84ce549016
define DB_VERSION_FULL to simplify version checks
2004-10-16 21:59:58 +00:00
Howard Chu
1d0e99858a
Free old op->o_sync_csn before allocating new one. (Internal operations
...
using the same op structure, such as in refint overlay, cause a memleak
otherwise.) Probably should be using tmpmem for this.
2004-10-16 21:32:45 +00:00
Pierangelo Masarati
71035d3aa1
fix typo when string keys are used
2004-10-16 16:16:57 +00:00
Jong Hyuk Choi
6db389efd9
further cleanup of search data upon exit, abandon, cancel
2004-10-16 16:10:00 +00:00
Howard Chu
ca0bf91bba
BDB 4.3 compatibility, if the reader TXN is deadlocked we must abort
...
and recreate it.
2004-10-16 13:07:01 +00:00
Jong Hyuk Choi
0af878ac3f
syncrepl consistency patch: utilize BDB txn rollback
2004-10-12 17:53:50 +00:00
Kurt Zeilenga
38c7e86d67
ITS#3311: check sasl_auxprop_add_plugin return
...
cleanup
2004-10-11 20:52:31 +00:00
Jong Hyuk Choi
4efd705cc3
syncrepl consistency patch
2004-10-09 09:26:16 +00:00
Kurt Zeilenga
03712dcc3e
Conditionally add SIGTRAP signal handler
2004-10-09 04:55:41 +00:00
Kurt Zeilenga
2ad0485ea5
ITS#3362: Fix typo in dNSDomain def'n.
2004-10-08 17:41:02 +00:00
Pierangelo Masarati
9eabe1365b
improve memory allocation in sets
2004-10-08 15:07:22 +00:00
Pierangelo Masarati
56ee97ba1b
further cleanup of sets
2004-10-08 00:54:19 +00:00
Pierangelo Masarati
2f6f6f6a07
"optimize" sets: since the attr part must be an attribute, use the AttributeDescription
2004-10-08 00:28:16 +00:00
Pierangelo Masarati
559cf8bfb1
revert previous commit
2004-10-08 00:27:26 +00:00
Pierangelo Masarati
58edfcca31
improve previous commit
2004-10-07 23:38:17 +00:00
Pierangelo Masarati
aa2e9413f1
fix previous commit
2004-10-07 22:31:36 +00:00
Pierangelo Masarati
e5ade14256
improve previous commit; now attrs in URI, if any, are added to that in the [<dn>]/<attr> form
2004-10-07 20:44:01 +00:00
Pierangelo Masarati
6a9bf9765e
add URI search to sets; documentation to come...
2004-10-07 17:05:48 +00:00
Howard Chu
1df6d76269
Add ppolicy_hash_cleartext config keyword, hash Adds as well as Modifies.
...
Changed check_pw_quality callback to pass entry's Attributes in final arg.
2004-10-07 04:07:17 +00:00
Howard Chu
374cd32eb6
Add a retry for entry_get too. (oops)
2004-10-07 02:55:51 +00:00
Pierangelo Masarati
2b74930cb0
s/free/slap_sl_free/
2004-10-06 23:53:30 +00:00
Pierangelo Masarati
4afaf4042a
minor cleanup
2004-10-06 22:20:30 +00:00
Pierangelo Masarati
4204aee7b9
extend the availability of submatches to non-regex DN patterns
2004-10-06 22:03:33 +00:00
Howard Chu
95550f21a2
Fix prev commit
2004-10-06 07:26:35 +00:00
Howard Chu
7e87f54716
Revert ITS#3353 patch, it needs to be reworked.
2004-10-06 05:51:38 +00:00
Pierangelo Masarati
02828499f0
cleanup & silence warnings
2004-10-05 21:41:41 +00:00
Jong Hyuk Choi
db4bc08d8c
misc cleanup
2004-10-05 00:33:00 +00:00
Jong Hyuk Choi
4241325600
simplify attrs parsing and process objectClass differently
2004-10-05 00:30:15 +00:00
Pierangelo Masarati
2ccbe388b5
fix global configuration patch (ITS#3353)
2004-10-04 21:05:13 +00:00
Pierangelo Masarati
bf8e890ea7
fix global configuration patch (ITS#3353)
2004-10-04 20:57:14 +00:00
Pierangelo Masarati
0c1f1f959f
minor cleanup
2004-10-04 20:55:09 +00:00
Pierangelo Masarati
6ef9689b3f
fix string_expand error cases; cleanup
2004-10-04 20:52:58 +00:00
Pierangelo Masarati
e10186f1a5
add support for entryUUID and entryCSN operational attributes (entryUUID is honored in filters as well)
2004-10-04 01:19:53 +00:00
Pierangelo Masarati
87a63d3b5d
improve previous commit; consistently use dn/ndn; add support for LDAP_SCOPE_SUBORDINATE
2004-10-03 21:08:54 +00:00
Pierangelo Masarati
796dce8657
add (and honor) a (configurable) baseObject to workaround ldap_entries view for RDBMSes that do not support UNION in views
2004-10-02 17:33:32 +00:00
Pierangelo Masarati
fa8ee16d38
cleanup naming; minor fixes
2004-10-02 12:05:42 +00:00
Sang Seok Lim
258d0d3da2
Bug fix : msiing SLAPD_GLOBAL
2004-10-02 01:01:00 +00:00
Howard Chu
bbe986b94e
Add a retry for failed connections
2004-10-01 12:00:41 +00:00
Howard Chu
55f12a7eee
Add a retry for failed connections
2004-10-01 11:16:38 +00:00
Howard Chu
fda3d6260e
ITS#3353 consolidate slapd globals into a single struct
2004-10-01 07:33:16 +00:00
Pierangelo Masarati
60d4aaba54
fix, rework and optimize search base; allow orphaned entries addition
2004-09-28 23:27:39 +00:00
Howard Chu
62b6b32633
Add SLAP_MR_ORDERED_INDEX - support for inequality indexing. Currently
...
only implemented for generalizedTime syntax.
2004-09-28 13:11:11 +00:00
Howard Chu
e014144f98
Move time parsers from ppolicy.c to liblutil; preserve greater precision
2004-09-28 12:23:37 +00:00
Howard Chu
fc44ed4593
Tweak exact hashing in prev commit
2004-09-28 04:13:09 +00:00
Howard Chu
bf7c7a22d6
ITS#2661: configurable substring index lengths
...
ITS#2588: use subany to help long subinitial/subfinal matches
2004-09-28 02:51:00 +00:00
Pierangelo Masarati
39195e48a3
minor cleanup
2004-09-27 23:04:34 +00:00
Pierangelo Masarati
0fc89b6203
more cleanup
2004-09-27 22:16:21 +00:00
Pierangelo Masarati
b2cd66c0d8
fix ITS#3346
2004-09-27 22:04:20 +00:00
Jong Hyuk Choi
e8f30c8d0b
preserve attrs="*"
2004-09-27 16:16:53 +00:00
Pierangelo Masarati
c2c27c6839
fix csne destroy
2004-09-27 08:11:04 +00:00
Pierangelo Masarati
d2c08ed8d3
misc syncrepl cleanup/fixes
2004-09-26 23:00:35 +00:00
Pierangelo Masarati
d026e2c9f7
preformat "conn=%lu op=%lu"
2004-09-26 23:00:00 +00:00
Pierangelo Masarati
761f287943
multiple precision with BIGNUM/gmp/ulong
2004-09-26 22:58:47 +00:00
Pierangelo Masarati
2e9d64741c
put overlays in alphabetical order
2004-09-26 22:53:54 +00:00
Pierangelo Masarati
b09663d784
consistently check return value of BindParam*; rework macros to ease parameter binding; always add data length to string values (may need to specialize for integers)
2004-09-25 18:11:06 +00:00
Pierangelo Masarati
02cfafdded
add column size to SQLBindParameter when SQL_CHAR parameter type is used
2004-09-25 11:38:00 +00:00
Kurt Zeilenga
f0190506f1
ITS#3344: initialize threads early
2004-09-25 05:36:06 +00:00
Jong Hyuk Choi
292c568f36
a fix to prev commit
2004-09-25 03:21:30 +00:00
Kurt Zeilenga
31a6de16b0
ITS#3345: reorder includes to workaround Pth signal redefine problem
2004-09-25 01:47:02 +00:00
Jong Hyuk Choi
dda85fafe9
rework of slap_mods2entry dup
2004-09-24 08:19:50 +00:00
Jong Hyuk Choi
c7d4f2841e
back out prev commit
2004-09-24 07:26:44 +00:00
Jong Hyuk Choi
e4d199d7bb
A follow-on commit to the previous @oc support change to use anlist
2004-09-23 19:23:17 +00:00
Jong Hyuk Choi
5c0581b184
Modified @oc supprot code to the share anlist routines; Revised anlist routines
2004-09-23 02:48:14 +00:00
Pierangelo Masarati
0055675bfc
improve candidate selection when filtering by objectClass
2004-09-22 23:17:32 +00:00
Jong Hyuk Choi
a116c2fb5e
a memory fix for slap_mods2entry(): don't trim mods array - trim it outside
2004-09-21 03:08:07 +00:00
Howard Chu
89b03a1c7e
Make ppolicy_add consistent with ppolicy_modify - don't add pwdChangedTime
...
opattr on replicated entries.
2004-09-21 00:14:28 +00:00
Jong Hyuk Choi
34280359b5
misc bug fix for @oc support
2004-09-20 19:44:05 +00:00
Luke Howard
0ac9b6889e
Remove unused variable if not compiling with HAVE_TLS - NB slapd always
...
exposes register_certificate_map_function(), as better to return an error
if a plugin is compiled to use it and slapd is not built with HAVE_TLS
than failing with an unresolved symbol
2004-09-20 04:06:25 +00:00
Luke Howard
eb9720c802
Add register_certificate_map_function() native plugin API for registering
...
alternate X.509 peer normalization function
2004-09-20 03:52:39 +00:00
Kurt Zeilenga
2647a615ce
value_match cleanup
2004-09-18 06:04:57 +00:00
Kurt Zeilenga
7f773613f8
component cleanup
2004-09-18 02:32:06 +00:00
Jong Hyuk Choi
ffbb5d4ed2
*oc support in attr list
2004-09-18 02:07:41 +00:00
Kurt Zeilenga
d600afca9f
cleanup
2004-09-18 02:05:01 +00:00
Kurt Zeilenga
9c9d1917ce
ITS#3333 fix presence and substrings
2004-09-18 01:59:43 +00:00
Kurt Zeilenga
d4c7dfe847
cleanup
2004-09-18 01:19:07 +00:00
Kurt Zeilenga
ef1ebe0b2c
descriptors are case insenstive (ITS#3334)
2004-09-18 00:21:29 +00:00
Kurt Zeilenga
a997b94f1f
ITS#3333 fix for compare
...
filterentry cleanup
2004-09-17 22:07:29 +00:00
Kurt Zeilenga
9c5768cd8e
Initial ITS#3333 fix
...
(needs to be applied to other filter cases)
2004-09-17 21:43:28 +00:00
Sang Seok Lim
452fc403dd
Bug Fix : removing problematic counter increment
2004-09-17 16:49:38 +00:00
Jong Hyuk Choi
c60dca5c1e
free default_referral
2004-09-14 01:04:28 +00:00
Jong Hyuk Choi
86aa3728b9
referral mem leak fix
2004-09-14 01:03:08 +00:00
Jong Hyuk Choi
7dc0487341
support for syncrepl attr list in file (both attrs and exattrs)
2004-09-14 01:02:18 +00:00
Pierangelo Masarati
55e251e6e8
lots of cleanup; few improvements; fix RDN selection bug when creating connection dynamic entries; rework entries ordering - now it's more intuitive and regular; optimize counters update
2004-09-12 22:12:58 +00:00
Jong Hyuk Choi
1fe8f20516
release syncinfo mem upon syncrepl failure as well as shutdown
2004-09-11 22:37:21 +00:00
Kurt Zeilenga
444c49827c
Fix result codes
2004-09-11 20:01:03 +00:00
Pierangelo Masarati
9eca1bd75e
fix previous commit...
2004-09-11 17:46:00 +00:00
Pierangelo Masarati
c07979b968
fix previous commit when GMP is not defined
2004-09-11 17:29:05 +00:00
Pierangelo Masarati
c04bebe750
minor improvements
2004-09-11 16:16:41 +00:00
Pierangelo Masarati
a637926bf2
use GMP for multiple precision in counters
2004-09-11 16:15:53 +00:00
Pierangelo Masarati
7dc5a0bb83
fix negative counters; prepare for imrpved count of sent data
2004-09-11 11:05:41 +00:00
Pierangelo Masarati
48b7292fc6
blind update to new tests
2004-09-11 11:05:01 +00:00
Jong Hyuk Choi
98dc97bcb9
memory leak fixes
2004-09-11 02:02:09 +00:00
Kurt Zeilenga
3869e3b84d
Add localSSF slapd.conf(5) directive to set SSF associated
...
with ldapi:// sessions.
2004-09-10 22:35:24 +00:00
Kurt Zeilenga
0fa3715e04
ITS#3326: fix slaptest shutdown
2004-09-10 17:15:33 +00:00
Kurt Zeilenga
31cfbb90df
Use a statically allocated globals
...
Still failing on Freebsd 4.
2004-09-09 19:07:46 +00:00
Kurt Zeilenga
0b331b8159
changing a malloc to a calloc shouldn't change behavior, but
...
this change seems to causes test007 to fail on some systems
(e.g., FreeBSD 4).
2004-09-09 06:16:03 +00:00
Kurt Zeilenga
910076d26f
Add additional DN matching rules.
2004-09-09 03:56:58 +00:00
Kurt Zeilenga
741f9ea383
Add initial dnSubtreeMatch.
...
Should reuse other DN routines.
Need to add various other DN matching rule functions.
This commit, combined with entryDN and slapcat -a, should
fully address ITS#3112.
2004-09-09 02:07:27 +00:00
Kurt Zeilenga
f1f18f7b93
improve last commit
2004-09-08 21:53:46 +00:00
Kurt Zeilenga
c54a8de9c8
Fix entryDN matching
2004-09-08 21:51:12 +00:00
Kurt Zeilenga
cdd94c7aa1
Add "slapcat -a filter" support
2004-09-08 21:44:28 +00:00
Kurt Zeilenga
ee66a01b8c
Add entryDN MRA support. This is intended to be used:
...
(entryDN:isSubordinate:=dc=example,dc=net)
isSubordinate should be implemented in component matching terms
2004-09-07 21:10:28 +00:00
Kurt Zeilenga
f9c9219f98
Add presence and equality support for entryDN,
...
extensible matching (the main objective) coming soon.
(This stuff should really be table driven (for extensibility reasons).)
2004-09-07 20:58:46 +00:00
Kurt Zeilenga
f317696520
cleanup
2004-09-07 20:18:07 +00:00
Kurt Zeilenga
61d0fd3667
Fix OID assignment
2004-09-07 05:27:30 +00:00
Kurt Zeilenga
756a677482
entryDN is dynamic
2004-09-07 05:06:50 +00:00
Kurt Zeilenga
094bc99b83
Initial entryDN implementation.
...
Need to implement filter support (for entryDN and subschemaSubentry).
Fixed hasSubordinate assert() bug in entry filters
2004-09-07 05:00:33 +00:00
Kurt Zeilenga
7e2fe5babe
Use shtool(1) (to a limited degree, more use would simplify things)
...
Fix ITS#3285 (relative linking of slap tools).
2004-09-05 03:24:28 +00:00
Pierangelo Masarati
431acda61b
trying to make names consistent
2004-09-04 10:23:40 +00:00
Kurt Zeilenga
d611a4b49a
unifdef -UNEW_LOGGING
2004-09-04 04:54:28 +00:00
Kurt Zeilenga
e0a9ea2f50
Move MSVC port to the Attic
2004-09-04 04:37:41 +00:00
Kurt Zeilenga
64c5fa4a9d
ITS#3320: 'restrict' cleanup
2004-09-03 21:49:13 +00:00
Jong Hyuk Choi
76dfffafe4
fix for test019 glitch
2004-09-03 12:16:15 +00:00
Jong Hyuk Choi
899848181d
added avl_free() at the end of do_syncrep2()
2004-09-02 18:12:37 +00:00
Howard Chu
88e2771bca
ITS#3309 better fix, add op->ord_csn in frontend and use it in backend.
2004-09-02 11:05:13 +00:00
Jong Hyuk Choi
320ab38e45
use of NULL ctx in slap_modrdn2mods
2004-09-01 16:27:19 +00:00
Jong Hyuk Choi
70fda7725a
revert prev commit to normalizers
2004-09-01 16:01:36 +00:00
Howard Chu
559b746437
Avoid gratuitous reindexing of cn and objectclass in syncrepl_updateCookie
2004-09-01 04:18:56 +00:00
Howard Chu
5c1c0902b4
ITS#3309 fix syncrepl psearch propagation of Delete operations
2004-09-01 03:23:36 +00:00
Kurt Zeilenga
17d920063a
subsequent allows/disallows directives should be additive
2004-09-01 00:34:34 +00:00
Kurt Zeilenga
1ece02dc7d
cleanup
2004-09-01 00:23:34 +00:00
Jong Hyuk Choi
6baa9b1e2b
use ch_malloc for normailzed values
2004-08-31 14:22:56 +00:00
Jong Hyuk Choi
e6df94946d
patch for ITS#3296 - do not use sl_malloc on normalized attr values
2004-08-31 13:47:33 +00:00
Kurt Zeilenga
7f22fd5b45
Add note about test.schema
2004-08-30 22:43:38 +00:00
Kurt Zeilenga
c01e9a109d
On second thought, reverse that commit.
...
Rather not promote use of the old schema.
2004-08-30 22:33:18 +00:00
Kurt Zeilenga
efbef99de7
krbName may be useful without old k4bind
2004-08-30 22:28:21 +00:00
Kurt Zeilenga
4d1e5d90a5
Zap old krb5-kdc schema.
2004-08-30 22:23:50 +00:00
Pierangelo Masarati
a469dc6741
fix previous commit
2004-08-30 07:30:01 +00:00
Jong Hyuk Choi
6f9025423f
ITS#3289 - exattrs support
2004-08-29 22:28:28 +00:00
Jong Hyuk Choi
a6c08d747f
Use global alloc for now
2004-08-29 20:01:21 +00:00
Jong Hyuk Choi
71f45bd40b
Further fixes for ITS#3297
2004-08-29 19:19:22 +00:00
Kurt Zeilenga
c449fdd217
TLS SSF does not imply a transport_ssf.
2004-08-28 21:58:20 +00:00
Kurt Zeilenga
89772e9bdd
Replace compfilter.schema with test.schema, which now
...
holds a single attribute type 'componentTest'. Fix
up test031 to avoid modification of standard schema.
(Not sure why this attribute is needed, tests likely
should operate on userCertificate and other existing
attributes which complex syntaxes.)
2004-08-28 19:41:13 +00:00
Kurt Zeilenga
fea393c077
cleanup
2004-08-28 19:26:59 +00:00
Kurt Zeilenga
b2aa91b22d
cleanup
2004-08-28 17:55:05 +00:00
Kurt Zeilenga
429be3c137
Add FIXME comment regarding improper return of unavailableCriticalExtension
...
Misc Clean.
2004-08-28 13:45:53 +00:00
Sang Seok Lim
d997105915
.conf and .schema files for test31-component-filter
2004-08-28 03:53:41 +00:00
Kurt Zeilenga
e2f2186aa0
Note fixme
2004-08-28 01:26:34 +00:00
Kurt Zeilenga
49bd9befa4
Referrals should not (except in special cases) be
...
returned for Bind operations, instead invalidCreditials
should be returned.
2004-08-28 01:08:24 +00:00
Kurt Zeilenga
f39d6f80fb
ITS#3275: fix logging
2004-08-28 00:50:15 +00:00
Howard Chu
81265a7872
fix uninit'd be_context_csn for syncrepl
2004-08-28 00:26:35 +00:00
Luke Howard
6cdaa19b96
Remove bogus SLAPI code path which special-cased modlist == NULL
...
This had the effect of setting the result code to LDAP_SUCCESS for modlist == NULL
even on a replica when an update-ref might be set. This was causing a plugin (that
implements the commit phase in a post-op plugin) to write to "read-only" replica.
2004-08-27 19:34:14 +00:00
Kurt Zeilenga
2782b6f46f
cleanup
2004-08-27 19:00:15 +00:00
Kurt Zeilenga
6cde4bdeb3
Move LDAP_COMP_MATCH define from ldap.h to slap.h
2004-08-27 18:53:44 +00:00
Luke Howard
410ca3d1a9
Allow mods to be NULL in slapi_int_ldapmods2modifications()
2004-08-27 17:27:09 +00:00
Luke Howard
8c764e8d63
Fix a SLAPI bug where slapd could crash if a preop plugin changed the mods
...
list and a subsequent plugin aborted the operation -- regardless of the
preop result the frontend must refetch the array of LDAPMods
2004-08-27 17:12:01 +00:00
Sang Seok Lim
78d08a8271
Misc Bug Fix:
...
- Remove unused variables
- Remove the attribute for component filter test in core.schema
2004-08-26 16:43:28 +00:00
Luke Howard
8d1f26b7b6
Check for opinfo->boi_txn before using it - sometimes it is NULL even if
...
opinfo isn't
2004-08-26 10:17:53 +00:00
Luke Howard
400458c9c5
Don't use SLAPI_TARGET_DN for group plugins - it is required elsewhere
2004-08-26 10:04:08 +00:00
Luke Howard
739dcf2193
boi_bdb must be set
2004-08-26 05:27:59 +00:00
Luke Howard
563f73b81d
backend_compute_output_attr() should use actual computed attribute type
...
returned by the plugin, rather than that requested by backend_attribute(),
for ACL checking.
They should of course be the same but this is the "correct" approach from
both a security and readability perspective
2004-08-26 05:18:33 +00:00
Luke Howard
815efedff5
Fix "FIXME" in slapi_attr_add_value() - store normalized value as well as
...
real value
2004-08-26 05:02:21 +00:00
Luke Howard
102cd721ef
Extend backend_attribute() to support computed attributes (SLAPI)
2004-08-26 05:02:01 +00:00
Luke Howard
5f6996c8bf
Add SLAPI_X_GROUP_TARGET_ENTRY so that group plugin can use target entry
2004-08-26 04:24:29 +00:00
Sang Seok Lim
2af6457771
This patch is for a component filter. please refer ITS#3260 for detail
...
and "implementing GSER and Component Matching" in ODD 2004.
All codes are #ifdef'd with LDAP_COMP_MATCH.
test031-component-filter works correctly only when the LDAP_COMP_MATCH macro is set.
To disable it, set AC_WITH_COMP_MATCH "no" in "openldap_src/tests/run.in".
2004-08-26 00:06:39 +00:00
Howard Chu
05e7632c30
ITS#3301 fix prev commit, don't fail op on DB_NOTFOUND
2004-08-25 20:53:39 +00:00
Luke Howard
d45b89823f
Support pre-operation and post-operations for backend_group()
...
This allows computed attribute plugins to also provide their attributes to
the ACL engine, for example
2004-08-25 15:20:19 +00:00
Pierangelo Masarati
ba7bb04ed3
check if "rootdn" is defined
2004-08-25 14:29:40 +00:00
Howard Chu
5cba217006
ITS#3301 check for dn2entry failure
2004-08-25 13:55:55 +00:00
Luke Howard
2316461b93
Remove unused variable
2004-08-25 12:31:43 +00:00
Pierangelo Masarati
81b5755364
try with "order by"...
2004-08-25 12:09:05 +00:00
Luke Howard
ea6f5bad65
This patch fixes some subtle interactions between SLAPI and syncrepl. Due to
...
SLAPI always assigning connection and operation IDs of zero for internal
operations, such operations would cause a stale contextCSN to be returned from
slap_get_commit_csn(). As a result, SLAPI internal updates would be invisible
to replicas until an external update was made. Also, SLAPI internal operations
never called slap_graduate_commit_csn() which leaked pending CSNs.
Also included in this patch is a general cleanup of some of the SLAPI code.
Note that we need to use a separate mutex on conn_nextid to avoid a deadlock
where a post-operation plugin tries to acquire connections_mutex, having locked
the per-connection mutex, while the listener thread tries to acquire the
per-connection mutex (having locked connections_mutex). connection.c needs to
be fixed to acquire mutexes in the same order.
2004-08-25 11:52:55 +00:00
Pierangelo Masarati
e745d15f02
remove cruft
2004-08-25 11:32:47 +00:00
Pierangelo Masarati
53483e012d
more definitive improvements; now write operations are consistent; plugged some more leaks/invalid frees; tests are more complete. IBM db2 doesn't pass write test because the entries are written in a different order; need to write a script that sorts the results...
2004-08-25 10:41:13 +00:00
Pierangelo Masarati
752bffb16c
write test is almost working for ibmdb2 as well...
2004-08-24 17:08:30 +00:00
Pierangelo Masarati
d25ade71e9
need to perform a select after adds...
2004-08-24 15:37:10 +00:00
Pierangelo Masarati
aae3c074f1
cleanup
2004-08-24 15:16:06 +00:00
Pierangelo Masarati
aaf52b28ff
further fixes
2004-08-24 15:01:39 +00:00
Pierangelo Masarati
be3c14e4f4
ready for test...
2004-08-24 11:45:33 +00:00
Pierangelo Masarati
a8674f59d7
fix various issues; line up with new tests
2004-08-24 10:31:02 +00:00
Pierangelo Masarati
00f1c085cf
move call to frontend API
2004-08-24 09:29:11 +00:00
Pierangelo Masarati
23cbd59126
- proxy cache erroneously returns the filtering attributes
...
and the objectClass right after caching, even if not requested,
while subsequent searches are fine;
- the response callback needs be apended at the end of the
callback list, otherwise the resulting entries are cached
before other overlays can alter them
- the callback structure and its contents needs be freed
2004-08-24 09:24:55 +00:00
Pierangelo Masarati
809e623cd9
add paged results support to back-ldap
2004-08-24 09:19:33 +00:00
Luke Howard
4fdefa106f
ITS#3297 (double free)
2004-08-24 01:20:49 +00:00
Luke Howard
253f66041f
Harmonize bvptr2obj_copy() with values2obj_copy() - ie. don't fail if NULL
...
is passed in.
2004-08-23 03:59:07 +00:00
Pierangelo Masarati
19ea555ca3
blind update of IBM db2 example data
2004-08-21 09:48:49 +00:00
Pierangelo Masarati
b7c0b9ed7f
further improve tests; line-up with code
2004-08-21 09:45:14 +00:00
Pierangelo Masarati
6956e3d483
cleanup previous commit
2004-08-21 09:38:58 +00:00
Pierangelo Masarati
467524ef92
handle referrals correctly; allow to add suffix entry; fix multiple values add bug; cleanup
2004-08-21 09:38:08 +00:00
Jong Hyuk Choi
37db80eadb
attrs=*,+ becmoes the default behavior when attrs are not specified in syncrepl definition. When attrs are specified, operational attributes other than objectClass, structuralObjectClass, and entryCSN need to be explicitly specified to be included in the replication content.
2004-08-20 16:26:58 +00:00
Pierangelo Masarati
0ed0cd66bf
more on back-sql test
2004-08-20 16:12:49 +00:00
Pierangelo Masarati
f59089b5b0
now PostgreSQL seems to work...
2004-08-20 15:24:39 +00:00
Pierangelo Masarati
930f415673
update of RDBMS data for test031
2004-08-20 14:27:32 +00:00
Pierangelo Masarati
d12fdece77
allow to search for "auxiliary" objectClasses (i.e. those in ldap_entry_objclasses); allow to return all objectClasses including "auxiliary"; various cleanup
2004-08-20 12:06:03 +00:00
Pierangelo Masarati
6b8fd66364
split entry_free in entry_clean ...
2004-08-20 12:01:15 +00:00
Howard Chu
af8cb90ed8
ITS#3289 - add SLAP_AT_DYNAMIC flag for dynamically generated attributes.
...
Set flag for hasSubordinates and subschemaSubentry. Strip dynamic attributes
before storing entries in syncrepl.
2004-08-19 23:39:45 +00:00
Howard Chu
f2ee179c3f
ITS#3291 delay use of slap_known_controls until all configuration is done
2004-08-19 12:10:22 +00:00
Howard Chu
91033d6552
Reworked fix for ITS#3140 - add access parameter to backend_attribute
2004-08-18 17:14:22 +00:00
Howard Chu
d504ae047e
More for ITS#3288 be_pcl_mutex fixes
2004-08-18 16:43:19 +00:00
Howard Chu
c7313c09b4
More fixes for prev commit
2004-08-18 15:23:37 +00:00
Howard Chu
3081f2df88
Delete unused be_context_csn_mutex
2004-08-18 10:54:58 +00:00
Howard Chu
77ba70be13
Fix ITS#3288: use be_pcl_mutexp instead of be_pcl_mutex
2004-08-18 10:53:34 +00:00
Howard Chu
77df33a164
Fix crash on modify if userpassword didn't exist yet
2004-08-15 22:23:58 +00:00
Pierangelo Masarati
bde0761a04
should fix ITS#3265
2004-08-12 10:33:49 +00:00
Pierangelo Masarati
05b81e623d
cleanup attr flags; provide a helper
2004-08-06 17:29:59 +00:00
Pierangelo Masarati
7760b20f7f
fix permissive; cleanup
2004-08-06 16:40:48 +00:00
Pierangelo Masarati
bfb6465533
cleanup
2004-08-06 16:40:15 +00:00
Pierangelo Masarati
41569c5ed7
fix attr_merge() usage; cleanup
2004-08-06 16:39:45 +00:00
Pierangelo Masarati
4297cbaed2
fix attr_merge() usage
2004-08-06 16:38:41 +00:00
Pierangelo Masarati
9300a9415f
fix malformed test and var initialization
2004-08-06 16:14:05 +00:00
Pierangelo Masarati
559397c44a
allow to compare on hasSubordinates
2004-07-31 10:42:28 +00:00
Jong Hyuk Choi
9978007997
slapadd -i <rid list> fix
2004-07-31 00:03:58 +00:00
Pierangelo Masarati
9dcdeef319
don't recompute userattrs
2004-07-30 17:34:47 +00:00
Pierangelo Masarati
614e5a9de6
make sure sun_path is cleared out before accept()
2004-07-30 09:56:22 +00:00
Pierangelo Masarati
7b4a51cc28
further improve loglevel selection
2004-07-29 12:39:51 +00:00
Pierangelo Masarati
f33b51832a
allow to use names to set loglevel
2004-07-29 00:10:03 +00:00
Pierangelo Masarati
7507596ccc
minor cleanup
2004-07-28 23:48:08 +00:00
Jong Hyuk Choi
8b5b2e715b
should not assert(0) in UUIDValidate
2004-07-28 17:27:52 +00:00
Jong Hyuk Choi
95e56c6243
Patch for ITS#3259
2004-07-28 17:24:54 +00:00
Pierangelo Masarati
d723dbc34b
in case of early exit, frontendDB might be uninitialized
2004-07-27 21:15:33 +00:00
Pierangelo Masarati
cd9a9c628d
frontend stuff moved into a database structure, essentially to allow overlays to be processed before database selection; passes all tests (ITS#3080)
2004-07-26 21:26:34 +00:00
Pierangelo Masarati
cc60b5ce76
cleanup previous fix; maybe the advanced url parsing funcs should go in some ldap_pvt.h header?
2004-07-26 08:31:01 +00:00
Pierangelo Masarati
9f6f5491fe
slightly rework user/operational attributes handling (including fixing a bug in the logic of the previous change to backend_operational()); cleanup; more improvements to slapo-rwm and back-relay
2004-07-25 23:16:40 +00:00
Pierangelo Masarati
392366818e
fix ITS#3254
2004-07-25 22:57:52 +00:00
Howard Chu
d9927adf88
Fix ITS#3255, boi_bdb comparisons
2004-07-25 21:10:41 +00:00
Howard Chu
05fd32498d
Fix spurious warning for fasttool keyword when running in Server mode
2004-07-25 19:49:24 +00:00
Pierangelo Masarati
075a450b49
cleanup
2004-07-24 17:10:29 +00:00
Pierangelo Masarati
cd7540feee
cleanup URI parsing/checking (fixes ITS#3253)
2004-07-24 11:17:03 +00:00
Pierangelo Masarati
a7b55f4f44
assert administrative identity instead of the required one if doing auth check in non-caching mode
2004-07-23 00:11:05 +00:00
Pierangelo Masarati
32d9856fb1
hack to handle cases where o_req_dn = o_req_ndn
2004-07-22 23:48:04 +00:00
Pierangelo Masarati
07f010a01f
fix previous fix
2004-07-22 23:03:04 +00:00
Howard Chu
dd7003cf9f
Added linearindex option for slapindex. Improves performance when database
...
size exceeds dbcache size by minimizing cache thrashing.
2004-07-22 22:32:37 +00:00
Howard Chu
f9f22058e7
ITS#3178 add "fasttool" option to disable transaction logging in tool mode
2004-07-22 22:14:35 +00:00
Howard Chu
bff0b64cb3
One more Windows tweak
2004-07-20 21:42:00 +00:00
Howard Chu
39fbae025e
Windoes compatibility tweaks
2004-07-20 21:40:33 +00:00
Pierangelo Masarati
52a49e0840
improve manual and make naming contexts uniform; NOTE: backwards compatibility not preserved
2004-07-20 00:46:20 +00:00
Pierangelo Masarati
b29808f4ae
cleanup function name in log
2004-07-20 00:32:43 +00:00
Pierangelo Masarati
dbb4593d75
rework passwd_extop to comply with rwm requirements...
2004-07-20 00:22:05 +00:00
Pierangelo Masarati
4c16e67094
minor cleanup
2004-07-19 21:43:03 +00:00
Pierangelo Masarati
1bbdcba854
add {creators|modifiers}Name to all entries
2004-07-19 21:42:11 +00:00
Howard Chu
ebd1832d21
Required by backover.c -r1.22
2004-07-19 20:25:43 +00:00
Howard Chu
e918210fc2
Required by backover.c -r1.22
2004-07-19 20:01:26 +00:00
Pierangelo Masarati
b94d5e17e2
rework op/rs structures to deal with opeartional attributes
2004-07-18 21:44:29 +00:00
Pierangelo Masarati
448e2dcad4
fix empty uniqueMember dn portion (ITS#3247)
2004-07-18 21:40:16 +00:00
Pierangelo Masarati
47415023b4
startup and shutdown backends only if not in dryrun mode
2004-07-18 21:36:39 +00:00
Pierangelo Masarati
5992a9b7e6
dnMatch must be called with valid args
2004-07-18 21:34:01 +00:00
Pierangelo Masarati
256d845f08
helpers for special attribute lists
2004-07-18 21:33:15 +00:00
Howard Chu
a14bda1df4
strptime is unreliable, just parse time ourselves
2004-07-18 18:28:16 +00:00
Howard Chu
26b4758938
Make sure hdb gets signed chars for len comparison
2004-07-18 12:29:52 +00:00
Hallvard Furuseth
af5ab4f196
Add missing format argument for 'unhandled idassert-method' error message.
2004-07-18 07:16:34 +00:00
Hallvard Furuseth
9c9c92a6a4
Fix coredump in slap_sasl_check_authz() due to wrong LDAP_LOG() format string.
2004-07-18 07:14:07 +00:00
Hallvard Furuseth
b81b0216a9
Split string literal to keep it below ANSI C's allowed 509-char limit.
2004-07-18 00:47:35 +00:00
Pierangelo Masarati
6a02b9b4fd
don't ask for attributes
2004-07-17 17:06:03 +00:00
Pierangelo Masarati
512a70af47
more cleanup
2004-07-17 15:35:06 +00:00
Pierangelo Masarati
6aca8c16c6
cleanup
2004-07-17 15:15:59 +00:00
Pierangelo Masarati
854863f0b6
normalize authcDN (ITS#3246); don't touch databases when running slapadd in dryryn mode (ITS#3244); release lock when acquiring entry in tool mode (ITS#3245)
2004-07-17 14:45:07 +00:00
Pierangelo Masarati
5a32683d02
to be safe, always start backends and database
2004-07-16 16:42:57 +00:00
Pierangelo Masarati
dc5f95cd3e
uninitialized var
2004-07-14 08:18:26 +00:00
Pierangelo Masarati
02c5b51717
cleanup; fix loop
2004-07-14 01:34:46 +00:00
Pierangelo Masarati
56303ce55a
cleanup
2004-07-14 01:16:23 +00:00
Pierangelo Masarati
922a7e4488
cleanup; plug potential leak?
2004-07-14 01:10:35 +00:00
Pierangelo Masarati
d02a8cab65
revert previous change; anticipate backend_operational before overlays callbacks (thanks, Howard); rework overlays cycle to allow callbacks to free themselves (thanks Howard)
2004-07-14 00:42:23 +00:00
Pierangelo Masarati
8d03d74bfd
silence warning
2004-07-14 00:22:27 +00:00
Pierangelo Masarati
3b8111f1c4
use a separate field for a modified entry in SlapReply
2004-07-13 22:52:54 +00:00
Pierangelo Masarati
89b284eef5
more on AttributeDescription error messages
2004-07-13 22:49:50 +00:00
Pierangelo Masarati
d58055b7de
swap overlay and internal cleanup
2004-07-13 22:00:28 +00:00
Pierangelo Masarati
d6e3c93001
memory hanling cleanup
2004-07-13 01:00:48 +00:00
Pierangelo Masarati
7011c4f3e2
change flags only if entry massaging goes fine
2004-07-12 22:50:34 +00:00
Pierangelo Masarati
f4a428d060
cleanup
2004-07-12 22:33:44 +00:00
Howard Chu
2954a90483
Add backend_startup_one()
2004-07-12 20:27:33 +00:00
Howard Chu
856a8c1177
Don't bother logging lock failures for tryOnly mode
2004-07-12 20:02:24 +00:00
Howard Chu
3fd4d04168
Release cache locker on db close
2004-07-12 14:29:13 +00:00
Howard Chu
214d3b26c1
Fix for non-thread run
2004-07-12 04:05:26 +00:00
Pierangelo Masarati
22bd2667ce
mostly done...
2004-07-11 22:57:51 +00:00
Pierangelo Masarati
1b85d17afe
minor cleanup
2004-07-11 22:55:57 +00:00
Pierangelo Masarati
4424b9d57f
log what backend is starting (bdb/hdb)
2004-07-11 22:52:26 +00:00
Pierangelo Masarati
198b34db35
back-relay doesn't like this
2004-07-11 22:52:01 +00:00
Howard Chu
2d4f58bbf6
Make sure DB result codes are returned to caller; add missing retries to
...
callers of bdb_cache_find_id().
2004-07-10 19:06:20 +00:00
Howard Chu
3dedb0839c
Remove redundant code from previous patch
2004-07-10 18:26:05 +00:00
Pierangelo Masarati
7679f37b1d
fix previous commit (needs work)
2004-07-10 15:15:01 +00:00
Pierangelo Masarati
8a9c5bb0f8
make sure we only get here when everything is fine
2004-07-10 11:41:28 +00:00
Pierangelo Masarati
1c2759e689
cache backend was not started up
2004-07-10 11:37:48 +00:00
Howard Chu
22f895a4bb
Minor cleanup
2004-07-10 04:48:07 +00:00
Howard Chu
d6c68cdf48
Fix prev commit
2004-07-09 17:44:50 +00:00
Howard Chu
e5ffb0c466
Use previously unused Backend->be_context_csn
2004-07-09 17:27:23 +00:00
Howard Chu
ebc8bb0d83
Use long-lived per-thread TXNs for loading entries from DB.
...
Make sure only one thread tries to load a given entry at a time.
Bump up the DB environment's max TXNs to accomodate the new TXNs.
2004-07-09 17:00:07 +00:00
Ralf Haferkamp
b8113c5df9
ITS#3226: Clear attribute flags after schema_check failed
2004-07-09 11:18:42 +00:00
Jong Hyuk Choi
70314bd98b
SLAP_IDL_CACHE macro removed
2004-07-09 03:31:52 +00:00
Pierangelo Masarati
2afdce8334
cleanup AD stuff (ITS#3225)
2004-07-09 00:14:15 +00:00
Pierangelo Masarati
3c7a3f78dd
further improve error log clarity
2004-07-07 23:01:22 +00:00
Pierangelo Masarati
81d89ddd63
validate/pretty before normalizing... (ITS#3218)
2004-07-06 22:02:52 +00:00
Kurt Zeilenga
36e75e10af
reverse last commit
2004-07-05 21:45:01 +00:00
Kurt Zeilenga
35cbe6fe84
fix typos in last commit
2004-07-05 21:44:12 +00:00
Kurt Zeilenga
191941c2cf
better ssf related error messages
...
cleanup
2004-07-05 21:41:10 +00:00
Howard Chu
6b59008f26
Plug mem leaks
2004-07-05 21:00:09 +00:00
Howard Chu
5ab38cfa5f
Better fix for ITS#3213, plug mem leaks. Also fix postread response.
2004-07-05 20:08:20 +00:00
Pierangelo Masarati
277d921945
clear shared connections when ldap_result fails with -1 (typically, remote server is down); fixes ITS#3217
2004-07-04 23:35:18 +00:00
Howard Chu
c3984d9f59
Plug memleak from ITS#2895
2004-07-04 04:56:36 +00:00
Howard Chu
56103a575b
Fix misplaced unlock in prev commit
2004-07-03 21:06:34 +00:00
Howard Chu
473b8cb7db
Re-order EntryInfo/DB locks to fix deadlocks
2004-07-03 20:03:14 +00:00
Howard Chu
42e0814247
Fix prev commit
2004-07-03 16:17:54 +00:00
Howard Chu
f696f7ab55
Fix: LRU corruption, HDB rename detection, Ctxcsn assert failure
2004-07-03 15:47:44 +00:00
Pierangelo Masarati
a0c28f4d7f
fix matchedValue (ITS#3209); might need work
2004-07-03 11:17:11 +00:00
Pierangelo Masarati
b72657acf0
typo in comment
2004-07-03 11:16:22 +00:00
Pierangelo Masarati
74f224583b
quick fix for ITS#3215; needs work to re-enable ACI caching, if possible at all
2004-07-02 16:45:06 +00:00
Ralf Haferkamp
3286e13a2c
reset o_next pointer before freeing the operation (otherwise an assertion
...
failure in slap_op_free is possible)
2004-07-02 14:57:35 +00:00
Howard Chu
356d862974
unifdef old code
2004-07-02 12:06:03 +00:00
Howard Chu
b8273cba9b
Fix pointer conflict with backglue
2004-07-02 11:59:05 +00:00
Howard Chu
bec599a954
Qualify some structure fields
2004-07-02 11:34:16 +00:00
Jong Hyuk Choi
a46d84544f
cleanup
2004-07-01 22:40:03 +00:00
Pierangelo Masarati
6465801cfc
beautify comment
2004-06-30 16:26:06 +00:00
Pierangelo Masarati
d8d3bded72
cleanup
2004-06-30 16:25:14 +00:00
Pierangelo Masarati
e779235391
cleanup
2004-06-30 01:17:05 +00:00
Kurt Zeilenga
7a6b0857b6
cleanup
2004-06-29 23:52:18 +00:00
Sang Seok Lim
ad19032bf2
This patch provides support for rdnMatch matching rule and RDN syntax in
...
RFC 3687. For now, both the attribute and assertion values are considered
as RDNs. Refer to ITS#3207 to find related discussion.
2004-06-29 23:36:58 +00:00
Pierangelo Masarati
8f6cce3296
improve logging...
2004-06-29 18:04:30 +00:00
Pierangelo Masarati
e052d7297d
`err' might be used uninitialized
2004-06-29 17:32:43 +00:00
Pierangelo Masarati
5256cbda6c
fix uniqueMemberMatch according to previous fix (related to ITS#3210)
2004-06-29 17:23:54 +00:00
Pierangelo Masarati
c25c3ed9e5
fix nameUID* and uniqueMember* stuff in a consistent manner (related to ITS#3210)
2004-06-29 16:29:00 +00:00
Ralf Haferkamp
498530fc4c
TS#3213: free copy of e_attrs before retrying the transaction in bdb_modify()
2004-06-29 14:52:03 +00:00
Jong Hyuk Choi
2adcccb27d
logging psearch return code
2004-06-28 23:51:17 +00:00
Kurt Zeilenga
6830aca2d1
cleanup
2004-06-28 23:03:01 +00:00
Kurt Zeilenga
537aab8a14
A more strict oidValidate
2004-06-28 22:53:19 +00:00
Pierangelo Masarati
279d629c81
fix nameUID/uniqueMember stuff (ITS#3210)
2004-06-28 22:10:27 +00:00
Pierangelo Masarati
70af36dbf5
trim useless code
2004-06-28 22:01:30 +00:00
Pierangelo Masarati
c84b7502c5
fix oidValidate() when a OID contains a single '0' (ITS#3211)
2004-06-28 22:00:28 +00:00
Pierangelo Masarati
c34a30a149
fix memory usage
2004-06-28 21:51:08 +00:00
Pierangelo Masarati
9a2b8f9d40
honor signedness
2004-06-28 21:20:13 +00:00
Pierangelo Masarati
a7a90609a9
propagate search result (maybe this is not what bdb_psearch() is intended to do...)
2004-06-28 21:08:32 +00:00
Pierangelo Masarati
a4f50c268a
fix typo in comment
2004-06-28 20:59:04 +00:00
Kurt Zeilenga
372a941334
add baseObject as alias for base.
...
cleanup
2004-06-28 06:42:00 +00:00
Jong Hyuk Choi
08949463c5
- use ctxcsn_locker for the ctxcsn add transaction
...
- removal of LOCK_ID_FREE
- misc mem mgmt cleanup
2004-06-28 05:47:36 +00:00
Kurt Zeilenga
fbca1397a3
cleanup
2004-06-27 02:35:48 +00:00
Howard Chu
29f24962be
Fix uninit'd exopflags
2004-06-26 01:17:24 +00:00
Howard Chu
5fd7534f79
Fix previous commit, deleting under suffix...
2004-06-25 20:04:16 +00:00
Howard Chu
826b177877
More locking cleanup (ITS#3201, etc)
2004-06-25 05:29:33 +00:00
Jong Hyuk Choi
22df3f94e4
internal operation return value processing cleanup
2004-06-25 02:27:02 +00:00
Kurt Zeilenga
e8b2c7f3be
Fix wrong error when using operative attribute in
...
objectclass definition (ITS#3205)
2004-06-25 01:05:49 +00:00
Howard Chu
3c68fc1f14
ITS#3201 fix conflict with BDB internal locks
2004-06-24 23:50:10 +00:00
Howard Chu
f7f6861a26
ITS#3201 fix conflict with BDB internal locks
2004-06-24 23:35:18 +00:00
Howard Chu
c63817b9bd
ITS#3201 partial fix. still encountering deadlocks.
2004-06-24 17:56:43 +00:00
Kurt Zeilenga
8bca3b42f9
Rework pre/post read controls to handle retry conditions...
...
(and plug leaks)
2004-06-23 06:56:23 +00:00
Kurt Zeilenga
e23b0f677f
Move pre/post read calls into outer transaction.
...
Need to fix retry handling.
2004-06-23 06:02:49 +00:00
Jong Hyuk Choi
ec9d21e094
use ltid if it exists; use NULL otherwise.
2004-06-23 05:10:18 +00:00
Kurt Zeilenga
ee7dfb2ab9
cleanup
2004-06-23 03:09:13 +00:00
Jong Hyuk Choi
bc6b28a650
using write lock in accessing pslist
2004-06-23 02:07:12 +00:00
Jong Hyuk Choi
81c59404e9
use txn locker if it exists; get one otherwise.
2004-06-23 02:00:00 +00:00
Kurt Zeilenga
e5a37f2125
SLAPD_DISCONNECT v -1 cleanup
...
misc other cleanup
2004-06-23 01:04:52 +00:00
Kurt Zeilenga
83476f2d98
Add pre-read FIXME comment
2004-06-22 23:44:35 +00:00
Jong Hyuk Choi
28bd88d289
more timelimit cleanup
2004-06-22 23:23:37 +00:00
Jong Hyuk Choi
b459e59394
patch for ITS#3173
...
- passing transaction ptr to psearch
2004-06-22 23:22:16 +00:00
Kurt Zeilenga
4e6ed7072d
cleanup
2004-06-22 19:49:00 +00:00
Jong Hyuk Choi
3917d2b15d
limit checking in syncrepl
2004-06-22 18:15:29 +00:00
Pierangelo Masarati
d8eff4d1b5
use hard limit instead of returning adminLimitExceeded when requested limit exceeds hard; improve (and document) syntax; modify test025 accordingly
2004-06-22 09:43:41 +00:00
Pierangelo Masarati
445067260e
asserts contradict the comment above and are basically wrong
2004-06-22 08:40:53 +00:00
Pierangelo Masarati
528b6c7e25
clear pagedresults_state if reusing an inactive connection; prepare for more consistent behavior of pagedResults control
2004-06-21 21:31:55 +00:00
Pierangelo Masarati
eb6dcbe246
fix ITS#3196; more to do
2004-06-21 17:51:28 +00:00
Pierangelo Masarati
5ff789e379
fix pagedResults dangling pointer in parsing cookie (ITS#3089)
2004-06-21 17:49:03 +00:00
Pierangelo Masarati
120470e1d6
clarify usage for internal searches
2004-06-21 09:10:46 +00:00
Jong Hyuk Choi
a1308f8dfa
syncrepl retry code fix for correct timing
2004-06-21 07:03:49 +00:00
Pierangelo Masarati
1f70ad82f2
clean up unnecessary checks; don't use SASL native authz if authz ID is not static, because back-ldap pools connections...
2004-06-21 00:57:12 +00:00
Pierangelo Masarati
eca48b6f20
not sure that cyrus-sasl doesn't honor empty authz; need to check
2004-06-20 23:21:40 +00:00
Pierangelo Masarati
5bfb9fd590
make authz mode selection fully manual, plus more cleanup
2004-06-20 22:42:36 +00:00
Pierangelo Masarati
176e5542bb
fix erroneous logging
2004-06-20 22:42:04 +00:00
Pierangelo Masarati
7fe1acca92
add shortcut for 'users'; but, very important, cleanup rewrite replacement to authz-regexp
2004-06-20 22:41:24 +00:00
Luke Howard
4eaef6a37d
Do not crash if computed attribute has no values - necessary for range retrieval
...
support
2004-06-20 18:04:01 +00:00
Pierangelo Masarati
5d843b2b13
detect mechs that are known to perform native authz
2004-06-19 18:32:55 +00:00
Pierangelo Masarati
f34b11760a
allow a hidden parameter to instruct the proxy that the SASL mech can do native authz; will disappear as soon as I can detect it automnatically
2004-06-19 18:18:26 +00:00
Pierangelo Masarati
97f96aaaa6
cleanup limits for internal searches...
2004-06-19 17:07:36 +00:00
Pierangelo Masarati
96fe39e99f
minor cleanup
2004-06-19 15:17:41 +00:00
Pierangelo Masarati
e6065fb20d
li->be didn't work; since it seems to be unnecessary, it's been removed; please check
2004-06-19 15:16:51 +00:00
Pierangelo Masarati
344edca731
protocol only allows positive integers; remove checks
2004-06-19 10:40:24 +00:00
Pierangelo Masarati
c06208527c
protocol only allows positive integers; check, just in case...
2004-06-19 10:32:17 +00:00
Pierangelo Masarati
a689d81536
typo?
2004-06-19 10:02:53 +00:00
Pierangelo Masarati
7e833d90a7
implement server side of "max" limit
2004-06-19 10:02:27 +00:00
Kurt Zeilenga
18a68380f6
More paged results cleanup
2004-06-18 23:12:03 +00:00
Kurt Zeilenga
4b2fcbc14d
Fix nentries logging
2004-06-18 23:10:26 +00:00
Kurt Zeilenga
aa9627e61c
Don't return useless estimate.
2004-06-18 23:07:56 +00:00
Kurt Zeilenga
c5601aad66
Fix last commit... needs $srcdir
2004-06-18 22:21:01 +00:00
Kurt Zeilenga
73202e3910
Fix typo in last commit
2004-06-18 19:12:00 +00:00
Pierangelo Masarati
42f3b3d87b
improve parsing - first step
2004-06-18 09:11:53 +00:00
Jong Hyuk Choi
763f8c76ee
syncrepl retry-on-error code
2004-06-18 05:04:03 +00:00
Kurt Zeilenga
2478fdf2ec
A very basic DB_CONFIG example
2004-06-18 04:49:08 +00:00
Jong Hyuk Choi
ef0a404729
revert pervious change
2004-06-18 02:59:47 +00:00
Pierangelo Masarati
40e42fcd11
res is already freed by ldap_parse_reference() (ITS#3190)
2004-06-17 18:27:51 +00:00
Kurt Zeilenga
87c28866de
cleanup
2004-06-16 23:49:35 +00:00
Pierangelo Masarati
a317f01dc1
improve pagedResults ignoring (hopefully)
2004-06-16 15:26:21 +00:00
Kurt Zeilenga
0ae37bd468
Add SLAP_BFLAG_NOLASTMODCMD backend flag. When set, use of
...
the lastmod command will fail. To be set by backends
(e.g., back-ldap) which force the value of SLAP_DBFLAG_NOLASTMOD
database flag.
2004-06-16 04:47:21 +00:00
Howard Chu
06f3bfb7f9
More for ITS#3188
2004-06-16 03:29:02 +00:00
Kurt Zeilenga
7537d3d843
Partial fix for ITS#3188.
...
As Howard noted, additional fixes may be needed in other update routines.
2004-06-15 21:13:40 +00:00
Kurt Zeilenga
6826810ea7
allow logging to USER and DAEMON (ITS#3187)
2004-06-15 07:22:48 +00:00
Jong Hyuk Choi
5ac9de4d36
More backglue fix: do not return NO_SUCH_OBJECT when the base object is located above the subordinate database in search
2004-06-14 23:41:13 +00:00
Pierangelo Masarati
6c41f12ff1
fix build when #define BACKSQL_TRACE
2004-06-14 20:04:36 +00:00
Pierangelo Masarati
ba3dde6d16
return pagedResultsControl with empty cookie at end of search (ITS#3161)
2004-06-12 18:22:53 +00:00
Pierangelo Masarati
c0490482d6
ignore the control if page is larger than requested sizelimit (as per RFC)
2004-06-12 17:37:37 +00:00
Pierangelo Masarati
4c685bfd1e
clarify no limits in (internal) searches
2004-06-12 17:32:20 +00:00
Pierangelo Masarati
0c49718e82
clean up search limits enforcement
2004-06-12 17:31:45 +00:00
Pierangelo Masarati
8e3fba7e1e
silence a few (mostly harmless) warnings
2004-06-12 15:08:59 +00:00
Howard Chu
8138b5258f
ITS#3182 ? clear ctrls after sending paged response
2004-06-12 12:29:18 +00:00
Howard Chu
d57b404889
back-hdb fixes for ITS#3063
2004-06-12 12:27:22 +00:00
Pierangelo Masarati
d1b692ceb4
clarify no limits in (internal) searches
2004-06-12 11:33:21 +00:00
Howard Chu
7c7754b956
Better fix for ITS#3063, #3186
2004-06-12 07:39:24 +00:00
Howard Chu
9cf45220d2
ITS#3186 don't print error when empty DN "" is the only thing missing
2004-06-12 05:29:55 +00:00
Howard Chu
0b24ae9a12
Fix prev commit
2004-06-12 05:29:07 +00:00
Howard Chu
b9e3f66c7c
Add glue for root DB (ITS#3063)
2004-06-12 04:31:17 +00:00
Howard Chu
591acac04f
Another crash for ITS#3063
2004-06-12 03:25:15 +00:00
Kurt Zeilenga
25166f8166
cleanup
2004-06-11 00:14:01 +00:00
Kurt Zeilenga
ed4811039e
cleanup
2004-06-09 05:20:57 +00:00
Jong Hyuk Choi
aa61c0b122
ITS#3180 Fix
2004-06-08 02:54:21 +00:00
Jong Hyuk Choi
f60f2d5048
Fix typo
2004-06-08 02:52:59 +00:00
Howard Chu
932d924f50
ITS#3170 fix uninit'd mod.sml_nvalues
2004-06-03 23:09:25 +00:00
Kurt Zeilenga
248e73c7e1
TLS availability should check slapd's context not the default context.
2004-06-02 17:38:04 +00:00
Kurt Zeilenga
b438e6b533
ITS#3166: correct slapi_entry_attr_get_* return types
...
patch provided by Martin Evans
2004-06-01 22:07:57 +00:00
Jong Hyuk Choi
43045c0d71
Fixing backglue behaviors
...
1) Return NO_SUCH_OBJECT if base object cannot be located
2) Does not search databases that are superior to the base object of the search
2004-06-01 20:17:11 +00:00
Howard Chu
14ca92e851
load_ucdata is now a no-op
2004-05-31 05:44:04 +00:00
Kurt Zeilenga
3dcc2bf092
cleanup
2004-05-31 04:01:03 +00:00
Jong Hyuk Choi
5e761b1ea3
Fix for backglue limit checking
2004-05-31 02:03:39 +00:00
Jong Hyuk Choi
b85ba35ba7
Patch for ITS#3133
2004-05-31 02:01:59 +00:00
Kurt Zeilenga
2ec6755eda
Don't shortcut scope base searches. Base scope searches can be
...
useful to ensure target entry exists.
2004-05-30 22:15:39 +00:00
Howard Chu
0bcb9c3150
Fix ITS#3155
2004-05-27 08:54:34 +00:00
Howard Chu
2c0d735aa7
Fix ITS#3160, decrement conn->c_n_ops_pending when removing an op from
...
the conn->c_pending_ops queue.
2004-05-27 08:45:27 +00:00
Pierangelo Masarati
650ca42066
provide support for usage()
2004-05-26 12:29:17 +00:00
Pierangelo Masarati
06782dac3b
remove '-S'; improve usage()
2004-05-25 17:42:06 +00:00
Pierangelo Masarati
417f709978
fix previous commit
2004-05-25 13:35:04 +00:00
Pierangelo Masarati
cab43a6816
infrastructure for '-o <option>[=<value>]' args
2004-05-25 10:44:51 +00:00
Howard Chu
7488f557cd
Fix entry_get, only check mapped attr if attr was provided
2004-05-25 04:54:32 +00:00
Kurt Zeilenga
6e17b60648
add command line option (-S) to enable SLP registration (ITS#3132)
...
off by default. Option assignment is temporary, should be replaced
with "-o slp=<ON|off>".
Based upon patch submitted by Ralf Haferkamp (SuSE).
2004-05-24 23:28:52 +00:00
Kurt Zeilenga
5a7f9858fe
cleanup
2004-05-24 23:23:50 +00:00
Luke Howard
ab48d0295d
slapi_ldap_init() / slapi_ldap_unbind()
2004-05-24 05:28:43 +00:00
Luke Howard
ba686c399b
slight optimization - use ldap_bv2dn()
2004-05-24 03:43:53 +00:00
Luke Howard
f9b719f56e
Implement slapi_entry_{get,set}_uniqueid
2004-05-23 16:04:27 +00:00
Luke Howard
e932093f47
Fix breakage
2004-05-23 15:51:58 +00:00
Luke Howard
4c2e3eeda4
Add slapi_entry_add_rdn_values(), slapi_entry_rdn_values_present(), slapi_entry_schema_check() API
2004-05-23 15:47:23 +00:00
Luke Howard
71d473f09f
Implement slapi_rdn2typeval and slapi_dn_plus_rdn
2004-05-23 12:43:59 +00:00
Luke Howard
f62d1aac4e
Implement slapi_entry_size()
2004-05-23 12:12:43 +00:00
Luke Howard
13e657ffa8
Implement slapi_entry_has_children()
2004-05-23 12:06:47 +00:00
Pierangelo Masarati
a18e199e0d
more on identity assertion
2004-05-22 17:26:02 +00:00
Howard Chu
910101a267
ITS#3064 don't reset sync interval to zero on PERSIST
2004-05-21 23:53:14 +00:00
Howard Chu
88e2a06b5e
ITS#3151 always reschedule consistency_check task
2004-05-20 00:13:05 +00:00
Howard Chu
73fa8b7dd9
ITS#3153 only cache queries with at least one entry
2004-05-19 23:37:14 +00:00
Howard Chu
464866d57b
Fix normalized mods in slap_entry2mods (ITS#3144, ITS#3152)
2004-05-19 23:20:04 +00:00
Howard Chu
a11553c212
Always normalize entries (ITS#3152, ITS#3144)
2004-05-19 23:19:24 +00:00
Howard Chu
69ff27f9d6
ITS#3150 fix uninit'd return_val
2004-05-19 22:07:06 +00:00
Kurt Zeilenga
a3df8a82b4
cleanup
2004-05-19 19:39:40 +00:00
Kurt Zeilenga
420bd2ff40
cleanup
2004-05-19 19:23:01 +00:00
Howard Chu
681431e73a
Fix prev commit, test015 works again
2004-05-19 07:31:22 +00:00
Howard Chu
9a758383fa
ITS#3146 plug extended match memory leaks
2004-05-18 09:11:38 +00:00
Kurt Zeilenga
13c70ed410
fix up error handling, including disallowing sync+pagedResults combinations.
2004-05-15 19:26:48 +00:00
Pierangelo Masarati
fa0f020503
need to defer this...
2004-05-15 10:11:43 +00:00
Pierangelo Masarati
cdebc4d376
more on idassert: SASL bind/authz
2004-05-15 10:11:10 +00:00
Pierangelo Masarati
8b954144d6
reflect Kurt's comments on ID assertion
2004-05-14 10:01:22 +00:00
Kurt Zeilenga
74bfae5c22
cleanup
2004-05-14 04:48:44 +00:00
Pierangelo Masarati
657e580bbe
fix schema initialization when built as module...
2004-05-13 23:33:14 +00:00
Pierangelo Masarati
20140992a6
cleanup
2004-05-13 22:59:14 +00:00
Pierangelo Masarati
2e09e645ba
promoted proxyAuthz to STATS log level
2004-05-13 22:47:24 +00:00
Pierangelo Masarati
1543d3b95b
fix previous commit :)
2004-05-13 22:19:16 +00:00
Pierangelo Masarati
3b38676dd3
complete idassert options
2004-05-13 22:12:46 +00:00
Pierangelo Masarati
a10fe8e098
caught nasty empty DN bug
2004-05-13 22:12:24 +00:00
Pierangelo Masarati
66ddf62922
add idassert code (undocumented yet)
2004-05-13 20:25:53 +00:00
Pierangelo Masarati
3eebd5bb21
expose slap_sasl_matches() to allow external matching of authz* stuff; fix backwards compatibility bug for "dn:<pat>" as a shortcut to "dn.exact:<pat>"
2004-05-13 20:22:27 +00:00
Pierangelo Masarati
08a8e7b8c3
empty ID should be fine according to draft-weltman-ldapv3-proxy
2004-05-13 20:18:37 +00:00
Howard Chu
c0075d57b4
better fix for prev commit
2004-05-13 00:46:52 +00:00
Howard Chu
ee0af2b9d5
ITS#3137 defer schema loading until overlay configuration
2004-05-13 00:38:24 +00:00
Pierangelo Masarati
f109f1eb6d
fix ITS#3140
2004-05-12 23:29:42 +00:00
Pierangelo Masarati
0caf54b429
typo in error message
2004-05-07 21:53:44 +00:00
Pierangelo Masarati
d40e5a365a
fix DN_SEPARATOR() and clarify its use
2004-05-07 09:03:05 +00:00
Pierangelo Masarati
b34cf02488
more on fixing escaped semicolon in normalized DN
2004-05-07 02:18:08 +00:00
Pierangelo Masarati
80449c42d9
fix escaped semicolon bug in back-bdb
2004-05-07 02:09:06 +00:00
Pierangelo Masarati
dddee82680
cleanup
2004-05-06 14:51:14 +00:00
Luke Howard
b44a79965e
Fix ITS#3131 properly - set operation SSF to MAX(TLS, SASL) SSFs
2004-05-06 03:27:45 +00:00
Luke Howard
1bdbb9e4f5
ITS #3131 - propagate SSF to syncrepl operation
2004-05-05 05:41:43 +00:00
Kurt Zeilenga
a3bbc8adec
Update substr indexing macros to better separate
...
initial/final string settings from any string settings.
2004-05-04 22:31:57 +00:00
Pierangelo Masarati
d7ff03d4be
allow consistent modification of readOnly and restrictedOperation attributes
2004-05-02 22:08:12 +00:00
Pierangelo Masarati
05fbf1cc97
add restrictedOperation to databases; modification to come soon
2004-05-01 18:55:52 +00:00
Pierangelo Masarati
25a054a487
improve restricted exop
2004-05-01 18:55:23 +00:00
Pierangelo Masarati
03c64541d4
add granular op restriction
2004-05-01 17:53:37 +00:00
Pierangelo Masarati
9284fbf8ad
remove lint and cleanup namespace
2004-05-01 15:17:43 +00:00
Kurt Zeilenga
05463503e8
ITS#3118: fix objectIdentifierFirstComponentMatch for schema elements
2004-04-28 20:10:21 +00:00
Kurt Zeilenga
81d31dc721
ITS#3118: initial fix: (objectClasses=2.5.6.0) works
...
need to add special handler to allow (objectClasses=top) to work
2004-04-28 05:12:53 +00:00
Pierangelo Masarati
5e5e0cd98a
quick hack for ITS#3118; may need work
2004-04-28 00:09:25 +00:00
Pierangelo Masarati
60b05c643d
STRLENOF cleanup
2004-04-27 21:40:54 +00:00
Howard Chu
2349373daf
Don't allow changes to the monitor database
2004-04-27 12:18:42 +00:00
Pierangelo Masarati
932c79eac5
set schema first, so it can be used, e.g., in ACLs
2004-04-27 12:04:46 +00:00
Kurt Zeilenga
510eb8dff2
Blind portability fix
2004-04-27 07:23:04 +00:00
Howard Chu
9644d6d820
Added readOnly attribute, can be toggled on individual databases.
2004-04-27 01:56:38 +00:00
Kurt Zeilenga
5f2497910b
ITS#3115: don't increment argument to TOLOWER macro
2004-04-26 23:13:19 +00:00
Pierangelo Masarati
e1268a943b
scan all results for multiple entries; fail in case more than one entry is returned, regardless of matches
2004-04-26 22:47:08 +00:00
Pierangelo Masarati
1f9c26e69f
do not return entry pointer in case of failure
2004-04-26 22:46:13 +00:00
Pierangelo Masarati
0265f31b5b
fix size test in internal search for bdb/hdb
2004-04-26 21:47:02 +00:00
Kurt Zeilenga
bfd09a16a2
Use AC_STRERROR_R
2004-04-26 19:16:14 +00:00
Pierangelo Masarati
af842eb734
fix comment
2004-04-26 17:50:39 +00:00
Howard Chu
9b38cd2572
ITS#3109 - added slap_tls_ctx
2004-04-26 01:10:49 +00:00
Pierangelo Masarati
2919bc09ac
minor improvements
2004-04-26 00:17:58 +00:00
Pierangelo Masarati
ff0df4b6aa
add group authz
2004-04-25 23:59:06 +00:00
Pierangelo Masarati
0cd5b9f766
parsing bug (does not affect RE22)
2004-04-24 17:47:24 +00:00
Pierangelo Masarati
3c1c61c5ef
log slapi config read failure (partial fulfilment of ITS#3098)
2004-04-24 11:43:52 +00:00
Pierangelo Masarati
b69a2acdf5
use fist backend only if there is no global ACL (ITS#3100)
2004-04-20 19:26:02 +00:00
Pierangelo Masarati
dd0e285b12
experimental ACL scope correctness test
2004-04-20 19:16:21 +00:00
Pierangelo Masarati
b9dcdbb2d8
rename macro accordingly to new authz naming
2004-04-20 19:12:56 +00:00
Pierangelo Masarati
1c952c8a7e
revert prevuos NULL o_bd commit
2004-04-20 15:18:06 +00:00
Pierangelo Masarati
dd1f2772a5
cleanup
2004-04-20 14:55:18 +00:00
Pierangelo Masarati
4d3a49b33f
improve slapacl
2004-04-20 14:55:02 +00:00
Pierangelo Masarati
30f697beeb
improve dn.one="" fix
2004-04-20 14:50:16 +00:00
Pierangelo Masarati
537a4cae02
global ACLs were not used because op->o_bd is set to &backends[0] if NULL
2004-04-20 14:42:48 +00:00
Pierangelo Masarati
3c5f305a7f
fix acl bug when using dn.one=""
2004-04-20 14:15:39 +00:00
Pierangelo Masarati
a07d8ee0b7
improve slapacl option sanity checks
2004-04-20 09:17:26 +00:00
Kurt Zeilenga
1372965d89
ITS#3092: Rename sl_free() and friends to slap_sl_free()
2004-04-20 03:44:57 +00:00
Pierangelo Masarati
0aeec234ea
update
2004-04-20 00:32:46 +00:00
Pierangelo Masarati
b76bfe6351
more cleanup
2004-04-20 00:26:42 +00:00
Pierangelo Masarati
7b65d46b1b
add slapacl tool
2004-04-20 00:08:44 +00:00
Kurt Zeilenga
69eeb79662
Additional invalid objectClass changes (ITS#3097)
...
catch error in validation/pretty functions
2004-04-19 20:45:26 +00:00
Kurt Zeilenga
cd84c58d4a
Fix: ldapadd with undefined objectclass causes assertion failure (ITS#3097)
2004-04-19 19:27:51 +00:00
Pierangelo Masarati
2320192db0
more cleanup
2004-04-19 18:42:00 +00:00
Pierangelo Masarati
dd48690eaa
add logs; fix bug in group/dn selection logic
2004-04-17 18:12:37 +00:00
Pierangelo Masarati
249a214ca6
yet another problem in pr limits
2004-04-17 15:42:55 +00:00
Howard Chu
a2a2ccf848
Added static ppolicy, refinit, unique overlays
2004-04-17 15:41:31 +00:00
Howard Chu
7fb90589af
Fix replog check
2004-04-17 15:41:16 +00:00
Howard Chu
c8ca3e2af6
Assume slapd if argv[0] is unrecognized, don't fail.
...
libtool creates lt-slapd for some dynamic builds...
2004-04-17 15:28:07 +00:00
Howard Chu
81bc7fcc8c
Fix module link libraries
2004-04-17 15:12:20 +00:00
Pierangelo Masarati
7be90a7ddf
remove unused structure member ps_id
2004-04-17 15:01:13 +00:00
Howard Chu
e034b942bc
Added ppolicy rules
2004-04-17 13:35:54 +00:00
Pierangelo Masarati
6fe2750aa5
allow backwards compatibility for 'T' option (single char)
2004-04-17 10:48:40 +00:00
Howard Chu
8da6bf194a
Added referential integrity and attribute uniqueness overlays
2004-04-17 08:17:43 +00:00
Pierangelo Masarati
71921f219c
further improvement...
2004-04-16 19:10:09 +00:00
Pierangelo Masarati
9b3a3d5fce
improve tool mode selection by slapd switch
2004-04-16 18:54:15 +00:00
Kurt Zeilenga
a54900be42
s/saslAuthz/authz/
2004-04-16 06:12:13 +00:00
Pierangelo Masarati
93ff139915
split objectClass and attributeType mapping (should cure ITS#3091: Sybase compatibility)
2004-04-15 22:29:52 +00:00
Pierangelo Masarati
6624f68725
fix braindead config option (mostly harmless)
2004-04-15 20:27:43 +00:00
Pierangelo Masarati
9962894c58
sounds a bit more conservative...
2004-04-15 20:26:39 +00:00
Pierangelo Masarati
1f9d280b1a
sounds like we're there...
2004-04-15 11:12:01 +00:00
Pierangelo Masarati
e77b064aab
fix default sizelimit on pr (ITS#3085)
2004-04-15 09:15:30 +00:00
Kurt Zeilenga
7999211371
note that 'email' is deprecated in favor of 'mail'
2004-04-15 02:59:54 +00:00
Kurt Zeilenga
774cec3f84
misc updates
2004-04-15 02:59:38 +00:00
Luke Howard
22f425c1f3
Fix warning in assignment
2004-04-15 02:37:40 +00:00
Luke Howard
12949734bd
Fix warning in assignment
2004-04-15 02:36:23 +00:00
Luke Howard
b047ba6f7e
Fix warning
2004-04-15 02:35:39 +00:00
Pierangelo Masarati
9bad466a37
added schema from draft-joslin-config-schema-07.txt
2004-04-15 00:59:18 +00:00
Pierangelo Masarati
165778483b
fix paged results limits
2004-04-15 00:18:17 +00:00
Pierangelo Masarati
d7884b5853
rename macro
2004-04-14 23:23:46 +00:00
Pierangelo Masarati
e46e44c34d
enable use of librewrite for sasl-regexp only if librewrite is compiled (ITS#3084)
2004-04-14 23:17:57 +00:00
Pierangelo Masarati
3643d5fc16
cleanup
2004-04-14 17:47:53 +00:00
Pierangelo Masarati
ec34062ed4
improve logging
2004-04-14 12:50:11 +00:00
Pierangelo Masarati
62198f1c2e
re-fix limits checking logic
2004-04-13 20:38:36 +00:00
Pierangelo Masarati
63035a5b5b
allow optional overlays
2004-04-13 18:49:31 +00:00
Pierangelo Masarati
af71dbc4a8
more improvements
2004-04-13 18:43:59 +00:00
Pierangelo Masarati
61ee5897e0
various improvements
2004-04-13 18:41:00 +00:00
Pierangelo Masarati
d28cf4a77a
add slapsaslauth test tool
2004-04-13 17:26:32 +00:00
Pierangelo Masarati
faa1385f51
cleanup error messages and logs
2004-04-13 17:26:07 +00:00
Pierangelo Masarati
3ea4368913
add slapsaslauth test tool
2004-04-13 17:18:03 +00:00
Pierangelo Masarati
629cd41f58
use librewrite for sasl-regexp (need to #define SLAP_X_SASL_REWRITE; ITS#2886); lots of cleanup
2004-04-13 16:51:25 +00:00
Pierangelo Masarati
6c01508f0c
cleanup needed for tool mode compatibility (may need work)
2004-04-13 16:49:12 +00:00
Pierangelo Masarati
c846d75b8b
lots of cleanup
2004-04-13 16:47:23 +00:00
Pierangelo Masarati
755210c960
use librewrite for sasl-regexp (need to #define SLAP_X_SASL_REWRITE; ITS#2886); lots of cleanup
2004-04-13 16:47:04 +00:00
Pierangelo Masarati
171a47c05b
cleanup error messages and logs
2004-04-13 15:59:51 +00:00
Pierangelo Masarati
eae82899ca
silence warnings
2004-04-13 09:52:12 +00:00
Pierangelo Masarati
b2f17ad4ec
update OIDs
2004-04-13 09:02:03 +00:00
Howard Chu
d5df8e3f40
Fix paged search initialization
2004-04-12 17:59:27 +00:00
Kurt Zeilenga
4834e626ff
Fix overaggressive s/bvalues/values/ changes of previous commit(s)
2004-04-12 17:35:12 +00:00
Pierangelo Masarati
eb73849592
last mod overlay (needs cleanup)
2004-04-10 20:56:09 +00:00
Pierangelo Masarati
3342d93860
disable fancy key by default
2004-04-10 10:17:51 +00:00
Pierangelo Masarati
cbe91bccdb
typo
2004-04-10 10:13:12 +00:00
Pierangelo Masarati
c0c24cfec5
first round of SHADOW flags/isupdate test unification
2004-04-10 10:00:58 +00:00
Pierangelo Masarati
b703cfb008
Added provisions for a layer between the backend and the ODBC
...
for further mucking with data. This can be of use in ill situations
where not all the required massaging can be done on data with SQL
by means of stored procedures, but overlays are called too early
and cannot be used to make data non LDAP compliant.
- only support for bidirectional DN mucking is provided right now
- support for other values mucking is planned
- write is not completely tested yet
- the API could change quite often; don't rely too much on it
other cleanup has been added.
2004-04-10 09:33:55 +00:00
Kurt Zeilenga
071b9466c4
Fix approx matching when there is an equality index but no approx index.
...
Add better approx test
2004-04-09 21:30:55 +00:00
Kurt Zeilenga
6daaf88244
Fix typo
2004-04-09 21:13:41 +00:00
Kurt Zeilenga
07fc395816
s/bvalues/values/
2004-04-09 20:56:46 +00:00
Kurt Zeilenga
a122cda534
s/bvalues/values
2004-04-09 20:55:30 +00:00
Kurt Zeilenga
2f924dc488
Temporary defines for SLAP_*_SHADOW.
2004-04-09 20:43:15 +00:00
Pierangelo Masarati
b157f668b7
honor sizelimit requests on the overall count when pagedResults control is used; cleanup and more features
2004-04-09 17:55:21 +00:00
Pierangelo Masarati
2e13fbeea1
completion of limits w/ paged results control
2004-04-09 15:54:46 +00:00
Pierangelo Masarati
36941332a1
improve previous commit; now special limit on the number of total entries of a paged results can be set via the limits. Need to decide whether the default should be unlimited or what
2004-04-09 12:26:34 +00:00
Pierangelo Masarati
fadf3398d4
honor size limits when using paged results
2004-04-09 11:44:28 +00:00
Pierangelo Masarati
0505c64f08
blind fix to ITS#3069; I assume there's no reason to limit the sessionlog limit to 999
2004-04-09 11:22:07 +00:00
Kurt Zeilenga
3f739ce26e
Now with permissive modify
2004-04-08 22:10:38 +00:00
Kurt Zeilenga
0ec962a08b
Another bug.
2004-04-08 21:45:49 +00:00
Kurt Zeilenga
8198a8fd45
Fix typo in last commit
2004-04-08 21:37:12 +00:00
Kurt Zeilenga
2d09d0a8b1
This should be more complete.
...
But without permissive. That needs to be reworked completely.
2004-04-08 21:35:10 +00:00
Kurt Zeilenga
98baa45e6a
No need to check attribute values when a is NULL
2004-04-08 19:56:50 +00:00
Howard Chu
3fb7e5762b
Fix typo (ITS#3070)
2004-04-08 15:05:55 +00:00
Pierangelo Masarati
a886172472
blind fix of mod_values cleanup
2004-04-08 14:42:02 +00:00
Howard Chu
c86e07dd25
Fix ITS#3063, special case handling of "" suffix
2004-04-08 12:15:26 +00:00
Pierangelo Masarati
8be57d80ba
blind fix (tnx Howard); I'll check it later
2004-04-08 11:44:57 +00:00
Pierangelo Masarati
354372987f
General improvements:
...
- There might be special cases that require the unique key to be a string
(just ran into one); since this is not a generally useful change, it's
hidden behind #defines.
- Added essential support for telephoneNumber match; the same infrastructure
might be useful for other specialized matches (also regular matches should
use it to handle multiple spaces and so!).
- Fixed dynamic backend initialization.
- Cleaned up search base DN normalization (works also if no uppercase function
is available, using case exact matches).
2004-04-08 09:08:28 +00:00
Kurt Zeilenga
6b410330ed
cleanup
2004-04-08 07:04:34 +00:00
Kurt Zeilenga
c7f0438044
bvalue cleanup
2004-04-08 06:49:17 +00:00
Kurt Zeilenga
b217659088
ITS#3066: properly detect duplicates
2004-04-08 06:44:50 +00:00
Howard Chu
8c6fe48806
More dynamic/static cleanup
2004-04-08 05:58:54 +00:00
Howard Chu
f2e1df3ef7
Consolidated static/dynamic backend switches
2004-04-08 05:56:23 +00:00
Howard Chu
cba00e0025
Fix attributions, add HP info
2004-04-08 02:59:28 +00:00
Kurt Zeilenga
49e378af07
cleanup
2004-04-08 02:43:52 +00:00
Jong Hyuk Choi
1c1b2bb6ee
updatedn fix for syncrepl
2004-04-07 17:32:37 +00:00
Kurt Zeilenga
df4db9beb1
SLAPTOOL links should be to final dest directory
2004-04-07 16:55:04 +00:00
Howard Chu
0e2a12142a
Zero out rs->sr_err before send_search_entry
2004-04-07 16:41:17 +00:00
Howard Chu
76453e82ea
Cleanup, fix for SASL/PLAIN
2004-04-07 15:26:25 +00:00
Howard Chu
692c37720f
Fix internal search limits (due to recent limit_check change)
2004-04-07 15:10:26 +00:00
Kurt Zeilenga
44725e7303
use BER_BVNULL
2004-04-07 04:11:43 +00:00
Kurt Zeilenga
abbbbbe3bb
cleanup
2004-04-07 03:32:37 +00:00
Howard Chu
7122df3573
Fix search limits due to frontend limit_check change
2004-04-06 23:29:33 +00:00
Kurt Zeilenga
dd726c5b6f
delete from dn2id database bug in back-ldbm/idl.c (ITS#3046)
...
Suggested fix provided by Wout van Albada
2004-04-06 21:54:07 +00:00
Kurt Zeilenga
0c2c38c02f
ITS#3059: modrdn should delete than add.
2004-04-06 21:06:35 +00:00
Kurt Zeilenga
f7d8d55d84
cleanup
2004-04-06 19:42:37 +00:00
Kurt Zeilenga
158e5727b4
ITS#3056 partial fix - from a slurpd perspective, the updatedn
...
should be allowed to the entry at the naming prefix (database suffix).
2004-04-06 19:32:17 +00:00
Jong Hyuk Choi
b844e7fe42
Fix for ITS#3055
2004-04-06 17:58:03 +00:00
Pierangelo Masarati
7b4b144e7e
revert unnecessary change
2004-04-06 13:30:52 +00:00
Pierangelo Masarati
88c6f2ed38
initialize overlays
2004-04-06 13:19:12 +00:00
Pierangelo Masarati
25fce61f70
silence erroneous warning
2004-04-06 12:22:51 +00:00
Pierangelo Masarati
53e69064ff
load overlays also with tools
2004-04-06 12:22:29 +00:00
Howard Chu
464af5aeeb
Don't try to use runqueue in SLAP_TOOL_MODE
2004-04-06 12:21:49 +00:00
Pierangelo Masarati
779b3ba801
wrong arg order :)
2004-04-06 09:55:09 +00:00
Pierangelo Masarati
a11dc61e05
rework be_isupdate accordingly to be_isroot
2004-04-06 09:42:40 +00:00
Pierangelo Masarati
2808fb2cb7
fix addition of chk_referrals to overlay stack
2004-04-06 09:33:14 +00:00
Pierangelo Masarati
e17be551a4
fix previous commit
2004-04-06 08:47:59 +00:00
Kurt Zeilenga
13d25a675f
cleanup
2004-04-06 01:48:36 +00:00
Kurt Zeilenga
c7e89d57be
swap be_isroot and be_isroot_dn symbols
2004-04-06 01:06:20 +00:00
Kurt Zeilenga
37ef5350bd
Rework return of update referrals
2004-04-06 00:47:21 +00:00
Kurt Zeilenga
2095a7bc51
Fix last commit
2004-04-05 23:49:06 +00:00
Pierangelo Masarati
0f867b9577
revert erroneous commit; cure the test the right way
2004-04-05 23:47:17 +00:00
Kurt Zeilenga
9a64fdb991
use SLAP_DBFLAGS instead of be->be_flags
2004-04-05 23:42:59 +00:00
Pierangelo Masarati
313821118e
revert erroneous commit
2004-04-05 23:12:38 +00:00
Howard Chu
4b2febb3db
Allow users to change their own password by default, fix history check
...
when SafeModify is false.
2004-04-05 23:09:57 +00:00
Kurt Zeilenga
4ef7e08afe
updateref should be allowed with syncrepl (without updatedn)
2004-04-05 23:08:24 +00:00
Kurt Zeilenga
843400deb7
Add SLAP_SHADOW(be): true if be is a shadow database (via any mech)
2004-04-05 21:54:40 +00:00
Kurt Zeilenga
2fcaa15b90
First rounds of backend/database flag cleanup
2004-04-05 21:00:16 +00:00
Kurt Zeilenga
4122a9dd6a
Use SLAP_MONITOR(be) to check flag
2004-04-05 20:24:18 +00:00
Pierangelo Masarati
6a1dd9a1cd
exploit new frontend API 2 protocol error mapping; use urldesc...
2004-04-05 17:36:53 +00:00
Pierangelo Masarati
4e71b85481
exploit new frontend API 2 protocol error mapping
2004-04-05 17:32:59 +00:00
Pierangelo Masarati
e516247068
exploit new isroot_dn helper
2004-04-05 17:31:27 +00:00
Pierangelo Masarati
b89c894eff
add new isroot_dn helper
2004-04-05 17:30:30 +00:00
Pierangelo Masarati
f3ee96399e
move API 2 protocol error mapping to frontend; add new isroot_dn helper
2004-04-05 17:30:08 +00:00
Pierangelo Masarati
f6126f7db1
move API 2 protocol error mapping to frontend
2004-04-05 17:29:06 +00:00
Pierangelo Masarati
873be21a22
add referral check to functions elaborated by overlays
2004-04-05 17:28:13 +00:00
Pierangelo Masarati
0b37fb4eb1
check in portions of code is done on length rather than pointer
2004-04-05 17:25:22 +00:00
Howard Chu
939ca7705b
Avoid mktime/gmtime in parse_time(), just compute time_t ourselves.
2004-04-05 13:38:43 +00:00
Howard Chu
49da68a2bb
ITS#3048 delete sasl_checkpass support
2004-04-05 11:23:47 +00:00
Howard Chu
65e409817e
Fix prev commit, days at month boundaries
2004-04-04 15:40:14 +00:00
Howard Chu
ebd7bc27e7
Fix parse_time GMT computation for daylight savings time
2004-04-04 13:40:56 +00:00
Pierangelo Masarati
2387d2aff8
apparently accept() doesn't fill the sun_path field of the peer socket; hack it
2004-04-03 18:48:03 +00:00
Pierangelo Masarati
58c637479d
return error code only if required (ITS#3042)
2004-04-03 12:15:33 +00:00
Howard Chu
e1fc5012bd
Don't manipulate password history if not configured in policy
2004-04-03 06:21:03 +00:00
Kurt Zeilenga
ad6969e6cd
Add a yet-to-be-tested deliveryMethodValidate function
2004-04-02 02:25:36 +00:00
Kurt Zeilenga
6aded32c94
cleanup
2004-03-27 23:25:50 +00:00
Howard Chu
d1d1a0607e
Restore build rule for dynamic backends.
2004-03-27 23:20:55 +00:00
Kurt Zeilenga
100facedf3
Don't return subordinate referrals (per RFC 3296)
2004-03-27 22:47:31 +00:00
Kurt Zeilenga
2876b3bb84
Don't disclose information to attacker.
...
Referrals need work (not sure why return referrals for bind requests)
2004-03-27 18:19:52 +00:00
Kurt Zeilenga
9b9127eb3f
Cleanup
2004-03-27 18:19:12 +00:00
Jong Hyuk Choi
c1b50022e5
reintroduce changes made in tools/slapadd.c v1.64 (looks like missing during code move)
2004-03-26 21:54:06 +00:00
Kurt Zeilenga
855c22d862
Add numericStringOrderingMatch rule (ITS#2988)
2004-03-26 18:58:01 +00:00
Jong Hyuk Choi
4afcbf3131
fix for ITS#2995
2004-03-25 22:09:08 +00:00
Jong Hyuk Choi
c3d2afbbbe
patch for ITS#2948
2004-03-25 19:20:19 +00:00
Howard Chu
54fba01be2
ITS#3036 check for syncrepl
2004-03-25 09:40:02 +00:00
Howard Chu
1a314f3bca
ITS#3038 64bit compatibility (oops)
2004-03-25 09:25:25 +00:00
Kurt Zeilenga
3a468f5d90
cleanup
2004-03-24 23:44:45 +00:00
Howard Chu
81df94acaa
Silence warning
2004-03-24 10:47:31 +00:00
Kurt Zeilenga
bd765b849d
ITS#2768: configuring slurpd's interval between replog checks
...
based upon a patch submitted by Jason Townsend (Apple).
2004-03-23 01:12:11 +00:00
Kurt Zeilenga
ada53492fd
Seems all overlays are going here (at present)
2004-03-20 23:10:58 +00:00
Howard Chu
be16224b03
A toy/demo overlay for collective attributes.
2004-03-20 21:54:31 +00:00
Howard Chu
5db888434b
Overlay API notes. work in progress, please comment.
2004-03-20 20:30:57 +00:00
Pierangelo Masarati
2c74b5dbed
follow search references as well
2004-03-20 16:35:55 +00:00
Howard Chu
e9188de738
Replaced slap_overinfo.oi_bd with oi_orig.
2004-03-20 12:56:31 +00:00
Howard Chu
09a379394a
ITS#3033 fix debug msg segv
2004-03-20 09:51:33 +00:00
Howard Chu
9f5667c703
Restructure to release locks before sending result
2004-03-20 09:25:00 +00:00
Howard Chu
aec5d60620
Use REP_MATCHED_MUSTBEFREED reply flag
2004-03-20 09:24:01 +00:00
Kurt Zeilenga
9b91e0b067
Add readme.
2004-03-19 16:37:20 +00:00
Howard Chu
cbabd269a5
ITS#2457 Added LUTIL_SLASHPATH macro and func for converting
...
forward-slash paths to Windows back-slash format.
2004-03-19 08:06:42 +00:00
Kurt Zeilenga
56cdaa594c
ITS#3032: retry when GSSAPI creds are not available
2004-03-19 06:16:45 +00:00
Pierangelo Masarati
6beb139e61
fix nasty subtype bug (too many results)
2004-03-18 23:38:55 +00:00
Kurt Zeilenga
ec4e7ef232
Add note that some of the unimplemented matching rules are
...
now described in RFC 3698. Would be good to implement these.
2004-03-18 21:39:57 +00:00
Pierangelo Masarati
d3de8c3336
cleanup error messages
2004-03-18 20:11:49 +00:00
Pierangelo Masarati
9d48197461
to be conservative ...
2004-03-18 19:45:34 +00:00
Pierangelo Masarati
da79e55e4b
oops, I did it again
2004-03-18 19:45:15 +00:00
Pierangelo Masarati
1203eb4c82
cleanup rwm overlay; init/destroy session cookie; strip (optional) leading 'rwm-' from config directives
2004-03-18 19:21:57 +00:00
Pierangelo Masarati
fa3baaeae9
overlays reworking
2004-03-18 18:59:46 +00:00
Howard Chu
ea14637a0d
Fix prev commit
2004-03-18 10:51:18 +00:00
Howard Chu
d1292c1b14
Added ppolicy_use_lockout keyword; Default behavior is not to issue the
...
PP_accountLocked error for locked accounts. (Gives too much information
to attackers.)
2004-03-18 10:35:54 +00:00
Howard Chu
def2fab7b5
Added ppolicy_hide_lockout keyword
2004-03-18 10:20:27 +00:00
Kurt Zeilenga
a2b2dfd461
Hide noop control until published and code is updated.
2004-03-18 04:06:20 +00:00
Kurt Zeilenga
feef2424ad
Fix typo in commit before last
2004-03-18 01:20:14 +00:00
Kurt Zeilenga
f311255e3e
cleanup
2004-03-18 01:18:35 +00:00
Kurt Zeilenga
e323437c6a
cleanup for release engineering
2004-03-18 01:06:39 +00:00
Pierangelo Masarati
5ddbd69451
improve previous commit
2004-03-17 23:43:00 +00:00
Pierangelo Masarati
764aa5d938
move DN/config test in slapdn/slaptest
2004-03-17 23:25:09 +00:00
Pierangelo Masarati
cd8e154e4f
works in most cases ...
2004-03-17 22:37:59 +00:00
Pierangelo Masarati
802e3cc069
add labeledURI to back-ldap databases
2004-03-17 22:37:40 +00:00
Pierangelo Masarati
66ee9b2d73
carefully check the URI
2004-03-17 22:36:47 +00:00
Kurt Zeilenga
45332097a6
password always replaces old passwords
2004-03-17 22:21:21 +00:00
Kurt Zeilenga
5ff057089b
cleanup
2004-03-17 22:14:32 +00:00
Howard Chu
2808c8d302
Fix deadlock in remove_query_data
2004-03-17 20:45:14 +00:00
Howard Chu
448239a6c9
Fix a couple SEGVs
2004-03-17 19:33:35 +00:00
Howard Chu
2821d0bdd6
Add connection_fake_init()
2004-03-17 19:33:13 +00:00
Howard Chu
829bc9969d
Fix passing of state info to over_back_response
2004-03-17 17:59:47 +00:00
Pierangelo Masarati
3fe2cec561
only works with explicit overlay instantiation
2004-03-17 12:21:40 +00:00
Pierangelo Masarati
adb152972f
fix previous commit
2004-03-17 11:58:59 +00:00
Pierangelo Masarati
ec6a663820
reset SlapReply flags
2004-03-17 11:50:15 +00:00
Pierangelo Masarati
b3d238465d
added callbacks to most of the functions; more cleanup
2004-03-17 11:14:30 +00:00
Pierangelo Masarati
f07e485e82
search/unbind works; need to consistently add callbacks to other ops
2004-03-17 10:05:38 +00:00
Pierangelo Masarati
c0606cdfb7
reset flags (need to check consistence across slapd)
2004-03-17 09:59:04 +00:00
Howard Chu
dbade4ad8c
Fix account lock check
2004-03-17 09:54:49 +00:00
Pierangelo Masarati
32573b3418
need to turn it into a man page, when it freezes
2004-03-17 09:26:50 +00:00
Pierangelo Masarati
737f3d8636
slight improvements; doesn't work yet
2004-03-17 09:25:59 +00:00
Pierangelo Masarati
e9c8fd5ee6
actually, teh backend could also be selected on a per-operation basis, if "relay <real naming comntext>" is not provided
2004-03-17 07:56:19 +00:00
Pierangelo Masarati
ba470467af
add back-relay (doesn't work yet)
2004-03-17 01:03:21 +00:00
Pierangelo Masarati
fc28663a14
seeAlso to overlays as well
2004-03-16 22:18:45 +00:00
Howard Chu
52b3ca4a80
Fix non-standard OIDs
2004-03-16 22:00:10 +00:00
Pierangelo Masarati
c76427d8db
add overlay subsystem and connect it to databases
2004-03-16 21:58:29 +00:00
Pierangelo Masarati
16d820ad84
add iterator on overlays
2004-03-16 21:56:40 +00:00
Pierangelo Masarati
9f5f75c7b0
init 'oi' also when the backend already has overlays...
2004-03-16 21:55:45 +00:00
Pierangelo Masarati
a453df6280
add DN check mode; rework check sinfrastructure
2004-03-16 18:36:38 +00:00
Pierangelo Masarati
4fa18e1b37
remove {} from procedures invocation, as noted in ITS#2641; copied annotations from postgres example
2004-03-16 15:15:14 +00:00
Pierangelo Masarati
5ff958a5fd
fix brain dead count (part of ITS#2641)
2004-03-16 11:03:27 +00:00
Howard Chu
23a9893726
Password policy schema from draft 7
2004-03-16 10:34:24 +00:00
Howard Chu
b59da518cf
Password policy overlay, implements draft 7. The spec is still in flux;
...
this module should not be used in production.
2004-03-16 10:15:18 +00:00
Howard Chu
71bc8817e6
Revert "delete old" change; doesn't work for salted hashes.
2004-03-16 04:24:39 +00:00
Howard Chu
075137b8dd
Fix prev commit
2004-03-16 03:24:08 +00:00
Pierangelo Masarati
27f28d5270
handle overlays
2004-03-16 01:22:34 +00:00
Howard Chu
db52f51943
Preserve old slap_passwd_hash() signature, add slap_passwd_hash_type()
2004-03-15 20:58:41 +00:00
Howard Chu
0c9b308781
Delete old password if provided
2004-03-15 19:52:17 +00:00
Kurt Zeilenga
3e586bd393
cleanup
2004-03-14 00:59:37 +00:00
Howard Chu
e05b4b7db6
Cleanup result handling
2004-03-12 21:08:37 +00:00
Howard Chu
cdeda34029
Add c_conn_idx, to simplify external modules managing per-connection state
2004-03-12 18:22:37 +00:00
Pierangelo Masarati
ed1f5965bd
fix error message
2004-03-11 13:02:13 +00:00
Pierangelo Masarati
246fa41c96
"searchFilter" by default must be empty
2004-03-10 21:53:39 +00:00
Jong Hyuk Choi
33442d7ced
for ITS#3105
2004-03-10 21:49:08 +00:00
Pierangelo Masarati
2f4678f204
"searchFilter" by default must be empty
2004-03-10 21:44:22 +00:00
Pierangelo Masarati
c507808524
add "searchFilterAttrDN" rewrite context, and allow filterstring rewrite
2004-03-10 21:41:02 +00:00
Pierangelo Masarati
6a75d14930
revert previous commit
2004-03-10 21:12:53 +00:00
Pierangelo Masarati
65b49dd312
add "searchFilterAttrDN" rewrite context, and allow filterstring rewrite
2004-03-10 21:11:14 +00:00
Pierangelo Masarati
823fa1705e
rewrite entry DN-valued attrs
2004-03-10 19:04:18 +00:00
Pierangelo Masarati
d779a3d543
use prepare/bind/execute instead of bind/execdirect (addresses ITS#2641)
2004-03-10 14:51:41 +00:00
Howard Chu
35c774d3b8
Yet more for ITS#3008. Seems to work properly now.
2004-03-10 09:11:20 +00:00
Howard Chu
3853fade60
More for ITS#3008
2004-03-10 08:00:41 +00:00
Howard Chu
cac30b1855
ITS#3008 fix value-based ACLs
2004-03-10 02:59:03 +00:00
Howard Chu
75725a7ad8
Turn off syslog for slap tools
2004-03-10 02:44:38 +00:00
Howard Chu
826de96417
Minor cleanup
2004-03-10 02:44:10 +00:00
Jong Hyuk Choi
2b77fb424c
backend operations check
2004-03-09 20:43:19 +00:00
Jong Hyuk Choi
4bb948620a
checking limits at the frontend
2004-03-09 20:43:01 +00:00
Pierangelo Masarati
25b24289d2
fix typos
2004-03-09 20:21:10 +00:00
Pierangelo Masarati
006745430e
allow "expand" style in peername, sockname, sockurl as well; more sanity checks
2004-03-09 19:44:14 +00:00
Pierangelo Masarati
042869366d
use "expand" instead of "regex" for group ACLs that allow substring expansion, preserving backwards compatibility; add sanity checks
2004-03-09 16:33:05 +00:00
Pierangelo Masarati
490e1e4aa9
move limits check and preparation in a helper function
2004-03-09 15:59:01 +00:00
Pierangelo Masarati
960b5f8656
add sanity checks
2004-03-09 14:45:10 +00:00
Pierangelo Masarati
82019df71a
cleanup
2004-03-09 14:33:23 +00:00
Pierangelo Masarati
f145457d0c
move limits check and preparation in a helper function
2004-03-09 14:32:00 +00:00
Luke Howard
d249714033
s/SERVER_SEARCH_FLAG/SEARCH_FLAG
2004-03-09 14:12:34 +00:00
Luke Howard
87a02dbb14
Support server search flag control as alias for permissive modify
...
Recognise tree delete control - needs backend support
2004-03-09 14:05:01 +00:00
Pierangelo Masarati
28285002a1
deny an operation
2004-03-09 10:23:19 +00:00
Pierangelo Masarati
2fe1eb921d
cleanup
2004-03-09 07:08:04 +00:00
Pierangelo Masarati
6a425692be
another round at rwm; now add and compare are nearly complete; error handling is in place
2004-03-09 07:06:20 +00:00
Jong Hyuk Choi
ede2f47452
supress log message for glue add case
2004-03-09 00:34:32 +00:00
Jong Hyuk Choi
964dcc04a2
patch to fix consumer replica cookie format in slaptools
2004-03-09 00:34:01 +00:00
Pierangelo Masarati
a4e062ca36
apply advanced peername ACL (ITS#2907)
2004-03-08 18:49:12 +00:00
Pierangelo Masarati
091246c6fd
move limits evaluation to frontend
2004-03-08 18:12:45 +00:00
Pierangelo Masarati
4645eeb5ec
cleanup DN style in limits
2004-03-08 13:13:30 +00:00
Pierangelo Masarati
ac0d45179f
log set in ACL (ITS#2949)
2004-03-08 11:09:49 +00:00
Pierangelo Masarati
2d8467d480
declarations must occur before instructions
2004-03-08 11:01:52 +00:00
Howard Chu
48ac610097
ITS#3004 fix again
2004-03-06 19:16:20 +00:00
Howard Chu
113870c194
Revert to original code
2004-03-06 19:15:39 +00:00
Pierangelo Masarati
5c6ec10f48
massage normalized DN when either is fine
2004-03-06 16:49:08 +00:00
Pierangelo Masarati
29a5162483
cleanup
2004-03-06 16:47:58 +00:00
Pierangelo Masarati
9b6d816fe1
handle unknown attribute type (ITS#3005)
2004-03-06 15:58:26 +00:00
Pierangelo Masarati
abf2df7a11
initial round of fixes related to ITS#2986
2004-03-06 15:01:16 +00:00
Howard Chu
ea0d619dae
Store IDs in BeigEndian format on disk
2004-03-06 12:41:29 +00:00
Howard Chu
ef7195fc31
Store IDs in BigEndian format on disk
...
bdb_idl_cache_put replaces existing entries instead of ignoring them
2004-03-06 12:41:00 +00:00
Howard Chu
23b2ce8b3a
ITS#3004, fix IDL cache AVL comparisons
2004-03-06 12:29:19 +00:00
Pierangelo Masarati
5716b7f1b2
document saslAuthzTo/saslAuthzFrom new syntax; add onelevel style to DN type
2004-03-06 11:00:49 +00:00
Pierangelo Masarati
2b393962fc
fix continuation of ITS#2999
2004-03-06 09:33:24 +00:00
Howard Chu
efd23f5c0c
Fix prev commit
2004-03-05 19:29:02 +00:00
Howard Chu
9b16d161d5
Take advantage of IDL cache in bdb_idl_insert/delete_key
2004-03-05 15:41:30 +00:00
Howard Chu
18bb805736
Fix prev commit
2004-03-05 15:40:37 +00:00
Howard Chu
c5d8c776ca
Set IDL cache to 10x Entry cache by default
2004-03-05 13:46:12 +00:00
Howard Chu
896beebadc
unifdef SLAP_IDL_CACHE
2004-03-05 13:43:18 +00:00
Howard Chu
c558bd49bc
ITS#2992 Windows fixes from Alexey Melnikov
2004-03-05 12:24:06 +00:00
Howard Chu
87a4c01b29
ITS#2998 rename pcl -> be_pcl
2004-03-05 10:33:41 +00:00
Pierangelo Masarati
f5ffcae717
cleanup
2004-03-05 09:56:16 +00:00
Pierangelo Masarati
b761105439
improve fix to ITS#2999: don't care about limits after abandon
2004-03-04 23:02:30 +00:00
Pierangelo Masarati
23b0e84cb8
fix ITS#2999
2004-03-04 22:56:49 +00:00
Howard Chu
de1ee3757b
Fix missing EQAULITY rules
2004-03-03 10:51:32 +00:00
Howard Chu
896271195a
ITS#2974 fix hole array allocation
2004-03-02 23:01:04 +00:00
Howard Chu
4504b48c6b
default_passwd_hash now takes a list of schemes
...
passwordModify exop will generate all the configured hashes
2004-03-02 22:12:23 +00:00
Howard Chu
5f63dfc566
lutil_passwd_hash result berval is in argument list now
2004-03-02 22:11:31 +00:00
Howard Chu
1b98cd6262
Fix SLAPI_ADD_RESCONTROLS
2004-03-02 20:31:37 +00:00
Howard Chu
4a8bb3991f
ITS#2961 check for NULL authcDN
2004-03-02 18:37:49 +00:00
Howard Chu
e729d96ecd
ITS#2985 fix slappasswd typo
2004-03-01 14:54:05 +00:00
Howard Chu
b480d7c9ff
Added pwdexop request structure to avoid redundant parsing
2004-02-29 19:04:34 +00:00
Pierangelo Masarati
d015b9583c
handle filter computed in a more granular way (ITS#2977)
2004-02-28 16:05:59 +00:00
Pierangelo Masarati
ca5515b460
fix the problem right now
2004-02-28 15:20:56 +00:00
Pierangelo Masarati
fa2cb48f3a
should fix ITS#2983 - total count of ops initiated/completed in root of operations branch
2004-02-28 14:36:19 +00:00
Kurt Zeilenga
c850d82559
Move to Attic
2004-02-27 01:23:44 +00:00
Howard Chu
57ba4cac66
Merged slap tools with main slapd binary; installs symlinks.
...
tools directory is now obsolete.
2004-02-26 19:03:41 +00:00
Howard Chu
2d0af83c71
ITS#2934 - don't touch conn->c_sasl_dn for Simple Binds
2004-02-26 11:48:34 +00:00
Howard Chu
7fe35bcddb
ITS#2978 make sure liboverlays.a is always built and used
2004-02-26 03:38:38 +00:00
Howard Chu
0aebe2e51a
ITS#2970 fix build_new_dn for zero-length parent DN
2004-02-26 02:58:12 +00:00
Jong Hyuk Choi
4e3c30bbf0
misc addition to the previous glueing commit
2004-02-24 01:55:59 +00:00
Jong Hyuk Choi
d7d19b7420
Glue entry pruning: delete parent entries when they are glues and become leaves
2004-02-23 22:49:24 +00:00
Jong Hyuk Choi
372dcb78eb
Glue entry pruning : delete parent entries after modrdn when they are glue and become leaf entry
2004-02-23 22:48:46 +00:00
Jong Hyuk Choi
0c58aa3ab9
Glue entry pruning support: delete the parent entries when they are glue and become leaf
2004-02-23 22:47:55 +00:00
Pierangelo Masarati
6f9b99bc69
improve filter error logging in case of unknown attribute type
2004-02-23 11:45:19 +00:00
Jong Hyuk Choi
53d191e14d
syncrepl update: 1) improve error handling 2) glueing support for non-leaf deletion (TODO : deletion of leaf glue entries in the delete / modrdn code)
2004-02-22 20:44:44 +00:00
Pierangelo Masarati
4e57108991
allow search limits based on groups (ITS#2967)
2004-02-18 16:40:36 +00:00
Jong Hyuk Choi
528ea2f808
sync with the man page slapadd(8) : does not change syncrepl entries in the ldif file when neither of the promotion (-p) or the demotion (-r) option is given.
2004-02-17 23:56:18 +00:00
Pierangelo Masarati
129aa2884b
fix numericStringMatch (ITS#2938)
2004-02-17 20:30:37 +00:00
Pierangelo Masarati
1ac20b1f02
improve previous commit
2004-02-17 13:34:51 +00:00
Pierangelo Masarati
cb3d538ea3
allow no-user-modification propagations if back-ldap is used for replication (i.e. updatedn is defined)
2004-02-17 12:39:42 +00:00
Howard Chu
8a55795fbe
ITS#2888 fix back-ldap to check result of send_search_entry.
...
Make sure sizelimit errors are propagated.
2004-02-13 02:44:13 +00:00
Howard Chu
4479b4c417
ITS#2962 - EBCDIC db_version string
2004-02-13 00:53:02 +00:00
Howard Chu
b36e3a1ab0
ITS#2960 - make sure bi_open gets invoked
2004-02-13 00:42:21 +00:00
Kurt Zeilenga
5d0f6e75b4
Don't defer abandon due to pending
2004-02-10 00:17:21 +00:00
Kurt Zeilenga
3c1b2ed9cb
ITS#2959: provide reason for deferring operation in log message
...
Also, took away abandon operations blank check against deferment.
Abandon must be deferred in some cases (such as when other operations
are pending) and should be deferred in some other cases (such as too
many threads).
2004-02-09 21:33:21 +00:00
Jong Hyuk Choi
7707a66d33
fix for ITS#2947
2004-02-06 22:41:55 +00:00
Howard Chu
12b09c58e2
Another EBCDIC syslog fix
2004-02-04 23:00:05 +00:00
Pierangelo Masarati
253f70e0c2
fix duplicate key in metadata
2004-01-31 10:31:13 +00:00
Kurt Zeilenga
733c3c5f87
Remove now redundant error check
2004-01-30 05:33:27 +00:00
Howard Chu
e0e3560cf5
Use Btree instead of Hash for indexing
2004-01-28 05:00:56 +00:00
Jong Hyuk Choi
d84a5d29ab
Fix the missing delete problem (reported by Doug Council)
2004-01-27 18:16:40 +00:00
Howard Chu
89812424f4
Skip spurious Statslog's for callback-intercepted responses.
2004-01-22 01:20:15 +00:00
Howard Chu
54453690f6
ITS#2888 once more, fix sizelimit propagation
2004-01-21 10:25:41 +00:00
Pierangelo Masarati
eeb9a07823
make file names more slapd-ish; add attribute inheritance to search attributes; precompile uppercased search
2004-01-19 22:13:15 +00:00
Ralf Haferkamp
8b3a69ae39
Additional fix for ITS#2924: check for availability of
...
glueBack->be_entry_close before calling it
2004-01-19 14:38:15 +00:00
Pierangelo Masarati
6c27bf332c
cleanup
2004-01-17 18:26:36 +00:00
Pierangelo Masarati
945f3fc9d0
cleanup
2004-01-17 18:07:43 +00:00
Pierangelo Masarati
c4a8f58a0d
honor attributeType inheritance as well
2004-01-17 16:27:11 +00:00
Pierangelo Masarati
d65f402058
improve fix to ITS#2923; note that suffix massaging is inherently flawed, because comperisons should always occur on Normalized DN, while massaging can also occur on Pretty DN, but there is no guarantee they have the same length or any length-based comparison can work; so in any case, we should pass the Normalized DN and, if the Pretty DN is present, massage it as well accordingly
2004-01-17 12:25:46 +00:00
Pierangelo Masarati
2c049ebb42
fix ITS#2923
2004-01-17 11:48:14 +00:00
Pierangelo Masarati
fa856463fe
now I remember why I introduced the 'has_ldapinfo_dn_ru' flag
2004-01-17 11:33:13 +00:00
Howard Chu
4b88f8c1b2
slapd_shutdown/syncrepl fix
2004-01-16 20:02:07 +00:00
Howard Chu
f77474f1df
ITS#2924, fix transition to subsequent subordinates
2004-01-16 19:07:03 +00:00
Pierangelo Masarati
aa39de6db3
should improve readability and (hopefully) decrease traffic on openldap-software; sorry I can't test it right now
2004-01-16 18:56:22 +00:00
Howard Chu
c9d033ae30
Fix syncrepl slapd_shutdown detection, would not stop on a gentlehup.
2004-01-15 21:35:05 +00:00
Howard Chu
fc32304934
sl_malloc tweak
2004-01-15 21:32:58 +00:00
Howard Chu
bb1a97544d
ITS#2921, fix client connection handling for HAVE_WINSOCK
2004-01-15 20:20:17 +00:00
Howard Chu
d720ebdbbd
Fix static mingw dependency
2004-01-15 07:25:35 +00:00
Pierangelo Masarati
92a05ccf74
add extra level of parens only if required
2004-01-13 00:33:14 +00:00
Howard Chu
36914d7be6
trim prev commit
2004-01-12 04:15:51 +00:00
Howard Chu
a8dbfd322a
Really fix ITS#2905
2004-01-12 04:09:52 +00:00
Howard Chu
778516cc8c
Fix ITS#2905, properly detect duplicate entries
2004-01-12 03:54:01 +00:00
Pierangelo Masarati
fbb72268fb
warn if no suffix or no init function are present
2004-01-11 23:56:13 +00:00
Pierangelo Masarati
1a9bc6655d
don't segfault if a database doesn't have the suffix
2004-01-11 23:40:33 +00:00
Pierangelo Masarati
04096a3cca
fix ITS#2901
2004-01-11 22:52:07 +00:00
Pierangelo Masarati
db395f2cd7
don't search if the filter is invalid; search also if an attribute is undefined for that objectclass, the filter may succeed anyway
2004-01-11 22:50:25 +00:00
Pierangelo Masarati
93725181af
cleanup avl duplicate handling
2004-01-10 11:12:53 +00:00
Pierangelo Masarati
634324d5b9
allow multiple attribute definitions; honor ldap_entry_objclasses in filter; major cleanup
2004-01-10 10:42:44 +00:00
Pierangelo Masarati
354d8a183c
honor objectclass inheritance in filters + some cleanup
2004-01-09 11:43:00 +00:00
Kurt Zeilenga
c8408d3c6a
ITS#2906: report invalid userPassword schemes, clarify documentation
2004-01-09 04:11:57 +00:00
Pierangelo Masarati
14da72a97a
don't try to decide if uppercase based on LDAP matching rules
2004-01-09 01:53:03 +00:00
Pierangelo Masarati
15da03a587
table 'ldap_entries' must be aliased to allow filtering for DN-valued attrs
2004-01-09 01:48:41 +00:00
Pierangelo Masarati
e8e62aa617
need odbc libs when building back-sql as module
2004-01-08 23:00:44 +00:00
Kurt Zeilenga
57a7682f40
Fix typo in slap_auxprop_init() (should not impact behavior) (ITS#2909)
...
found by Nalin Dahyabhai (Redhat).
2004-01-08 01:14:04 +00:00
Pierangelo Masarati
1dd604fb04
fix ITS#2900
2004-01-05 18:32:27 +00:00
Luke Howard
3102602002
Fix previous commit
2004-01-02 06:34:50 +00:00
Luke Howard
53002fc3ce
Wrap slapi_entry_attr_get_charptr() around slapi_value_get_string()
2004-01-02 06:10:51 +00:00
Luke Howard
cc9101d980
Check value is a C string in slapi_value_get_string()
2004-01-02 06:07:22 +00:00
Kurt Zeilenga
3c598e89fb
Happy new year
2004-01-01 19:15:16 +00:00
Luke Howard
c03a70955d
Make defaulted backend available to ACL plugin pblock
2004-01-01 09:42:44 +00:00
Luke Howard
03e5db818f
Fix ACL plugin bug - return value of ACL plugins was being ignored
2004-01-01 06:33:18 +00:00
Jong Hyuk Choi
0c0b29fc85
a patch for persistent search
2003-12-31 22:11:38 +00:00
Kurt Zeilenga
d3168d0011
cleanup
2003-12-31 04:26:17 +00:00
Kurt Zeilenga
7f59380c5e
Quick hack for PSEARCH crash.
2003-12-31 04:26:07 +00:00
Kurt Zeilenga
45a0cbdfcd
cleanup
2003-12-31 01:41:16 +00:00
Kurt Zeilenga
d44c1d999d
clarify meaning of strongAuthRequired
2003-12-30 21:09:01 +00:00
Kurt Zeilenga
a3c1b64a73
Initial subordinate implementation (for chaining)
2003-12-30 03:53:03 +00:00
Luke Howard
f289d6b7f0
Fix assertion failure if acl_check_modlist() called where op->o_bd == NULL.
...
Behavior now matches access_allowed() - the first backend is used. The
code needs review, I have not tested it.
2003-12-30 03:50:14 +00:00
Kurt Zeilenga
29bd3d4056
Update OID
2003-12-30 01:58:23 +00:00
Kurt Zeilenga
c7f1759e80
Misc cleanup
2003-12-30 01:26:38 +00:00
Kurt Zeilenga
8538184861
LDAP_SCOPE_SUBORDINATES (for chaining)
2003-12-30 01:25:50 +00:00
Kurt Zeilenga
2775c8d4a8
Update no-op control to return LDAP_NO_OPERATION instead of LDAP_SUCCESS.
...
(back-sql needs to be updated)
2003-12-29 23:31:39 +00:00
Kurt Zeilenga
fcad25da47
Misc code cleanup
2003-12-29 22:25:43 +00:00
Luke Howard
0549d46adf
Don't require slapi to be in the path - always include slapi/slapi.h
2003-12-28 04:17:48 +00:00
Luke Howard
b0416d1140
Cleanup SLAPI namespace
2003-12-28 04:14:19 +00:00
Luke Howard
71dfd57e75
Initialize terminating bv_len in slapi_int_ldapmods2modifications
2003-12-27 08:43:02 +00:00
Howard Chu
e933f076cc
Better fix for ITS#2512. Use callback to invoke replog before sending
...
result to client.
2003-12-25 15:01:53 +00:00
Howard Chu
d8f9f4ee22
Revert prev commit, unnecessary
2003-12-25 14:57:26 +00:00
Howard Chu
c0b92cd963
Revert prev commit, not necessary
2003-12-25 14:56:02 +00:00
Howard Chu
4c1ce5a02a
Fix prev commit
2003-12-24 23:48:07 +00:00
Howard Chu
329bd66d6a
Use a separate mutex for the replication timestamp
2003-12-24 14:32:33 +00:00
Howard Chu
e6f34fddcd
ITS#2895 TXN_PREPARE is not needed since we use nested transactions. It
...
also has a side-effect of releasing all the transaction's existing locks.
2003-12-24 13:27:03 +00:00
Howard Chu
93390425df
ITS#2895 store a copy in the entry cache
2003-12-24 10:59:50 +00:00
Howard Chu
97edd9f83d
Fix bogus "Internal error" when deleting non-existent entry
2003-12-24 10:58:11 +00:00
Howard Chu
0fc932daee
Fix reject error logging
2003-12-24 10:39:14 +00:00
Howard Chu
45d24d16eb
Don't assume the replog is sorted, sort the queue before processing.
2003-12-23 18:51:52 +00:00
Howard Chu
d31230f859
Fix replog sequencing - assign sequence numbers at beginning of operation,
...
instead of getting a timestamp at the end. This makes it possible for
slurpd to sort the log later.
2003-12-23 18:48:36 +00:00
Howard Chu
c7da63df3d
ITS#2887 fix slapi crash
2003-12-23 18:40:56 +00:00
Howard Chu
8aaaad0dd7
Revert to simple authzID behavior
2003-12-23 14:27:54 +00:00
Howard Chu
171e934bf0
Execute overlays in reverse of config order.
2003-12-23 14:18:47 +00:00
Howard Chu
71c076dd5d
Avoid runtime copying of BackendDB
2003-12-23 14:12:54 +00:00
Pierangelo Masarati
18360d1eb2
fix previous commit
2003-12-20 17:41:08 +00:00
Pierangelo Masarati
79bc396ed8
in the <what> clause of ACLs, only 'attr=' or 'attrs=' are allowed; the former for backwards compatibility, while slapd.access(5) correctly uses only the latter form
2003-12-20 15:31:54 +00:00
Pierangelo Masarati
39574bcb5f
for consistency, always allow 'onelevel' as an alias for 'one' in dnstyle
2003-12-20 15:18:21 +00:00
Howard Chu
2b44c72d84
Fix handling of an_oc_exclude
2003-12-20 14:35:13 +00:00
Howard Chu
1586a68219
ITS#2888 don't return LDAP_SIZELIMIT_EXCEEDED prematurely
2003-12-20 10:10:59 +00:00
Howard Chu
c3bb9e42a6
More cleanup
2003-12-20 09:55:17 +00:00
Howard Chu
59f76d543c
Clean up prev commit
2003-12-20 09:19:19 +00:00
Howard Chu
d27b734770
ITS#2889 - fix explicit objectClass inclusion/exclusion
2003-12-20 06:28:05 +00:00
Luke Howard
120adb6b1b
Fix slapi_modify_internal() to deal with just the modification type of
...
a mod operation
2003-12-19 10:10:59 +00:00
Kurt Zeilenga
aabcce3e58
Document +0
2003-12-19 05:06:51 +00:00
Kurt Zeilenga
5481755c0e
Move ldapi to /var/run
2003-12-19 02:28:06 +00:00
Kurt Zeilenga
fdbd8705ae
Move pid/args files into $(RUNDIR)/run
...
Move ldapi into $(RUNDIR)/run/openldap
2003-12-19 02:18:29 +00:00
Howard Chu
3b0b66de10
Fix install rule
2003-12-18 20:26:05 +00:00
Kurt Zeilenga
e9133952fb
Move experimental built-in SASL behind SLAP_BUILTIN_SASL macro
2003-12-18 20:01:47 +00:00
Pierangelo Masarati
42d7d6d743
propagate flags to sasl-regexp functions (will need it later)
2003-12-18 18:32:45 +00:00
Pierangelo Masarati
113727ba53
allow 'all' vs. 'any' sasl-authz-policy
2003-12-18 18:28:43 +00:00
Kurt Zeilenga
babc993ef7
clarify default access control policy
2003-12-18 17:32:30 +00:00
Kurt Zeilenga
9647ccd945
Completely untested built-in EXTERNAL implementation
...
Needs identity mapping and proxy authorization support
2003-12-18 06:52:39 +00:00
Howard Chu
e4b899df95
ITS#2884 silence warning. We don't dereference this pointer, we just use
...
it's value as a unique key.
2003-12-18 03:54:48 +00:00
Howard Chu
9777dc2114
ITS#2883 initialize rc before running callbacks
2003-12-18 03:50:09 +00:00
Kurt Zeilenga
3eb5337020
Make modify/increment conditional
2003-12-17 21:42:48 +00:00
Pierangelo Masarati
f2a9089e4d
cleanup most of the -pedantic warnings (ITS#2884) and other small fixes
2003-12-17 20:55:46 +00:00
Kurt Zeilenga
271fff13de
Sync with HEAD
2003-12-17 17:55:27 +00:00
Luke Howard
516fd0ff50
First round of SLAPI cleanups - use slapi_int_XXX for internal functions
...
(slapi_x_XXX is still reserved for exported functions that are not part
of the SLAPI specification)
2003-12-16 15:49:31 +00:00
Pierangelo Masarati
2d948c7106
fix a couple of (too optimistic) comments...
2003-12-16 14:25:36 +00:00
Luke Howard
c8f62b12d3
Honour any controls that are sent by a SLAPI plugin
2003-12-16 11:17:54 +00:00
Pierangelo Masarati
8fa476a5c6
line up comments and code
2003-12-16 11:05:52 +00:00
Pierangelo Masarati
4e83a282d0
improve error handling for attr val ACL syntax
2003-12-16 10:56:21 +00:00
Luke Howard
0bcddbc908
Don't leak SLAPI_RESCONTROLS when free'ing parameter block - these
...
are allocated by the plugin
2003-12-16 05:59:50 +00:00
Kurt Zeilenga
a736f237f8
Deprecate +objectClass in favor of @objectClass per IETF discussions
2003-12-16 05:55:52 +00:00
Kurt Zeilenga
e3ffc1b165
Revert last commit
2003-12-16 01:55:56 +00:00
Pierangelo Masarati
e2483d8a9b
honor '!' (objectClass negation) when checking attribute presence in list
2003-12-16 01:10:33 +00:00
Pierangelo Masarati
ee34f3fb64
add to 'val[.<style>=<value>' ACLs special match styles for DN-valued attributes; add negated objectClass to attribute name lists for ACLs and partial replication
2003-12-16 00:49:10 +00:00
Howard Chu
6e6bef8f56
Fix - need to initialize lutil_passwd.
2003-12-16 00:39:29 +00:00
Pierangelo Masarati
bc972e0656
allow 'AUTHZ' mech in proxyAuthz control to allow also the <mech> part of the 'u:' user
2003-12-15 18:19:14 +00:00
Pierangelo Masarati
3a5c53a8b1
typo
2003-12-14 15:36:46 +00:00
Pierangelo Masarati
b4629f1e79
fix previous commits
2003-12-14 14:08:15 +00:00
Pierangelo Masarati
588f1f6185
resolve naming conflicts when compiling rwm overlay as static (will disappear as soon as rwm stuff is removed from back-ldap/back-meta)
2003-12-14 11:13:25 +00:00
Kurt Zeilenga
4d29df5bd1
Add LDAP_DEPRECATED macro
...
Need to remove use of deprecated functions.
2003-12-14 02:47:42 +00:00
Kurt Zeilenga
5b0236f4ae
Add u: comment
2003-12-13 23:41:44 +00:00
Kurt Zeilenga
1fadacaa31
Forward parse the uauthzid. A realm cannot be specified unless
...
a mechanism is specified. (Few mechanisms (DIGEST-MD5 only) support
separate realms.)
2003-12-13 23:38:05 +00:00
Pierangelo Masarati
4602c935f7
saslAuthzTo/From stuff
...
when comparing IDs to saslAuthzTo/From values, the saslAuthzTo
saslAuthzFrom values can take different forms:
dn[.<style>]:<pattern>
<style> ::= exact ; exact match
children ; children of <pattern> match
subtree ; <pattern> or children of <pattern> match
regex ; <pattern> is regcomp() & regexec()
if no <style>, then exact is assumed
u[.<mech>][/<realm>]:<user>
when parsing a proxyAuthz value, only exact DN is allowed,
and no <mech> can be specified. <user> cannot contain ':'
and <mech> cannot contain '/'.
2003-12-13 23:02:59 +00:00
Howard Chu
0d8613c274
Use c_authmech when c_sasl_bind_mech is empty
2003-12-13 22:43:01 +00:00
Howard Chu
e85cd1e154
Fix prev commit, use c_authtype
2003-12-13 22:16:03 +00:00
Howard Chu
d9aec4ef28
Always set c_authmech
2003-12-13 21:39:51 +00:00
Kurt Zeilenga
4bedf015f0
cleanup
2003-12-13 18:57:00 +00:00
Kurt Zeilenga
dbc37977f2
Look for the '@' in userid@realm in reverse so that a@b@c results
...
in userid of a@b and realm of c.
2003-12-13 17:25:59 +00:00
Pierangelo Masarati
6e5ddd6420
note a potential problem
2003-12-13 17:21:17 +00:00
Pierangelo Masarati
5a00f25542
conn must be non-null
2003-12-13 15:29:49 +00:00
Pierangelo Masarati
d6bc071dd9
add subtree/children styles to saslAuthzTo/From; 'dn:' now defaults to exact
2003-12-13 12:23:56 +00:00
Pierangelo Masarati
43db7cf4bf
cleanup saslauthz code
2003-12-13 10:58:31 +00:00
Pierangelo Masarati
529a03df53
use dedicated admin identity to proxyAuthz
2003-12-13 10:57:42 +00:00
Pierangelo Masarati
9c5fe98a79
declare overlays_init()
2003-12-13 10:57:13 +00:00
Howard Chu
b011c51390
Clean up entry initialization
2003-12-13 02:00:07 +00:00
Kurt Zeilenga
552a51ca50
Tweak the codes
2003-12-11 07:28:01 +00:00
Jong Hyuk Choi
fa2aa5bb25
fix for concurrent persistent searches
2003-12-11 00:04:52 +00:00
Howard Chu
2aca8de6b3
Whitespace
2003-12-10 08:52:19 +00:00
Howard Chu
e28d089a93
Fixup overlay build environment
2003-12-10 08:45:53 +00:00
Pierangelo Masarati
409003a731
make names unique, since back-ldap/back-meta still have/use suffix_massage* routines
2003-12-10 00:15:02 +00:00
Pierangelo Masarati
b5bba83a31
add rwm overlay configure and make stuff (need autoconf/autoheader ...)
2003-12-09 23:50:10 +00:00
Pierangelo Masarati
0176e02398
cleanup handling of unknown directives ...
2003-12-09 23:49:13 +00:00
Howard Chu
cc743d2c1f
ITS#2865 don't try to calloc 0 bytes, log an error and return instead.
...
Don't crash in slapcat when NULL entry is returned.
2003-12-09 20:10:44 +00:00
Howard Chu
67ee75ccd8
ITS#2868 check result from slap_startup
2003-12-09 19:26:14 +00:00
Howard Chu
313bb1dcae
Minor cleanup. Still need to address ITS#2866 point 2
2003-12-09 19:09:58 +00:00
Kurt Zeilenga
38ccdaf7a3
unifdef -DLDAP_CONTROL_PAGEDRESULTS (as it is always defined)
2003-12-08 18:16:07 +00:00
Kurt Zeilenga
fbba83b20f
notices and acknowledgements
2003-12-08 17:41:40 +00:00
Kurt Zeilenga
fd5ded3afb
notices and acknowledgements
2003-12-07 19:19:18 +00:00
Howard Chu
be1a728c5b
Added sc_next and sc_cleanup to slap_callback
2003-12-07 08:51:23 +00:00
Howard Chu
0690f79a5a
Cleanup unknown config directive handling.
2003-12-07 07:07:00 +00:00
Howard Chu
864aea13f7
ITS#2864 removed sl_mark/sl_release code
2003-12-07 04:00:47 +00:00
Howard Chu
b5052153c2
Minor cleanup
2003-12-07 03:59:54 +00:00
Howard Chu
b0b3eff457
ITS#2864 don't use sl_mark/release.
2003-12-07 03:41:10 +00:00
Howard Chu
9d3c808428
Fix bogus free
2003-12-06 23:54:22 +00:00
Howard Chu
44fc00b4c0
Remove trailing whitespace
2003-12-06 23:53:46 +00:00
Howard Chu
11a4b3eb57
Use runqueue for consistency checker
2003-12-06 23:32:56 +00:00
Howard Chu
74db966ebb
Move SLAB_SIZE def to slap.h
2003-12-06 22:30:45 +00:00
Howard Chu
0cef026e98
More memory cleanup
2003-12-06 21:55:47 +00:00
Kurt Zeilenga
c425a7ce1d
Move back-tcl to the Attic
2003-12-06 21:37:44 +00:00
Kurt Zeilenga
da6d557cdc
Notices
2003-12-06 19:25:01 +00:00
Howard Chu
c59e89de2f
Clear ocflags
2003-12-06 14:39:07 +00:00
Pierangelo Masarati
4ccd44af8b
improvements
2003-12-06 14:35:45 +00:00
Howard Chu
1a9064794a
Fix add invocation
2003-12-06 13:48:06 +00:00
Howard Chu
7751af3f74
Perform database updates as root
2003-12-06 11:25:37 +00:00
Howard Chu
066a80bbbb
Moved proxy caching to overlay
2003-12-06 11:12:53 +00:00
Howard Chu
1762b5b71d
Overlay build environment, remove internal proxycache support
2003-12-06 11:04:39 +00:00
Howard Chu
64e337eacf
Overlay build environment
2003-12-06 10:59:27 +00:00
Pierangelo Masarati
723bc044e0
changes required to use rwm overlay
2003-12-06 10:54:10 +00:00
Pierangelo Masarati
f02b6cfba7
first cut at dn rewrite/attr mapping overlay
2003-12-06 09:53:41 +00:00
Howard Chu
485f478707
Don't free default_referral
2003-12-06 06:12:45 +00:00
Luke Howard
e114ecbad5
Use gmtime_r()/localtime_r if HAVE_GMTIME_R/HAVE_LOCALTIME_R is defined (need to add autoconf check)
2003-12-06 05:50:47 +00:00
Luke Howard
399b57eada
Use gmtime_r() if HAVE_GMTIME_R is defined (need to add autoconf check)
2003-12-06 05:37:00 +00:00
Luke Howard
369b1515db
Ensure exact DNs are normalized in slap_parseURI.
2003-12-06 02:16:39 +00:00
Kurt Zeilenga
fc11d8312c
ITS#2861 fix: don't try to dup a NULL reqdata...
2003-12-05 19:54:42 +00:00
Howard Chu
58355c5bc2
Proxy-cache rewritten as an overlay
2003-12-05 15:49:38 +00:00
Howard Chu
3152932e96
Moved ldbm into back-ldbm. No more libldbm.
2003-12-04 22:38:54 +00:00
Kurt Zeilenga
20c8ea8a44
Update Mark's notice (with permission)
2003-12-04 21:12:17 +00:00
Howard Chu
2d07fc4f3b
ITS#2740 - link librewrite statically into back-ldap when it's built
...
as a module. Since back-meta also depends on back-ldap, this fixes
both at once.
2003-12-04 10:50:36 +00:00
Howard Chu
8c357efd28
ITS#2521 log names of unrecognized attributeTypes in search filters
2003-12-04 01:10:02 +00:00
Howard Chu
32752fb396
ITS#2836 add SLAPI_ADD_RESCONTROL support, fix SLAPI_RES_CONTROLS def
2003-12-04 00:52:03 +00:00
Howard Chu
841e865910
Reorganize, attempt some fault tolerance...
2003-12-03 12:30:28 +00:00
Howard Chu
8ba2296dc8
ITS#2795 fix double-free on failure, reset dn2id database
2003-12-03 11:31:43 +00:00
Howard Chu
e325a3a923
ITS#2795 fix hang. failure still leaves corrupt database though.
2003-12-03 11:06:00 +00:00
Pierangelo Masarati
93d0c25c45
syntax improvement (ITS#2852)
2003-12-03 00:29:29 +00:00
Kurt Zeilenga
4898913fb6
ITS#2807: version option support (-V[V]) based on patch submitted
...
by <luca.scamoni@sys-net.it>.
2003-12-02 16:57:34 +00:00
Howard Chu
7fd21ada07
ITS#2764, #2781 revert backend.c patch, just catch the NULL referral
...
case in extended_op
2003-12-02 03:01:49 +00:00
Howard Chu
49b0985c88
Fix prev commit, return generated passwd
2003-12-02 00:49:26 +00:00
Kurt Zeilenga
ed369e02af
Don't search for proxy authz control unnecessarily.
...
Add note regarding control use with the Bind operation.
2003-12-01 21:49:52 +00:00
Jong Hyuk Choi
da38356d16
fix prev commit
2003-12-01 18:09:48 +00:00
Jong Hyuk Choi
2bb75d5469
misc cleanup
2003-12-01 17:56:36 +00:00
Howard Chu
59e129158c
Removed passwd.c
2003-12-01 12:55:05 +00:00
Howard Chu
b552cdb5c7
Let the backend have a crack at the op (for back-ldap etc.), then do it
...
in the frontend if the backend doesn't.
2003-12-01 12:51:54 +00:00
Howard Chu
94f7141dda
Consolidate passwd extop in frontend
2003-12-01 12:38:11 +00:00
Howard Chu
77f8a2d72f
Added slap_null_cb
2003-12-01 12:20:51 +00:00
Howard Chu
7b423b20b0
Fix slapi include path
2003-12-01 12:14:39 +00:00
Howard Chu
42d8c0a39d
Added slap_null_cb
2003-12-01 12:03:20 +00:00
Pierangelo Masarati
bd134e22e5
ITS#2851
2003-12-01 11:12:04 +00:00
Pierangelo Masarati
cdb11fc5eb
add administrative bind and proxyAuthz control to enable bound operations in distributed directories (need to manually #define LDAP_BACK_PROXY_AUTHZ and patches from ITS#2851 and ITS#2852)
2003-12-01 08:04:51 +00:00
Pierangelo Masarati
2c68cb41f6
this memory will be freed by free()
2003-12-01 08:01:31 +00:00
Pierangelo Masarati
a4c5f54601
detect problems in saslauthz
2003-12-01 07:59:30 +00:00
Pierangelo Masarati
ff919168fb
if rule is an URI, must have a filter field
2003-12-01 07:50:27 +00:00
Kurt Zeilenga
0398bad8f0
Cleanup
2003-12-01 01:54:11 +00:00
Hallvard Furuseth
e491e9e522
Cleanup: Remove unused label 'no_co_op_free:' in connection_operation().
2003-11-30 16:14:40 +00:00
Jong Hyuk Choi
fb91d430f2
it seems more appropriate to return LDAP_SUCCESS.
2003-11-30 05:45:13 +00:00
Jong Hyuk Choi
0675a320d7
Fix copy & paste error. (ITS#2850)
2003-11-30 05:29:19 +00:00
Kurt Zeilenga
9f149d70f6
ITS#2847: fix syncCookie value_match
2003-11-30 03:30:39 +00:00
Kurt Zeilenga
041c8dacc2
Misc cleanup
2003-11-30 01:19:40 +00:00
Kurt Zeilenga
12d5c6bba2
Move global to ldapsync
2003-11-30 01:09:12 +00:00
Howard Chu
0a5f1e8516
#ifdef for slap_auxprop_store
2003-11-29 23:01:56 +00:00
Kurt Zeilenga
bd1543ce44
notices
2003-11-29 22:38:48 +00:00
Kurt Zeilenga
f0cd57eb9b
cleanup
2003-11-29 22:37:07 +00:00
Kurt Zeilenga
62e6779e4c
Cleanup rcsid comments
2003-11-29 18:03:43 +00:00
Pierangelo Masarati
3aa27601e1
fix 'control reaches end of non-void function'
2003-11-29 18:00:07 +00:00
Pierangelo Masarati
99a3164972
fix uninitialized buffer (ITS#2849)
2003-11-29 17:58:49 +00:00
Pierangelo Masarati
43f7494a5d
remove /* in comments
2003-11-29 17:52:05 +00:00
Pierangelo Masarati
e30a736354
clarify auxprop_store member type
2003-11-29 17:50:50 +00:00
Hallvard Furuseth
51f1b8ccd7
Avoid /* inside comments.
2003-11-29 17:29:44 +00:00
Hallvard Furuseth
d0a0687a26
Avoid 'suggest parentheses' warnings.
2003-11-29 17:27:44 +00:00
Hallvard Furuseth
3d522a0c9f
Format %d -> %ld.
2003-11-29 17:26:23 +00:00
Pierangelo Masarati
71d488c28f
fix uninitialized var
2003-11-29 17:24:34 +00:00
Howard Chu
65c26598d5
ITS#2846 - make veryclean
2003-11-29 12:01:10 +00:00
Howard Chu
ddd056158e
Add auxprop_store support for Cyrus SASL 2.1.16+
2003-11-29 07:02:16 +00:00
Hallvard Furuseth
1fc24a3a82
Fix format errors: %d -> %ld, and add (long) casts as appropriate.
2003-11-28 22:06:54 +00:00
Hallvard Furuseth
2448725f9a
#include lber-int.h, to get ber_strndup().
...
The right fix may be for slap.h to #include it instead, since
ber_strndup() is used via SLAP_STRNDUP() which is #defined in slap.h.
2003-11-28 22:05:38 +00:00
Hallvard Furuseth
546e074be0
Kill '//'-style comment.
2003-11-28 22:03:13 +00:00
Hallvard Furuseth
d45a47d40f
Delete $(LDIF_LIBS). The library has been merged into -llutil.
2003-11-28 22:01:44 +00:00
Kurt Zeilenga
9d811eb1fa
Notices
2003-11-28 21:08:20 +00:00
Kurt Zeilenga
410d514461
Notices and acknowledgements
2003-11-28 21:07:50 +00:00
Kurt Zeilenga
7000d76879
notices
2003-11-28 20:24:54 +00:00
Kurt Zeilenga
0bc23d571e
Fix last commit
2003-11-27 06:45:08 +00:00
Kurt Zeilenga
3e5875d7e7
notices and acknowledgements
2003-11-27 06:35:49 +00:00
Kurt Zeilenga
a3d8cda201
notices and acknowledges
2003-11-27 06:35:14 +00:00
Kurt Zeilenga
674e71710f
Notice and acknowledgements
...
"this is an altered version" statement
2003-11-27 02:35:20 +00:00
Kurt Zeilenga
7017749fb4
Notices and acknowledgements
2003-11-27 01:42:27 +00:00
Kurt Zeilenga
4e15a84452
Updated notices
2003-11-27 01:17:14 +00:00
Jong Hyuk Choi
4ae382fd79
misc updates
...
- syncrepl : id -> rid
- man page update
2003-11-26 21:37:44 +00:00
Jong Hyuk Choi
5d411fd963
Another patch for the multi syncrepl thread support
2003-11-26 20:40:16 +00:00
Jong Hyuk Choi
1fdda703e6
Support multiple sync replication at the consumer :
...
1) simultaneous operation of multiple active sync replication threads
2) cookie management for individual sync replication thread
(include rid=%3d to the slapd cookie command line option (-c))
2003-11-26 19:49:47 +00:00
Kurt Zeilenga
c43ad3b62f
Notes and Acknowledgements
2003-11-26 18:19:00 +00:00
Kurt Zeilenga
b9e8a942aa
notices and acknowledgements
2003-11-26 17:42:56 +00:00
Kurt Zeilenga
0f447a75c4
notices and acknowledgements
2003-11-26 17:34:58 +00:00
Kurt Zeilenga
fb88a1176e
notices and acknowledgements
2003-11-26 17:28:33 +00:00
Kurt Zeilenga
595fcbd29b
notices and acknowledgements
2003-11-26 17:17:26 +00:00
Kurt Zeilenga
c779e5b890
Notices and acknowledgements
2003-11-26 16:52:33 +00:00
Kurt Zeilenga
f6b9ac1338
Update notices and acknowledgements
2003-11-26 16:05:06 +00:00
Kurt Zeilenga
e3a4c4ec9c
Notice/Acknowledge updates
2003-11-26 02:58:56 +00:00
Kurt Zeilenga
b24f96cd51
Berkeley DB 4.2 support (DB 4.2 required by default)
...
libldif to libutil updates
notice updates
2003-11-25 23:22:12 +00:00
Howard Chu
2bfb0bdeb8
Fix spurious lock messages from slapcat
2003-11-25 10:31:10 +00:00
Jong Hyuk Choi
84a7381225
misc comment update
2003-11-24 17:45:44 +00:00
Jong Hyuk Choi
b6789f27b4
cleanup
2003-11-24 16:42:07 +00:00
Jong Hyuk Choi
40365af3f9
change default syncrepl base
2003-11-24 16:34:45 +00:00
Kurt Zeilenga
9259a8c558
hide openldapACI
2003-11-22 18:24:15 +00:00
Kurt Zeilenga
31f34d6985
Misc Update
2003-11-20 06:14:04 +00:00
Kurt Zeilenga
35dc15ad66
Normalize to IBM's OPL notice (with permission).
2003-11-20 05:11:37 +00:00
Kurt Zeilenga
986aabae01
Update to basic notice.
2003-11-20 04:59:01 +00:00
Kurt Zeilenga
b83074c348
Formating
2003-11-20 04:45:08 +00:00
Jong Hyuk Choi
efdd0fb6f9
add copyright heading (for replca management modifications)
2003-11-20 02:15:42 +00:00
Jong Hyuk Choi
f97dc983ac
Collective entryUUID transmission of PRESENT messages in a single PDU
...
(refer to draft-zeilenga-ldup-sync-04.txt)
2003-11-20 02:14:47 +00:00
Jong Hyuk Choi
89ac237d7c
slaptools : normalize entryUUID
2003-11-20 01:13:00 +00:00
Howard Chu
b179e05ea1
For previous, assert (writewaiter==0) in conn_destroy too.
2003-11-20 00:54:46 +00:00
Kurt Zeilenga
21796e671a
Don't assume offsetof(foo,firstelement) is zero
2003-11-19 18:04:49 +00:00
Howard Chu
1989cf6f42
More verbose error messages for Reject log
2003-11-19 10:23:08 +00:00
Howard Chu
d31a3fb981
ITS#2570 - don't permanently give up on TLS due to transient failures
2003-11-19 09:25:56 +00:00
Howard Chu
5083977fee
Cleanup TLS library, for ITS#2620
2003-11-19 09:01:13 +00:00
Jong Hyuk Choi
e9115c2f09
exchange normalized entryUUID
2003-11-19 07:28:42 +00:00
Howard Chu
a718cb335c
Unbind all connections on shutdown
2003-11-19 05:23:17 +00:00
Jong Hyuk Choi
91e69fc335
add slap_uuidstr_from_normalized()
2003-11-19 00:45:59 +00:00
Jong Hyuk Choi
9965ccc224
add slap_uuidstr_from_normalized() - any better place to put this ? liblutils ?
2003-11-19 00:45:20 +00:00
Howard Chu
86c0f733a4
Cleanup prev commit, assert if writewaiter != 0 in init
2003-11-18 22:55:53 +00:00
Jong Hyuk Choi
11a8655bc8
heading update
2003-11-18 22:42:41 +00:00
Jong Hyuk Choi
8ee301e011
csn format update & cleanup
2003-11-18 22:42:13 +00:00
Howard Chu
43a843dbf0
ITS#2832 init conn->c_writewaiter to 0
2003-11-18 22:18:33 +00:00
Kurt Zeilenga
99ba95ab92
cleanup
2003-11-18 22:11:11 +00:00
Jong Hyuk Choi
f6db6d336f
misc cleanup
2003-11-18 19:08:33 +00:00
Pierangelo Masarati
75244afd8d
silence warning?
2003-11-14 18:41:42 +00:00
Pierangelo Masarati
a3deda8026
fix a number of mem leaks; add destroy code; HEADS-UP: API change in rewrite_info_delete()
2003-11-14 18:39:18 +00:00
Howard Chu
e61748780b
ITS#2816 init_module for dynamic HDB
2003-11-13 21:49:48 +00:00
Howard Chu
f4649fbde3
ITS#2825 fix SASL internal searches
2003-11-13 21:42:28 +00:00
Howard Chu
14ea115209
ITS#2827 patch from Masato Taruishi
2003-11-13 08:22:03 +00:00
Jong Hyuk Choi
2d7481d662
adjust cookie precedence : command line cookie has higer precedence over stored cookie
2003-11-13 01:11:07 +00:00
Jong Hyuk Choi
64dd6a0760
fix for the cascading replication (reenabling test019)
2003-11-13 00:11:44 +00:00
Jong Hyuk Choi
0db0d4e005
fix typo
2003-11-12 07:05:12 +00:00
Jong Hyuk Choi
e36f1398f0
misc cleanup
2003-11-12 00:24:11 +00:00
Jong Hyuk Choi
f3586499d0
update ldapsync/syncrepl code according to the new version of
...
the protocol (draft-zeilenga-ldup-sync-04)
2003-11-11 20:25:19 +00:00
Jong Hyuk Choi
279760a467
1. Session history support
...
- memory based session history to minimize sync traffic
- when client is covered by a session history, then
[add+delete] mode is used
- when client cookie is not covered by the history because
the cookie is too outdated and/or the history is truncated,
[add+present] mode is used
2. Sync cookie syntax : comma separated name=value pairs
- csn=yyyymmddhh:mm:ssZ#0xSSSS#r#ssssr,sid=nnn
2003-11-10 02:44:25 +00:00
Kurt Zeilenga
bfafd42163
Code and logging cleanup
2003-11-06 03:42:46 +00:00
Jong Hyuk Choi
cc5e417234
second level interval support, interval=dd:hh:mm:ss
...
changed the test scripts and test conf files accordingly
2003-11-05 16:10:43 +00:00
Howard Chu
d46195d08d
ITS#2805 fix core dump using LDBM
2003-11-03 09:54:28 +00:00
Howard Chu
ccf224a759
ITS#2808 fix UUIDNormalize, use it.
2003-11-03 08:22:13 +00:00
Howard Chu
f2e1d7434b
Fix ASCII_HEX tests
2003-11-03 07:00:16 +00:00
Howard Chu
8acb1a0466
Fix refresh mode rescheduling
2003-11-03 06:57:13 +00:00
Howard Chu
fab84134ba
ITS#2806 fix abort
2003-11-01 23:03:44 +00:00
Kurt Zeilenga
80fa73bf8c
Update entryUUID to latest draft specification
2003-10-31 17:41:31 +00:00
Hallvard Furuseth
701f6b9d5d
cast isdigit argument to unsigned char.
2003-10-30 22:55:02 +00:00
Kurt Zeilenga
4eb36216db
ITS#2801: fix str2entry trace
2003-10-30 22:45:18 +00:00
Kurt Zeilenga
b1a1f46d64
cleanup
2003-10-30 22:44:45 +00:00
Howard Chu
5ed0318b79
Fix retry on failure
2003-10-25 22:07:31 +00:00
Howard Chu
782d1be0ad
Fix prev commit, don't timeout outbound connections
2003-10-25 21:14:07 +00:00
Pierangelo Masarati
b51cd87a22
this should be the intended behavior
2003-10-25 16:32:17 +00:00
Kurt Zeilenga
c7f1e6e83c
More naming checks
2003-10-25 02:26:19 +00:00
Kurt Zeilenga
9e7749541b
Provide more descriptive naming violation error messages
2003-10-25 01:40:55 +00:00
Kurt Zeilenga
802671cad7
fix compile error
2003-10-24 17:34:33 +00:00
Howard Chu
941d1e5c72
Outbound connection management
2003-10-24 12:58:13 +00:00
Howard Chu
08676eb49d
Add support for outbound connections in main listener.
...
Restructure syncrepl/persist to use outbound connection manager.
2003-10-24 12:57:24 +00:00
Howard Chu
645c2bcb02
Drop unused arguments from syncrepl_add_glue
2003-10-24 08:10:16 +00:00
Howard Chu
f9a8093c83
Drop SLAPI support
2003-10-24 06:06:55 +00:00
Howard Chu
df74409d97
Fix prev commit
2003-10-24 06:01:55 +00:00
Howard Chu
01f7a7466b
SLAPI fix - no-op when slapi_plugins_used == 0
2003-10-24 05:58:42 +00:00
Kurt Zeilenga
d0c05e814d
Add a basic DIT content rule test.
...
Fix DIT rules to allow extensibleObject in AUX
unifdef -DSLAP_EXTENDED_SCHEMA
2003-10-24 04:40:32 +00:00
Howard Chu
ac7404eabd
Fix error recovery, cleanup session handles. Always reschedule task
...
at end of do_syncrepl; this fixes the problem of syncrepl never starting
if the master isn't up. Set sync interval to 60 seconds in persist mode;
it will retry connecting to the master when the master isn't up. Fail on
SASL at config time instead of at runtime when SASL is not enabled.
2003-10-24 04:11:28 +00:00
Howard Chu
7126ccf569
Fix caseExact/caseIgnore IA5 normalization
2003-10-23 05:28:22 +00:00
Howard Chu
bd1356f01e
ITS#2781 don't worry about missing updateref if SLAPD_MULTIMASTER
2003-10-23 01:50:12 +00:00
Howard Chu
b0a1f2e956
(clean up o_groups anyway)
2003-10-23 01:30:54 +00:00
Howard Chu
6ad5fd16ca
Use tmpmem for group cache, doesn't need cleanup
2003-10-23 01:29:56 +00:00
Howard Chu
102d8159a7
ITS#2779, cache group ACLs per operation instead of per-connection
2003-10-23 01:23:45 +00:00
Kurt Zeilenga
e81d17e357
cleanup
2003-10-23 01:16:06 +00:00
Kurt Zeilenga
25f2985024
Don't return garbage when plist is empty.
2003-10-23 01:15:36 +00:00
Howard Chu
942320dca1
Fix dnPrettyNormalize mem usage
2003-10-22 10:35:49 +00:00
Howard Chu
72ace288e8
Fix prev commit, avoid abort when entry is NULL
2003-10-22 07:57:25 +00:00
Howard Chu
95a5866965
Shortcut syncrepl candidate selection if CSN is up to date
2003-10-22 07:53:28 +00:00
Jong Hyuk Choi
11e23f6903
syncrepl_entry() return code fix (returns 1 when e needs to be freed)
2003-10-22 06:28:34 +00:00
Kurt Zeilenga
ce4b199485
Syncrepl code cleanup (namely prefix struct field names)
2003-10-22 05:19:30 +00:00
Jong Hyuk Choi
8b8383a85d
fix for changing si->syncCookie to bvarray
2003-10-21 22:02:30 +00:00
Howard Chu
ab2a7195d0
Fix cookie search
2003-10-21 08:26:58 +00:00
Kurt Zeilenga
4821c2c6ed
Avoid questionable use of strlen(), strcpy(), and strcat().
2003-10-20 22:23:11 +00:00
Howard Chu
7710791382
ITS#2684 keep psearch operations on the connection's active list so they
...
can be located by connection_abandon() during an unexpected close. Remove
the operations in bdb_abandon() etc.
2003-10-19 11:20:34 +00:00
Howard Chu
56498a59dd
ITS#2780, redundant cache add
2003-10-19 09:55:31 +00:00
Howard Chu
91ebcd87bd
Fix prev commit, syncrepl_add_glue must start from sufix
2003-10-19 08:57:30 +00:00
Howard Chu
b144ca2169
ITS#2684 fix bogus entry_free(), connection problem remains
2003-10-19 04:42:02 +00:00
Howard Chu
f0c8dcc331
ITS#2778 use real malloc for new entry, not sl_malloc
2003-10-19 02:18:38 +00:00
Howard Chu
08407b5b00
More malloc cleanup
2003-10-19 00:30:55 +00:00
Luke Howard
a7619c4ce9
Return duplicated entry from entry_dup() - interesting that
...
this was actually working when compiling without optimization
2003-10-18 15:07:51 +00:00
Howard Chu
b6835be962
ITS#2747, Reorganize syncrepl, fix some memleaks. More remain.
2003-10-18 14:13:37 +00:00
Kurt Zeilenga
aa225c2c70
Explicitly mark attribute/assertion syntax of values to be normalized
2003-10-18 06:18:05 +00:00
Howard Chu
dee604c608
ITS#2771 fix memory usage in LDAPDN_rewrite, fix normalizer
2003-10-18 05:49:58 +00:00
Kurt Zeilenga
c57db6c33e
Add basic support for certificateMatch (as an extensible matching rule)
2003-10-18 04:20:19 +00:00
Kurt Zeilenga
3fbe93c704
Rework support for certificate exact matching based, in part,
...
on patch submitted by Mark Ruijter <openldap@siennax.com>.
This addresses (hopefully) ITS 2702, 2703, 2719, 2771.
Additional work:
fix extraneous frees in libldap/getdn.c x509 rewrite routine
indexing
2003-10-18 02:39:08 +00:00
Kurt Zeilenga
e3a0148328
Fix modify attrs= overflow bug
2003-10-18 02:33:15 +00:00
Kurt Zeilenga
3f523b4303
Add a trace message to dnX509normalize
2003-10-17 22:38:19 +00:00
Howard Chu
4c5c632d70
ITS#2769 - NT SIGBREAK handling
2003-10-15 12:16:35 +00:00
Kurt Zeilenga
81ed052186
Improve printing of ACLs
2003-10-15 07:48:01 +00:00
Kurt Zeilenga
f1e5201bf7
cleanup
2003-10-15 03:08:43 +00:00
Jong Hyuk Choi
9d59b5a41c
ITS #2766 (remove slap_syncrepl_bvc & slap_syncrepl_cn_bvc from proto-slap.h)
2003-10-14 20:40:44 +00:00
Jong Hyuk Choi
13f981fdd4
remove #include <db.h> (ITS#2765)
2003-10-14 20:22:09 +00:00
Jong Hyuk Choi
490d9e55d4
fix slap_syncrepl_cn_bv
2003-10-14 16:26:01 +00:00
Jong Hyuk Choi
35455699e7
rq_mutex placing fix
2003-10-13 14:08:55 +00:00
Kurt Zeilenga
2d910bf1f8
Fix pdn assert
2003-10-12 22:34:14 +00:00
Kurt Zeilenga
ef3f20a064
Add a note that plaform #ifdefs are misplaced
2003-10-12 22:00:17 +00:00
Jong Hyuk Choi
85ff0377d2
runqueue locking fix (ITS#2746)
2003-10-12 09:13:04 +00:00
Kurt Zeilenga
4f003dbdaf
mv ldap_int_get_controls to ldap_pvt_get_controls
2003-10-12 08:14:28 +00:00
Kurt Zeilenga
10622b1d0a
Further cleanup last commit.
2003-10-12 07:31:31 +00:00
Kurt Zeilenga
535c221599
Tentative fix for last comment (tests still running)
2003-10-12 07:19:27 +00:00
Kurt Zeilenga
dfcd732813
ITS#2757: fix parent-less add bug
2003-10-12 06:32:44 +00:00
Kurt Zeilenga
71f484bad8
Finish off berbuf fix
2003-10-12 06:07:02 +00:00
Kurt Zeilenga
767cf365ea
Initial fix for berbuf alignment bug (ITS#2760)
...
Needs to be applied to other stack allocated berbufs.
2003-10-12 04:45:09 +00:00
Howard Chu
5cd2c68a2b
ITS#2751 additional fix
2003-10-11 02:52:48 +00:00
Howard Chu
1e89a1daee
ITS#2751 reset op->o_callback before returning
2003-10-11 02:41:37 +00:00
Howard Chu
b5b036d9fb
ITS#2762 tweak SASL include paths
2003-10-11 01:24:44 +00:00
Kurt Zeilenga
81f1a24e1b
Generate pid/arg files after detaching
2003-10-10 02:07:24 +00:00
Jong Hyuk Choi
cdb7417765
misc syncrpel updates
2003-10-08 09:36:06 +00:00
Luke Howard
79a44ac26e
Don't duplicate e_bv in entry_dup()
2003-10-08 06:40:16 +00:00
Howard Chu
8c9f033aa5
Fix prev commit setting NO_GRANDKIDS incorrectly
2003-10-08 06:05:48 +00:00
Luke Howard
7a1c94acd3
Add entry_dup(); make slapi_entry_dup() use it
2003-10-08 00:48:33 +00:00
Jong Hyuk Choi
a8574a450f
slaptools update : replica promotion / demotion
...
new slapadd options
-p : promote : If the ldif file contains syncConsumerSubentries, convert
them to a single syncProviderSubentry. Its contextCSN
attribute has the largest value of the syncreplCookie
attributes of the syncConsumerSubentries.
syncProviderSubentry in the ldif file is retained.
-p -w : promote : Recalculate contextCSN based on entryCSN of each entry.
create Existing syncConsumerSubentries and syncProviderSubentry
are ignored and not added to the directory.
-r : demote : If the ldif file contains syncProviderSubentry, convert it
to a syncConsumerSubentry having the default syncrepl id
of 0. syncConsumerSubentries in the ldif file are retained.
-r -w : demote : Recalculate syncreplCookie based on entryCSN of each entry.
create Existing syncConsumerSubentries and syncProviderSubentry
are ignored and not added to the directory. The default
syncrepl id of 0 will be used for the new
syncConsumerSubentry.
-r -w -i %d[,%d]* : Using the comma separated list followed by the -i option,
it is possible to create multiple syncConsumerSubentries
having the syncrepl ids specified in the list.
syncreplCookie values of these sycnConsumerSubentries
will have the same value, either from the maximum
entryCSN value or from the contextCSN value of the
syncProviderSubentry.
2003-10-07 20:01:37 +00:00
Luke Howard
6c25cb17d5
Use slapi_entry_dup() instead of converting entry to string and back
2003-10-07 16:09:40 +00:00
Pierangelo Masarati
a78c03bb4a
fix a_nvals according to back-ldap implementation (ITS#2716; at least part of it)
2003-10-04 17:18:25 +00:00
Howard Chu
040a9cf64c
Fix HDB's use of IDL cache
2003-10-03 02:19:09 +00:00
Jong Hyuk Choi
bcb4529d9d
ITS#2744
2003-09-30 18:01:47 +00:00
Hallvard Furuseth
887ef60ea9
Fix typo in comment.
2003-09-30 17:11:44 +00:00
Hallvard Furuseth
8efd391832
#include "lutil.h", to get lutil_entropy(). Fix call to lutil_entropy().
2003-09-29 23:33:39 +00:00
Hallvard Furuseth
b10daf623f
Declare bdb_cache_entry_db_unlock().
2003-09-29 23:32:11 +00:00
Howard Chu
dcbca288a9
ITS#2745 reset bei_state when reusing an EntryInfo
2003-09-29 22:01:03 +00:00
Howard Chu
16cde39daa
ITS#2743 initialize rc
2003-09-29 19:54:53 +00:00
Hallvard Furuseth
6194b91ca9
Declare filter_escape_value_x() and make it static.
2003-09-29 14:09:31 +00:00
Hallvard Furuseth
705d789dbe
Move #include ldap_pvt.h after slap.h, to get ldap_bv2dn_x() & co.
2003-09-29 14:08:23 +00:00
Hallvard Furuseth
76dd417dc9
Plug memory leak in slap_get_csn().
2003-09-29 14:06:48 +00:00
Howard Chu
dbdfb8c0a3
Plug read_config memleak
2003-09-29 11:15:12 +00:00
Howard Chu
bdf86d44a8
ITS#2130 glued subordinates are not referrals, ignore ManageDSAit control
2003-09-29 10:39:41 +00:00
Howard Chu
0eb7ca22f7
Starting a collection of overlays
2003-09-29 05:49:39 +00:00
Howard Chu
0bb0551381
Initialization fixes
2003-09-29 05:04:43 +00:00
Howard Chu
a875d7df18
plug modrdn memleaks
2003-09-27 07:52:20 +00:00
Howard Chu
1bb48a06fc
ITS#2736 clear result strings
2003-09-27 07:36:20 +00:00
Howard Chu
c9ef0da66b
Don't timeout slow-running operations
2003-09-27 05:36:20 +00:00
Howard Chu
dcd777b0b8
Fix hdb cursor leak.
2003-09-27 05:17:08 +00:00
Luke Howard
8c8c89b8a9
reinstate first argument to bdb_cache_delete_cleanup()
2003-09-27 05:12:17 +00:00
Luke Howard
abaddd1c70
Cleanup SLAPI logging
...
Remove _SPARC hostname special case - gethostname() should work
2003-09-27 05:03:16 +00:00
Howard Chu
121c73d838
Add EntryInfo free list
2003-09-27 04:58:36 +00:00
Luke Howard
283c310302
Fix tree breakage - bdb_cache_delete_cleanup() only takes one argument
...
???
2003-09-27 04:24:31 +00:00
Luke Howard
ce17fd5f04
Don't leak SLAPI_RESULT_MATCHED
...
Call SLAPI_PLUGIN_PRE_RESULT_FN plugins
2003-09-27 03:59:40 +00:00
Luke Howard
613f493cae
Add slapi_dn_beparent, slapi_dn_parent and slapi_dn_isparent API.
2003-09-27 03:29:05 +00:00
Howard Chu
5c711a3b46
ITS#2741 yield before backing off
2003-09-27 03:16:38 +00:00
Luke Howard
a57956ac0f
Implementation of slapi_send_ldap_search_reference()
2003-09-26 17:10:03 +00:00
Howard Chu
1aabc02038
Fix typo in libslapi rule
2003-09-25 20:33:07 +00:00
Jong Hyuk Choi
4495320839
move c->c_n_ops_executing/completed to the right place
2003-09-25 20:14:53 +00:00
Howard Chu
25e145f8c8
Plug SLAPI leak
2003-09-25 11:28:31 +00:00
Jong Hyuk Choi
eee84463c0
do not cache internal search results for present entry priming
2003-09-25 07:49:50 +00:00
Jong Hyuk Choi
d5823fa912
no caching flag in Operation structure
2003-09-25 07:48:53 +00:00
Jong Hyuk Choi
67b485e3ee
revert changes for persistent search
2003-09-25 02:14:20 +00:00
Jong Hyuk Choi
d2320dbd7a
followup of the previous commit
2003-09-25 01:40:33 +00:00
Jong Hyuk Choi
cd108bb682
loose ends fixed
2003-09-25 00:59:27 +00:00
Howard Chu
76dd6bb6da
Revert to previous behavior:
...
always use DB_AUTO_COMMIT when opening a database, don't make it
dependent on an in-progress transaction
use mutex instead of DB lock for db access.
2003-09-25 00:27:22 +00:00
Howard Chu
c58ac9d8f1
Add memctx param to build_new_dn(). cleanup DN leaks.
2003-09-24 04:30:41 +00:00
Howard Chu
ece76c067f
Silence valgrind warnings of uninit'd memory
2003-09-24 03:03:53 +00:00
Howard Chu
7fd47cedb7
ITS#2735 - plug memory leaks
2003-09-24 00:32:27 +00:00
Jong Hyuk Choi
3e99679ca4
log the cause of the error when ldap_result() returns -1
2003-09-23 23:41:57 +00:00
Howard Chu
0b23dff298
ITS#2735 - plug memory leaks, cleanup
2003-09-23 22:52:35 +00:00
Howard Chu
30f3b91ddc
ITS#2735 - plug memory leaks
2003-09-23 22:52:35 +00:00
Howard Chu
772ce3b911
Plug a leak.
2003-09-23 17:14:01 +00:00
Howard Chu
d7771374e2
Fix alignment issues in hdb_dn2idl_internal
2003-09-23 10:55:57 +00:00
Howard Chu
99d2b7e7e9
Fix back-hdb test006 failures due to bad return code in hdb_dn2idl
2003-09-23 08:16:23 +00:00
Luke Howard
114d0081c1
Fix for Howard's fix for ITS #2704
...
The oblique SLAPI interface requires that preop bind plugins return 1 in the
case that they have authoritatively handled the bind; of course, this is
the same return value that doPluginFNs() returns in the case of no plugins
being called.
This patch should distinguish between the two cases...
2003-09-23 07:40:29 +00:00
Howard Chu
28d466ba66
ITS#2526 Fix slapi builds
...
note that -lltdl is added redundantly if --enable-modules was specified.
It seems to me that --enable-slapi should have implied --enable-modules
from the beginning.
2003-09-23 06:11:38 +00:00
Howard Chu
a8ae9bb31d
ITS#2704 don't hang client when no preop plugins are loaded
2003-09-23 05:35:38 +00:00
Howard Chu
089a4852d6
ITS#2678 complain if updateref is missing on a slave database
2003-09-22 18:54:08 +00:00
Luke Howard
ff073b8cd5
Check for HAVE_LONG_LONG in STRTOL macro
2003-09-22 14:01:31 +00:00
Howard Chu
5fb7ea2294
Cleanup prev commit
2003-09-22 10:11:10 +00:00
Howard Chu
0342904699
back-hdb caching updates, use EntryInfo cache for hdb_dn2idl.
2003-09-22 08:37:32 +00:00
Howard Chu
365a3bac3f
Tweak entry caching: only maintain LRU list on cached entries, not
...
on arbitrary EntryInfo.
2003-09-21 23:08:44 +00:00
Howard Chu
fddbe13c6e
Revert broken index optimizations
2003-09-21 10:11:46 +00:00
Luke Howard
3846a8881a
Define SLAP_STRTOL macro for integerBitAndMatch() and integerBitOrMatch()
...
usage - necessary to use larger types for interop with a certain client
that would expect the assertion (attr:1.2.840.113556.1.4.803:=2147483648)
to match a signed value (eg. -2147483646).
There are probably better / more portable solutions; review appreciated.
2003-09-21 06:26:43 +00:00
Howard Chu
6da0f1e48e
ITS#2573 dynamic group support
...
moved labeledURI into system schema
attribute types that inherit from labeledURI may be used in dynamic
groups e.g. access to * by group/groupOfURLs/memberURL=foo
2003-09-20 08:16:04 +00:00
Howard Chu
1e808d5ec9
Fix crashes if test_filter is called with NULL op
2003-09-20 08:12:22 +00:00
Howard Chu
20902a2be3
Fix segfault if entry_get is called with NULL attribute
2003-09-20 07:48:57 +00:00
Howard Chu
bb13266a15
Plug memleak in slap_parseURI
2003-09-20 05:55:48 +00:00
Howard Chu
f2c3ba16d6
cn=ldapsync berval cleanup
2003-09-20 03:26:40 +00:00
Howard Chu
93248cee58
Tweak normalization in slap_entry2mods
2003-09-20 03:25:05 +00:00
Howard Chu
1240c70ff4
ITS#2497, implement value-level ACLs:
...
access to attr=foo val.regex=bar.*
2003-09-20 03:23:10 +00:00
Kurt Zeilenga
3ca86ffffd
Hide experimental features
2003-09-19 18:41:28 +00:00
Kurt Zeilenga
a9a28794bd
Hide experimental controls
2003-09-19 18:38:35 +00:00
Kurt Zeilenga
3e49a9cf6e
add "proxy" to "authorization" in a few places
2003-09-19 18:23:37 +00:00
Howard Chu
1881ae872f
ITS#2729 fix typos
2003-09-19 00:49:33 +00:00
Jong Hyuk Choi
f6d883d901
error behavior fix and TODO
2003-09-18 06:04:28 +00:00
Jong Hyuk Choi
a0331a0487
missing or empty attrs list in a syncrepl specification
...
is changed to mean attrs="*"
2003-09-17 23:06:57 +00:00
Luke Howard
9459a7f535
fix typo
2003-09-17 11:05:06 +00:00
Jong Hyuk Choi
537ccc3f5f
fix for persistent search termination (ITS#2724)
...
- the consumer slapd did not terminate when the provider is alive
- use a timeout in ldap_result() of syncrepl.c
2003-09-17 10:34:10 +00:00
Jong Hyuk Choi
d336d7783b
fix config file processing (ITS#2722)
2003-09-17 05:34:47 +00:00
Howard Chu
94e88c3700
ITS#2679 don't use cached ACL state from different attribute
2003-09-16 22:03:26 +00:00
Kurt Zeilenga
99f968b597
Initial support for pre/post read controls.
...
TODO:
Fix transactional consistency
Add client response control handling
2003-09-16 18:56:04 +00:00
Kurt Zeilenga
8f0bc2d55b
cleanup
2003-09-15 21:53:58 +00:00
Kurt Zeilenga
4679178db2
Don't pass NULL when string is expected.
...
Other Cleanup
2003-09-15 21:22:20 +00:00
Luke Howard
b299d7e067
Modifications must be copied before calling slap_mods_check() because
...
the pretty function may replace values which are owned by the SLAPI plugin
slapi_entry_dup() optimization - avoid string re-encoding
Fix slapi_add_internal() logic errors (was this ever tested?)
Don't attempt to free entries that have been cached; see new internal
slapi_add_entry_internal_locked() API
2003-09-15 06:53:54 +00:00
Howard Chu
aee837c999
More deadlock tweaks.
2003-09-14 10:27:59 +00:00
Howard Chu
41957e5129
ITS#2649, never defer Abandon requests
2003-09-13 11:15:23 +00:00
Howard Chu
370fd22870
Add comment about normalized values in mods vs entry attributes
2003-09-13 09:51:28 +00:00
Jong Hyuk Choi
c83f1812ef
fix in slap_entry2mods()
2003-09-13 00:36:14 +00:00
Jong Hyuk Choi
3868f3b5a7
LDAP_SASL_INTERACTIVE -> LDAP_SASL_QUIET
2003-09-12 22:49:14 +00:00
Jong Hyuk Choi
b39039a141
fix for Makefile change
2003-09-12 21:06:29 +00:00
Howard Chu
a2cfda21cd
Fix prev commit
2003-09-12 19:40:04 +00:00
Howard Chu
61155ca8e8
Fix prev commit
2003-09-12 18:53:59 +00:00
Howard Chu
72adc38cdf
Construct ctxcsn entries directly, plug memory leaks, remove
...
dependency on slap_mods_check and slap_mods2entry
2003-09-12 18:52:34 +00:00
Howard Chu
10811b6f51
Clarify/standardize library version mismatch error messages
2003-09-12 00:54:21 +00:00
Luke Howard
b3e8d9189c
Fix SLAPI bind pre-operation plugin regression
2003-09-11 09:04:03 +00:00
Jong Hyuk Choi
d5be4896a3
add bdb_get_commit_csn() for use in bdb_search
2003-09-10 17:03:01 +00:00
Kurt Zeilenga
6f39517929
ITS#2707: fix 'access to dn.subtree="" by ...' directives
2003-09-10 02:33:36 +00:00
Kurt Zeilenga
a1b9d3148e
subtree ACI patch from Ralf
2003-09-09 18:37:31 +00:00
Jong Hyuk Choi
005afc86e4
more EntryInfo handling fix code (overriding the prev fix)
2003-09-09 01:25:58 +00:00
Jong Hyuk Choi
4cda6127ee
use of bdb_modify_internal() in bdb_csn_commit()
...
fix EntryInfo handling in bdb_csn_commit()
2003-09-08 22:55:04 +00:00
Jong Hyuk Choi
57152b08ce
structrual oc fix
2003-09-05 20:13:10 +00:00
Jong Hyuk Choi
c25a892e62
misc cleanup
2003-09-04 19:48:53 +00:00
Jong Hyuk Choi
7357caac90
memory mgmt cleanup
2003-09-03 23:47:37 +00:00
Jong Hyuk Choi
7f882daf15
Schema checking option for LDAP Sync replication
2003-09-03 21:42:52 +00:00
Jong Hyuk Choi
d06d4d33a8
no schema checking patch for proxy cache (apurva)
2003-09-03 15:44:22 +00:00
Jong Hyuk Choi
aa8ff20012
Patch for ITS#2692
2003-09-03 08:21:51 +00:00
Luke Howard
da56275a2c
Support per-backend ACL plugins
2003-09-01 08:49:22 +00:00
Luke Howard
0edb270b9e
Support for ACL plugins
2003-08-31 08:17:21 +00:00
Luke Howard
d649ae0808
Inherit operation pblock for SLAPI
2003-08-31 08:14:54 +00:00
Luke Howard
57f242c3fb
Call SASL bind post-op SLAPI plugin _after_ DN has been set
2003-08-31 03:11:05 +00:00
Luke Howard
e40215e780
Call post-op bind functions after SASL bind
2003-08-31 03:08:06 +00:00
Luke Howard
a08fb7de7e
Expose SASL context to SLAPI plugins (SLAPI_X_CONN_SASL_CONTEXT)
...
Useful for plugins that may wish to collude with the SASL library to,
for example, retrieve a user's authorization data from a Kerberos ticket
for access control purposes
2003-08-30 17:29:14 +00:00
Jong Hyuk Choi
c36f32a9e4
slaptool update for LDAP Sync replication
2003-08-30 15:19:35 +00:00
Jong Hyuk Choi
fb7db00810
cleanup
2003-08-29 21:24:05 +00:00
Jong Hyuk Choi
853c03e38d
more patches for ITS#2692 (Thanks Luke!)
2003-08-29 17:02:53 +00:00
Jong Hyuk Choi
5548a2dd0c
Sync replication config option format change (interval)
2003-08-28 22:29:12 +00:00
Jong Hyuk Choi
9760933c20
unifdef LDAP_CACHING
2003-08-27 23:21:17 +00:00
Jong Hyuk Choi
ec9e19a573
cleanup
2003-08-27 22:18:52 +00:00
Jong Hyuk Choi
090ac0a772
unifdef LDAP_SYNC and LDAP_SYNCREPL
2003-08-27 22:16:04 +00:00
Jong Hyuk Choi
4559aa06aa
cleanup
2003-08-27 20:51:04 +00:00
Jong Hyuk Choi
3e6f9f4ee5
returning LDAP return code
2003-08-27 20:26:55 +00:00
Jong Hyuk Choi
286986c4e8
NO_SCHEMA_CHECK backend flag
2003-08-27 16:40:26 +00:00
Jong Hyuk Choi
27b8d71cbb
cleanup
2003-08-27 16:39:53 +00:00
Jong Hyuk Choi
81a53a9a5c
LDAP Sync protocol extension
...
- do not send updates in state mode when
syncCookie >= contextCSN (or omitCSN if changelog is used)
2003-08-26 22:49:44 +00:00
Jong Hyuk Choi
74d6415f1e
cleanup
2003-08-26 19:04:12 +00:00
Jong Hyuk Choi
9faedad3e5
Context CSN updates for hdb
2003-08-26 18:57:09 +00:00
Jong Hyuk Choi
79b04b12a2
Context CSN Patch (5)
...
- persistent search patch
- cascading search patch
2003-08-26 00:35:27 +00:00
Jong Hyuk Choi
7ef160494f
Context CSN Patch (4)
...
- context csn management for modrdn
- call slap_mods_opattrs() for moved entries as well
2003-08-25 22:23:49 +00:00
Jong Hyuk Choi
a636f61b01
misc cleanup
2003-08-25 22:18:33 +00:00
Jong Hyuk Choi
fbb8c9da5e
Context CSN Patch (3)
...
- context csn management for delete
- a later patch will take care of inconsistencies caused by
interactions between outstanding search and scope-outs
2003-08-25 20:20:26 +00:00
Jong Hyuk Choi
3be0b77c88
Context CSN Patch (2)
...
- BDB context csn codes moved to a separate function in back-bdb/ctxcsn.c
2003-08-25 19:15:04 +00:00
Jong Hyuk Choi
d53c90dc29
Context CSN patch (1) - cleanup
...
- serialize search_candidates() with the read of search_context_csn
2003-08-25 17:10:18 +00:00
Luke Howard
3301a31755
Fix symbol name collision when LDAP_SYNC && BDB_HIER
2003-08-23 11:58:33 +00:00
Jong Hyuk Choi
660617ae66
Context CSN patch (1)
...
- currenty works for refreshOnly mode of LDAP Sync
- Context CSN for add / modify is implemented
- code for delete / modrdn / refreshAndPersist will be soon committed
2003-08-23 02:51:33 +00:00
Jong Hyuk Choi
dd9eab0e30
Schema definition for contextCSN
2003-08-22 21:24:03 +00:00
Kurt Zeilenga
f39fb6d91b
Add missing assignment in last commit.
2003-08-22 21:16:16 +00:00
Kurt Zeilenga
be22981d78
Add nameAndOptionalUID pretty routine... improves uniqueMember handling
...
Should resolve ITS#2664.
2003-08-22 21:03:03 +00:00
Howard Chu
2ff82a82c5
Tweaks to callback processing; callbacks can return SLAP_CB_CONTINUE to
...
fall into the regular send_ldap_* functionality instead of calling into
those functions explicitly. Nested callbacks still aren't handled as
cleanly as they might be.
2003-08-19 03:22:07 +00:00
Howard Chu
f1b8808010
Fix tmpmemctx conflicts
2003-08-19 03:19:07 +00:00
Jong Hyuk Choi
6659cf3ea1
LDAP Sync protocol change : state mode (add+present) and log mode (add+delete)
2003-08-14 16:27:36 +00:00
Jong Hyuk Choi
fcc59c6488
Proxy caching update : op->o_caching_on flag removed
2003-08-14 02:11:46 +00:00
Jong Hyuk Choi
d113166475
Proxy cache patch (by Jong, Apurva, & Kurt)
...
1. Glueing patch for proxy cache
2. test script update to avoid schema checking voilations (attributes set)
3. configuration patch for proxy cache
2003-08-13 23:44:56 +00:00
Jong Hyuk Choi
264f690c81
ITS#2681: set rc to LDAP_INVALID_CREDENTIALS or 1
2003-08-13 20:27:10 +00:00
Hallvard Furuseth
2d48b5dc99
Handle full syntax of Generalized Time and UTC Time.
...
No longer accept initial and trailing spaces in these syntaxes.
2003-08-13 20:04:59 +00:00
Luke Howard
281627d81d
Do not attempt to map positive error codes returned by plugins to
...
negative error codes.
Plugins should never return positive error codes except in the case
of bind pre-operation plugins, where they should return SLAPI_BIND_XXX.
This should fix ITS #2616 ...
2003-08-11 09:55:45 +00:00
Kurt Zeilenga
2f5fbeb180
ITS#2664: add uniqueMemberMatch
2003-08-11 02:12:20 +00:00
Pierangelo Masarati
d0a7d4a9fd
clear list pointer in instatiated copy
2003-08-09 17:48:02 +00:00
Kurt Zeilenga
3186a1c27a
Remove deprecated code. Will remove slap.h code define later.
2003-08-09 03:44:30 +00:00
Kurt Zeilenga
b54780f940
Add initial support for modify/increment. No over/under flow detection.
...
Currently discovered via a "feature", but should use a control.
Start of a control made, but needs to be better integrated (with
auto use in ldapmodify(1)).
2003-08-07 16:42:40 +00:00
Luke Howard
1251d801c1
Allow SLAPI plug-ins to override OpenLDAP extended operations
...
(please review)
2003-08-01 03:40:11 +00:00
Kurt Zeilenga
009191da73
delete incorrect URI description. RFC 2255 should be used.
2003-07-31 08:41:11 +00:00
Luke Howard
e01031b357
Set AttributeDescription in slapi_acl_check_mods()
2003-07-15 12:10:19 +00:00
Pierangelo Masarati
53b7e6fbcf
apparently Oracle does not support AS in joins (ITS#2642)
2003-07-15 11:26:17 +00:00
Pierangelo Masarati
0bb807f4be
fix format (ITS#2640?)
2003-07-15 10:57:12 +00:00
Jong Hyuk Choi
d0868eae95
Various changes
...
- SyncRepl support in back-ldbm
- back-ldbm functions return LDAP return codes for internal operations (callback)
- subentry code copy from back-bdb
- Misc udpates
2003-07-15 00:55:58 +00:00
Jong Hyuk Choi
aaa66d254e
Various udpates for SyncRepl
2003-07-15 00:43:39 +00:00
Jong Hyuk Choi
b3e62ef604
SyncRepl updates for back-bdb / back-ldbm
2003-07-15 00:33:49 +00:00
Jong Hyuk Choi
2b803b0459
SyncRepl is changed to share the following routnines :
...
slap_mods_opattrs(), slap_mods_check(), slap_mods2entry()
2003-07-11 01:01:27 +00:00
Jong Hyuk Choi
b231c33efa
export glueing code
2003-07-08 20:07:07 +00:00
Luke Howard
d29ed4407c
Always call modification postoperation plugins even if a
...
preoperation plugin has removed all modifications and
thus there are none to pass to the backend.
Accept SSF as a valid parameter block value.
Fix completely broken slapi_access_allowed()
2003-07-03 23:17:54 +00:00
Luke Howard
c9e134f0f7
Support for SLAPI plugin extensions API.
...
This API allows a plugin to associate arbitrary context with an
internal server object such as a connection or operation.
Some documentation is at:
http://enterprise.netscape.com/docs/directory/602/plugin/function.htm#1104211
2003-07-03 19:04:18 +00:00
Luke Howard
9936694960
Expose SSF to plugin
2003-07-03 19:01:13 +00:00
Jong Hyuk Choi
cc6f31782d
- partial attribute replication tested ok
...
- conf file processing udpate
- misc updates
2003-07-02 14:51:23 +00:00
Jong Hyuk Choi
fd13d4d50f
misc cleanup
2003-07-01 15:43:25 +00:00
Jong Hyuk Choi
5bc1e1a3c9
Berkeley DB congestion avoidance
2003-07-01 11:55:18 +00:00
Jong Hyuk Choi
ea57395f82
Glueing code changes for replica promotion scenario
2003-06-28 00:52:40 +00:00
Jong Hyuk Choi
3b83a0b0a7
fix from Apurva
2003-06-28 00:36:27 +00:00
Jong Hyuk Choi
7087a8f58d
ITS#2618 fix
2003-06-27 20:29:32 +00:00
Jong Hyuk Choi
262f8bf11f
LCUP primitive routines removed
2003-06-27 17:39:48 +00:00
Jong Hyuk Choi
e70377b875
IDL cache AVL tree initialize
2003-06-26 06:24:24 +00:00
Jong Hyuk Choi
9df9b1377a
reinitialize presentlist & nonpresentlist
2003-06-25 23:21:18 +00:00
Jong Hyuk Choi
9faeffe8c6
fix the glueing code
2003-06-25 22:28:50 +00:00
Jong Hyuk Choi
2e793edc77
add SLAP_OC_GLUE flag to oc_map
2003-06-25 22:28:19 +00:00
Jong Hyuk Choi
5a5da65d36
#ifdef'ing SLAP_OC_GLUE definition
2003-06-25 16:46:36 +00:00
Jong Hyuk Choi
5d203d0cc5
not returning glue entries unless manageDSAit is set
2003-06-25 16:22:08 +00:00
Jong Hyuk Choi
86196e11a0
- syncrepl uses LDAP URL only
2003-06-23 14:15:28 +00:00
Jong Hyuk Choi
30ccb6087f
- syncrepl configuration uses URL only
...
- slimit, tlimit fix (ITS# 2592)
2003-06-23 14:14:47 +00:00
Jong Hyuk Choi
90364acc0b
- syncrepl uses per-thread memory allocator
...
- slimit, tlimit fix (ITS# 2592)
2003-06-23 14:13:38 +00:00
Kurt Zeilenga
6e602b5494
ITS#2607: improve socket() error logging with AF info
2003-06-21 22:55:15 +00:00
Jong Hyuk Choi
001cc11ef2
Proxy cache updates (with a test suite)
...
- IBM India Research (Apurva)
2003-06-21 00:21:57 +00:00
Kurt Zeilenga
3e0e06bcc5
ITS#2605: move #if 0 to fix compilation problem on Windows
2003-06-19 02:41:33 +00:00
Howard Chu
6fc06a7801
ITS#2596 init ID list
2003-06-15 23:10:30 +00:00
Kurt Zeilenga
02bfbae186
Initialize schema before starting server.
2003-06-15 05:57:14 +00:00
Kurt Zeilenga
46122fa688
Fix ITS#2578
2003-06-15 05:52:51 +00:00
Howard Chu
44e32b3f7f
ITS#2594 add URI support for replica config
2003-06-14 00:06:36 +00:00
Howard Chu
a505d0c1fa
ITS#2587 fix failure return from telephoneNumberNormalize
2003-06-13 17:28:45 +00:00
Howard Chu
0c8a4b1756
More fixes for modify - don't delete index keys that are still being used
...
by other values of the attribute.
Also, filter out duplicate keys to avoid redundant DB operations.
Key collisions due to separate attributes indexed by supertype are still
not safe. Yuck.
2003-06-13 06:09:45 +00:00
Howard Chu
9004df89d7
ITS#2593 keep entryinfo locked during delete
2003-06-12 22:47:13 +00:00
Howard Chu
aa3b69eb32
ITS#2440 unmunge init_module names
2003-06-12 22:25:20 +00:00
Howard Chu
8d9fd64599
ITS#2437 use lt_dlopenext instead of lt_dlopen for convenience
2003-06-12 22:21:30 +00:00
Jong Hyuk Choi
92988db5d3
cleanup
2003-06-12 15:11:08 +00:00
Howard Chu
c3039b66fe
Another BDB_HIER redundant modification
2003-06-12 11:17:35 +00:00
Howard Chu
299983eb74
Another BDB_HIER e_name / e_nname fix
2003-06-12 11:14:50 +00:00
Howard Chu
8defa92746
ITS#2593? get entry lock sooner...
2003-06-12 11:11:37 +00:00
Hallvard Furuseth
d61f44fa7c
Revert previous patch: Bad time for it.
2003-06-12 09:20:04 +00:00
Howard Chu
9c47359912
Bind fixes for chaining
2003-06-11 22:35:31 +00:00
Jong Hyuk Choi
33b8042bc0
cleanup
2003-06-11 19:35:31 +00:00
Jong Hyuk Choi
f07179ca61
syncrepl changes
...
- can handle multiple syncinfo
- ldap_sync_search() added
2003-06-11 17:03:57 +00:00
Jong Hyuk Choi
3f8bb27a83
a fix for back-bdb entry cache
2003-06-11 17:01:54 +00:00
Hallvard Furuseth
9c0ca8d9a3
Add 'deref=' to Statslog SRCH output.
2003-06-11 16:22:29 +00:00
Hallvard Furuseth
6b37465d94
Fix printf format in debug output.
2003-06-11 15:50:25 +00:00
Howard Chu
cd5d33a17c
Add EBCDIC support. (but of course you need an OS/390 port of libltdl)
2003-06-11 13:37:59 +00:00
Howard Chu
4c5de987cd
Fix config, chaining
2003-06-11 06:32:24 +00:00
Howard Chu
09d05a57c2
More overlay tweaks. Added LDAP chaining overlay.
2003-06-11 04:36:35 +00:00
Howard Chu
2a29233c72
Fix response callbacks
2003-06-11 02:45:50 +00:00
Howard Chu
62da6969dc
Preliminary backend overlay support, based on backglue, not tested...
2003-06-11 02:27:51 +00:00
Kurt Zeilenga
0db73d9d15
code clean before adding readback hacks
2003-06-11 00:59:10 +00:00
Kurt Zeilenga
544805dcec
localize SYNCREPL config defines
2003-06-10 18:36:47 +00:00
Kurt Zeilenga
a908d75f0c
s/tls/starttls/
...
s/master/provider/
2003-06-10 18:33:44 +00:00
Kurt Zeilenga
256732f2ce
s/tls/starttls/
2003-06-10 18:32:36 +00:00
Kurt Zeilenga
a8e859a401
Add server side assert control support.
2003-06-10 04:44:41 +00:00
Kurt Zeilenga
0b3f6e364c
vrFilter -> o_vrFilter
2003-06-10 03:32:33 +00:00
Kurt Zeilenga
c249f3ac21
Fix vrFilter compile error
2003-06-10 03:30:14 +00:00
Kurt Zeilenga
3ca2a91ae1
Assertion control with no backend support (yet)
2003-06-10 02:19:30 +00:00
Howard Chu
782b481a9a
ITS#2580 - avoid cache deadlock
2003-06-09 22:00:00 +00:00
Kurt Zeilenga
af6b191c96
misc cleanup
2003-06-09 21:33:46 +00:00
Luke Howard
c3c881976a
Call SLAPI close function, not start function on shutdown
2003-06-09 04:11:06 +00:00
Luke Howard
cbb6117448
Call SLAPI start plugins in slap_startup(), not slap_init(); plugins
...
aren't loaded at slap_init() time
2003-06-07 14:35:29 +00:00
Luke Howard
54392b6527
Test error code from doPluginFNs() correctly
2003-06-07 06:52:52 +00:00
Luke Howard
721ea2046e
Call SLAPI start/close plugins at init/shutdown time
2003-06-07 06:32:52 +00:00
Howard Chu
6a8cac7ac8
Fix select/yield
2003-06-06 23:52:06 +00:00
Hallvard Furuseth
93b19fdf9a
Fix bdb_db_hash() to handle padding bits in integers.
2003-06-05 11:55:27 +00:00
Hallvard Furuseth
579e768046
#include Perl files before OpenLDAP files, and #undef _ (ITS#2513)
2003-06-05 11:44:06 +00:00
Hallvard Furuseth
d7c2f20ba7
Change dn->bv_val to op->o_req_dn.bv_val in LDAP_LOG() (from rev 1.24 change).
2003-06-04 12:34:42 +00:00
Hallvard Furuseth
642c8b1627
Break up too long string literals (>509 characters, ISO C's minimum max size).
2003-06-03 18:01:37 +00:00
Hallvard Furuseth
0ef242a5aa
Add missing 0 initializer in builtin_extops[]
2003-06-03 17:49:33 +00:00
Hallvard Furuseth
efcb1b0bc0
Remove comma at end of enumerator list.
2003-06-03 17:47:26 +00:00
Hallvard Furuseth
aa90e4aade
Do not set op->o_private (to the process' pid). Only abandon needed it.
2003-06-03 17:31:25 +00:00
Kurt Zeilenga
05101a5864
Fix -T usage
2003-06-02 22:11:54 +00:00
Kurt Zeilenga
fb0f6eeeb4
Axe abandon support
2003-06-02 20:20:45 +00:00
Kurt Zeilenga
2fcbaf29d9
read get_extop func
2003-06-01 00:09:32 +00:00
Pierangelo Masarati
412f510868
fix typo; need to port fix in OPENLDAP_REL_ENG_2_2
2003-05-31 22:27:19 +00:00
Kurt Zeilenga
f0063245ad
Set schema flags (might need schema check routines as well)
2003-05-31 21:56:18 +00:00
Kurt Zeilenga
c68057f598
Schema registration stuff needs work to set flags
2003-05-31 21:46:33 +00:00
Kurt Zeilenga
cc6630d8dd
Don't bother to hide when LDAP_DEVEL is defined.
2003-05-31 20:57:14 +00:00
Kurt Zeilenga
16af7fdd4c
Hide experimental controls and extended operations
2003-05-31 20:19:02 +00:00
Kurt Zeilenga
001953cdc5
Schema cleanup
2003-05-31 18:57:32 +00:00
Kurt Zeilenga
fefb7a97e4
Misc cleanup (needs better error handling and general code cleanup)
2003-05-31 05:48:00 +00:00
Kurt Zeilenga
11f990a641
Fix intermediate responses
2003-05-31 05:32:57 +00:00
Kurt Zeilenga
12304f64e5
Merge partial and intermediate responses
2003-05-31 05:01:49 +00:00
Kurt Zeilenga
03233d2719
Move SYNC, SYNCREPL, and LDAP_CACHING out from behind LDAP_DEVEL
2003-05-31 02:55:23 +00:00
Jong Hyuk Choi
732f5501a9
base entry checking for refreshAndPersist as well
2003-05-30 21:47:15 +00:00
Jong Hyuk Choi
771df8f75b
remove DB_NOTFOUND in rc checking
2003-05-30 21:45:07 +00:00
Jong Hyuk Choi
c6e5cca3f4
cleanup comments of sl_mem_detach()
2003-05-30 21:44:18 +00:00
Kurt Zeilenga
54d01d8946
Add missing externs based upon jfrederic.clere@fujitsu-siemens.com
...
suggestion in ITS#2559.
2003-05-30 20:04:59 +00:00
Kurt Zeilenga
0954351565
Change ACL default style to exact (from regex)
2003-05-30 05:24:39 +00:00
Kurt Zeilenga
193c7ca228
Fix matching rule flags
2003-05-30 02:17:30 +00:00
Howard Chu
676984e8d3
Fix slap_EXOP declarations
2003-05-29 07:18:58 +00:00
Howard Chu
5d0ba372e5
Fix LBER_OPT_MEMCTX behavior
2003-05-28 22:17:08 +00:00
Howard Chu
ac908e15e8
Fix TL malloc/free
2003-05-28 22:15:44 +00:00
Pierangelo Masarati
476e1958b6
fix typo
2003-05-26 16:31:20 +00:00
Luke Howard
0af6508632
s/forms/form in PADL copyright
2003-05-25 04:48:49 +00:00
Kurt Zeilenga
32e2521867
Remove $OpenLDAP$ from installed file
2003-05-25 04:08:59 +00:00
Kurt Zeilenga
5e6a5174ea
Clarify copyrights
2003-05-25 04:07:47 +00:00
Kurt Zeilenga
7ca24a8591
Another round of minor copyright updates
2003-05-25 03:56:57 +00:00
Luke Howard
4cee2467be
s/forms/form in PADL copyright
2003-05-25 02:59:09 +00:00
Kurt Zeilenga
4b3545cd2e
Update IBM copyrights
...
Kurt Zeilenga, IBM Corporation
2003-05-25 02:03:07 +00:00
Howard Chu
f7d7700b6e
ITS#2549, init memctx to NULL. Also reset ber memctx to NULL when freeing.
2003-05-25 01:32:39 +00:00
Kurt Zeilenga
1cc7b10b7a
remove cruft
2003-05-25 01:17:38 +00:00
Howard Chu
4a3748b6cf
Restructured to avoid direct use of sl_malloc functions. Minimizes impact
...
of #ifdef USE_SL_MALLOC...
2003-05-25 00:53:08 +00:00
Kurt Zeilenga
86fdca5177
#if 0 debug statements in signal handlers
2003-05-24 21:12:20 +00:00
Pierangelo Masarati
6180bcbf51
Finish proxy cache cleanup and API porting (on behalf of Apurva Kumar)
2003-05-24 17:38:04 +00:00
Howard Chu
283471d84e
Fix syncinfo reference after free
2003-05-24 06:50:48 +00:00
Kurt Zeilenga
8035d016c4
Fix typos in last commit
...
Apply to Makefile as well
2003-05-24 06:15:00 +00:00
Kurt Zeilenga
73f2048456
Add clarification as to source of this file
...
Add OpenLDAP copyright statement
2003-05-24 03:18:50 +00:00
Howard Chu
9dace23dec
Change slap_sasl_authorized to take an Operation instead of a Connection,
...
for compatibility with proxyAuthz control
2003-05-24 02:44:46 +00:00
Howard Chu
83f0acc1d8
ITS#2533 backend_attribute uses tmpmemctx, must free accordingly
2003-05-24 02:06:18 +00:00
Howard Chu
c40115c12e
Don't use single malloc for BDB_HIER e->e_name + e->e_nname
2003-05-24 01:54:03 +00:00
Kurt Zeilenga
d6bfa4ab8f
remove documentation for bind_simple_unprotected
...
(which was axed log ago)
2003-05-24 01:26:38 +00:00
Howard Chu
61eec0734a
Fix double-free'd rdn bug
2003-05-24 00:46:52 +00:00
Jong Hyuk Choi
2e5fb908d1
- glue entry management change
...
- op->o_tmpmfunc setup
2003-05-23 13:32:13 +00:00
Howard Chu
4c0e4741f7
Add comments to sl_mem_detach()
2003-05-23 09:10:05 +00:00
Kurt Zeilenga
703444febd
Partially fix slapi builds, still have undefined references
2003-05-23 06:27:38 +00:00
Howard Chu
3e7a533790
ITS#2542 fix?
2003-05-23 04:24:39 +00:00
Howard Chu
2bb9a15d57
ITS#2541 added bdb_cache_delete_cleanup() to defer cache delete.
2003-05-23 02:04:03 +00:00
Howard Chu
505838469d
Don't re-cache IDL's retrieved from the cache
2003-05-23 01:23:53 +00:00
Howard Chu
f3e0a28f18
Don't avl_insert NULL kids
2003-05-23 01:12:50 +00:00
Howard Chu
fe1bcdeb28
ITS#2540 not sure, difficult to reproduce crash...
2003-05-22 23:48:02 +00:00
Hallvard Furuseth
6362a51fe8
Printf %p expects a void pointer.
...
Other pointers may have different representation.
2003-05-22 22:00:54 +00:00
Hallvard Furuseth
6d3d9fe027
Don't do pointer arithmetic on void pointers.
2003-05-22 21:52:02 +00:00
Hallvard Furuseth
86ff7f4654
Send correct pid in 'pid:' line (ITS#2519).
...
Also don't lock op->o_conn->c_mutex. It is already locked by slapd/abandon.c.
2003-05-22 19:44:01 +00:00
Howard Chu
dc41a6b37e
ITS#2529 null DN in log
2003-05-22 09:22:41 +00:00
Howard Chu
9e798820e3
ITS#2522 fix candidate return values - once more, with feeling...
2003-05-22 09:17:42 +00:00
Howard Chu
ca4892d5e7
ITS#2533 remember which backend fetched the entry
2003-05-22 08:57:13 +00:00
Howard Chu
ade6b8b750
ITS#2217 fix option sorting
2003-05-22 08:39:55 +00:00
Jong Hyuk Choi
a0faa93683
If the sync mode is refreshAndPersist,
...
search does not return error when base entry is not found
2003-05-21 23:44:10 +00:00
Jong Hyuk Choi
4192c4aaaa
select loop changes for persistent threads
2003-05-20 23:52:11 +00:00
Jong Hyuk Choi
2b62559aa5
runqueue update according to the idle timer change
2003-05-20 22:13:21 +00:00
Jong Hyuk Choi
7e7429267e
persistent search updates with recent changes
2003-05-20 20:21:39 +00:00
Hallvard Furuseth
05d7b891ec
Move SLAPD_MONITOR_DN out of format strings.
...
Otherwise slapd would break if SLAPD_MONITOR_DN contained a '%'.
2003-05-20 18:16:45 +00:00
Hallvard Furuseth
3db60ba479
Fix debug output (print int as %d, not %s).
2003-05-20 18:13:39 +00:00
Hallvard Furuseth
c702f2e50f
Fix debug statement (remove spurious '.' after '\n').
2003-05-20 18:12:14 +00:00
Luke Howard
9184d038ea
Build without HAVE_TLS
2003-05-20 02:59:19 +00:00
Jong Hyuk Choi
4f58efc4d1
- change in message to modlist conversion
2003-05-20 01:45:12 +00:00
Pierangelo Masarati
074f54f300
clarify the size of a generalizedTime
2003-05-19 21:10:49 +00:00
Kurt Zeilenga
60fc6860d2
Fix typo
2003-05-19 18:54:15 +00:00
Pierangelo Masarati
988287d681
do not init schema that's not specific to monitoring
2003-05-18 00:15:28 +00:00
Pierangelo Masarati
072280600a
use back-monitor without including core.schema; commit by now; will cleanup later
2003-05-17 17:19:16 +00:00
Kurt Zeilenga
bf438cda3e
Clean up SLAP_NVALUES comment
2003-05-16 03:58:28 +00:00
Kurt Zeilenga
4604634592
NVALUES updates to approximate matching...
2003-05-16 03:57:01 +00:00
Hallvard Furuseth
6af256b8e1
Fix some Statslog()s: Add missing newlines. Print file descriptor as long.
2003-05-15 23:45:33 +00:00
Howard Chu
8e550fae0c
Streamlined listener/select/accept handling:
...
For ITS#2482:
added sl_is_mute flag to Listener - when set, the listener is ignored
if accept() on a listener fails with EMFILE, set the sl_is_mute flag
when removing a connection, if emfile != 0, look for a listener to unmute
For ITS#2374:
if global_idletimeout is set and there are active sessions, use a timeout
on the select() to actively detect idle sessions.
2003-05-15 13:10:52 +00:00
Pierangelo Masarati
64485f5fe0
remove unused arg from fprintf (ITS#2516)
2003-05-15 12:18:04 +00:00
Hallvard Furuseth
f972945131
#include "lutil.h" to get lutil_strcopy().
2003-05-15 11:51:33 +00:00
Hallvard Furuseth
d426e40e57
Remove excess `0' arguments to fprintf.
2003-05-15 11:47:42 +00:00
Hallvard Furuseth
3821d837a1
#include <ac/unistd.h> to get write()
2003-05-15 11:45:57 +00:00
Hallvard Furuseth
592e05e3e1
#include <ac/string.h> to get strcasecmp().
2003-05-15 11:43:33 +00:00
Pierangelo Masarati
48c65151c9
add create/modify timestamp to all entries; use monitorTimestamp for start/current time; minor cleanup
2003-05-15 01:19:30 +00:00
Pierangelo Masarati
a004061c0a
need starttime before backend db_open() is invoked
2003-05-15 01:12:17 +00:00
Hallvard Furuseth
44a99d694e
#include <ac/string.h>, to get strlen(), strncmp() and strncasecmp().
2003-05-14 21:36:34 +00:00
Kurt Zeilenga
d0f025bd46
updated certificateExactMatch support,
...
doesn't yet use ctx malloc routines
2003-05-14 20:52:23 +00:00
Howard Chu
4c6888cada
ITS#2514 fix NULL deref
2003-05-14 19:30:25 +00:00
Howard Chu
ae9e88a78a
ITS#2509 add missing arg for dnNormalize
2003-05-14 13:58:30 +00:00
Howard Chu
b7351c66bc
ITS#2511 use %p to log pointer values
2003-05-14 13:54:15 +00:00
Luke Howard
ac7ac5acef
Don't crash if attr_find() fails (Howard, you might like to review this)
2003-05-14 07:25:00 +00:00
Luke Howard
eed45f454c
Fix content rule validation code -- don't use validation result variable
...
as an iterator!
2003-05-14 05:29:46 +00:00
Howard Chu
1e49fdc634
ITS#2507, fix *_candidates error return values
2003-05-13 11:39:14 +00:00
Howard Chu
190f161d74
Optimize modify_internal, only reindex the actual modified values, not
...
the entire attribute.
2003-05-13 03:09:48 +00:00
Howard Chu
9e8bbf129f
Fix prev commit, must passthru precomputed scopes
2003-05-13 02:44:22 +00:00
Howard Chu
fb52e37e06
ITS#2506 - fix prev patch, don't ignore undefined filters. treat as False,
...
test_filter will never match them anyway.
2003-05-13 01:16:26 +00:00
Howard Chu
b6ef8c1876
ITS#2505 - make sr_strings per-op instead of static
2003-05-12 23:57:19 +00:00
Howard Chu
574ca540d4
Revert prev commit
2003-05-11 10:09:51 +00:00
Howard Chu
236321ce9c
Plug leak in hdb
2003-05-11 08:42:58 +00:00
Howard Chu
6aa3637545
Added SLAP_TOOL_READMAIN and SLAP_TOOL_READONLY slapMode flags. The rw
...
arg to tool_entry_open comes too late for back-bdb to use.
2003-05-11 07:03:48 +00:00
Howard Chu
2d22e02ef9
Another idle time tweak
2003-05-11 06:06:22 +00:00
Howard Chu
c84c133c90
Plug mem leak in slapindex
2003-05-10 03:56:01 +00:00
Howard Chu
399572ba50
For ITS#2502 - force release of locks on exiting threads
2003-05-09 22:30:28 +00:00
Jong Hyuk Choi
ca1da5b89a
-reenabling LDAP_CACHING
2003-05-09 16:48:50 +00:00
Jong Hyuk Choi
986bcd52a9
-syncUUID search in syncrepl
...
-test017-syncreplication
2003-05-09 06:50:44 +00:00
Pierangelo Masarati
f2dfb55780
now LDAP_CACHING can be enabled again; not sure it works, though
2003-05-09 00:36:31 +00:00
Jong Hyuk Choi
35d1bd68b9
runqueue restructuring
2003-05-07 23:52:08 +00:00
Jong Hyuk Choi
580ae073e1
runqueue update
2003-05-07 22:29:26 +00:00
Kurt Zeilenga
e64bb13148
minor tweak
2003-05-07 22:22:21 +00:00
Jong Hyuk Choi
45776bff04
a runqueue for periodic thread execution (for syncrepl)
2003-05-07 02:06:01 +00:00
Jong Hyuk Choi
6b0e1b39e5
temporarily disable LDAP_CACHING (till API update)
2003-05-05 16:03:59 +00:00
Luke Howard
8fd23795f8
Don't crash slapi_filter_get_subfilt() if no "any" filter
2003-05-05 10:23:33 +00:00
Luke Howard
1b3007c22c
Content rule logic fix
2003-05-05 09:17:10 +00:00
Luke Howard
13f0acfb6a
Don't crash if no attributes in slapi_attr_value_find()
2003-05-04 16:59:10 +00:00
Pierangelo Masarati
0864531e58
add network timeout (ITS#2413 reworked)
2003-05-03 11:30:38 +00:00
Luke Howard
83cb1037a4
Fix slapi_filter_join() behavioural bug.
...
Fix slapi_filter_dup() crasher.
Add slapi_x_filter_append(), as a replacement for slapi_filter_join() that
can create compound filters containing multiple filters. Will propose API
to Sun DS team; until then it should likely be marked LDAP_DEVEL (if SLAPI
is not entirely marked as such already).
2003-05-03 04:15:35 +00:00
Kurt Zeilenga
a82a6d8403
Junk
2003-05-02 22:14:09 +00:00
Kurt Zeilenga
d2840928c6
Remove junk
2003-05-02 22:12:07 +00:00
Jong Hyuk Choi
9543844d39
strdup cleanup
2003-05-02 18:00:33 +00:00
Howard Chu
2d5d4ecffa
ITS#2480 uninit'd vars
2003-05-02 13:38:16 +00:00
Hallvard Furuseth
5ee9264465
Fix assignment of <char/int>* to unsigned <char/int>* and vice versa.
2003-05-02 13:29:28 +00:00
Hallvard Furuseth
c5d60fc043
ctrls[] was initialized with which non-constants.
2003-05-02 13:26:25 +00:00
Hallvard Furuseth
a632038df9
Entry *e could be freed uninitialized after goto return_results;
2003-05-02 13:24:44 +00:00
Hallvard Furuseth
c46cd36088
Insert missing %s in printf format to print ldap_err2string().
2003-05-02 13:13:30 +00:00
Hallvard Furuseth
3420d12bdc
Fix printf/Debug format arguments.
2003-05-02 13:08:47 +00:00
Jong Hyuk Choi
e8cd5c2386
- LDAP_SYNCREPL defined in include/ldap.h
...
- add "updatedn" to the replication specification
- return referral to update to the slave server
2003-05-01 23:39:29 +00:00
Howard Chu
759996c6e9
Fix HDB search_aliases crash, cleanup search scope processing: call dn2idl
...
directly instead of going thru filter_candidates. Use hdb_ function prefix
in dn2id.c to avoid ambiguities...
2003-05-01 11:59:08 +00:00
Luke Howard
bb9d3ff304
Fix build breakage
2003-05-01 10:13:46 +00:00
Howard Chu
46e2b97757
ITS#2424 use two SASL contexts per session to conform to RFC 2222
2003-05-01 04:11:57 +00:00
Jong Hyuk Choi
0cafb28e31
syncrepl REFRESH : a master entry modify case fix
2003-05-01 02:14:47 +00:00
Jong Hyuk Choi
b4e8f8f470
comment cleanup
2003-04-30 16:39:40 +00:00
Jong Hyuk Choi
c4f7bcfc56
list of nonpresent entries in syncinfo_t
2003-04-30 16:38:15 +00:00
Jong Hyuk Choi
e08ba25101
syncrepl refresh mode : both scope-in & scope-out working fine
2003-04-30 16:35:23 +00:00
Howard Chu
04c5d82817
Fix prev commit
2003-04-30 16:00:36 +00:00
Howard Chu
4b73446ab5
ITS#2424 reset SASL on an existing connection
2003-04-30 15:38:32 +00:00
Luke Howard
e4779aefc1
A pre-operation plugin is not required to set SLAPI_RESULT_CODE in
...
order to prevent the operation from being passed to the backend. It
need only return a non-zero error code.
2003-04-30 13:37:14 +00:00
Howard Chu
7e2273b30e
Added errmsg arg to lutil_passwd_{check,hash} functions
2003-04-30 07:52:05 +00:00
Howard Chu
cfaf127eaa
Log errors from dn2id failures
2003-04-30 07:47:24 +00:00
Howard Chu
35d18d4ab0
Use DB_RMW when deleting dn2id elements
2003-04-30 07:46:58 +00:00
Howard Chu
7e1a91340c
Use computed filters to pass in search scope.
2003-04-30 07:46:01 +00:00
Jong Hyuk Choi
030d5a614d
- mods memory allocation fix
...
- persistent syncreplCookie (in syncConsumerSubentry) access becomes reliable
2003-04-30 04:01:25 +00:00
Jong Hyuk Choi
b10f1c5780
- manageDSAit is implicitly assumed for LCUP / SYNC
...
- LCUP / SYNC search both entries and subentries at the same time
2003-04-30 02:04:23 +00:00
Jong Hyuk Choi
2fd73195f5
LCUP / SYNC overrides manageDSAit upon calling select_backend()
2003-04-30 02:01:03 +00:00
Jong Hyuk Choi
e885605f21
cleanup
2003-04-29 23:32:58 +00:00
Howard Chu
15b661c5c7
Revert prev commit. It's a symptom that BDB was built incorrectly.
2003-04-29 22:02:24 +00:00
Howard Chu
c066e87e2c
Better handling of computed filters
2003-04-29 21:51:23 +00:00
Kurt Zeilenga
231f8464d1
cleanup
2003-04-29 21:14:12 +00:00
Hallvard Furuseth
7e8ff6df6b
Implement slapcat -s <dn>: Only dump a subtree of the database.
2003-04-29 20:47:21 +00:00
Howard Chu
b7fd633e8a
Fix computed filter inversion
2003-04-29 20:40:26 +00:00
Hallvard Furuseth
fca812e3aa
Must have ';' between default: and '}'
2003-04-29 20:12:00 +00:00
Howard Chu
2c1b7e4e7c
ITS#2474 default return value
2003-04-29 20:01:51 +00:00
Kurt Zeilenga
5cd994ed21
remove dnNormalize2
...
replace calls to dnNormalize2 with calls to dnNormalize
2003-04-29 18:28:14 +00:00
Kurt Zeilenga
eebc51b9bf
remove dnPretty
...
rename dnPretty2 to dnPretty
2003-04-29 18:13:10 +00:00
Jong Hyuk Choi
77b58e69a5
tab cleanup
2003-04-29 17:55:26 +00:00
Hallvard Furuseth
778a38f49c
Reduce warnings: Add missing 0 or NULL initializers for struct members.
2003-04-29 16:36:19 +00:00
Hallvard Furuseth
6387a3b6bf
#include <ac/string.h>.
...
Print unsigned long with %lu, not %d.
2003-04-29 15:05:19 +00:00
Hallvard Furuseth
9d9ac9e4d9
#include <ac/string.h>, to get memset() and strlen().
2003-04-29 15:02:01 +00:00
Hallvard Furuseth
51da53b4b0
Print long with %ld, not %d.
2003-04-29 14:55:36 +00:00
Hallvard Furuseth
46e0ea292b
Don't do arithmetic on void pointers.
2003-04-29 14:54:22 +00:00
Hallvard Furuseth
8a2bb1d1cc
Declare lap_free_ctrls() and sl_mem_init().
2003-04-29 14:53:05 +00:00
Howard Chu
2931966ea5
Fix computed TRUE/FALSE filters
2003-04-29 05:58:28 +00:00
Howard Chu
169c7afcdf
ITS#2453 - Handle computed filters, ignore Undefined filters.
2003-04-29 02:55:43 +00:00
Howard Chu
792e97790d
Handle SLAPD_FILTER_COMPUTED cases
2003-04-29 00:42:54 +00:00
Kurt Zeilenga
a0bcff1630
generic first component matching routines
...
Need to add specific routines for schema attribute types
2003-04-28 04:41:47 +00:00
Luke Howard
231a7cacf6
Remove unused variables in slapi_filter_test()
2003-04-26 03:28:48 +00:00
Luke Howard
b0e2fd5a8b
Don't crash in slapi_send_ldap_search_entry if no attributes specified
2003-04-26 03:28:12 +00:00
Howard Chu
b63bdc6513
Undo BDB const mucking
2003-04-25 13:14:33 +00:00
Howard Chu
e4f1c459c2
ITS#2464 don't strdup NULL DN
2003-04-25 12:44:19 +00:00
Howard Chu
e0f0a40497
ITS#2467 NULL pointer check
2003-04-25 10:27:55 +00:00
Kurt Zeilenga
7bbc903201
fix up nvalues code so that pretty routines work properly
...
re-add objectClass pretty routines
2003-04-25 02:28:06 +00:00
Kurt Zeilenga
49a4ae59ba
Need to pretty assertion values
2003-04-25 01:01:53 +00:00
Kurt Zeilenga
af5f617d2a
cleanup
2003-04-25 00:14:54 +00:00
Kurt Zeilenga
519faf22c2
Backout last commit... needs more work
2003-04-24 23:46:12 +00:00
Kurt Zeilenga
3067954616
rework objectClass mucking to use syntax "pretty" routine
...
(be liberal in what you accept, strict in what you generate)
2003-04-24 23:40:55 +00:00
Kurt Zeilenga
79262c5703
Fix typo
2003-04-24 12:43:30 +00:00
Luke Howard
958942d8e3
Fix potential attr_merge_normalize() crasher
2003-04-24 11:14:57 +00:00
Luke Howard
5178355d27
Fix another crasher in attr_merge_normalize_one()
2003-04-24 10:51:42 +00:00
Luke Howard
03fcb6526d
Fix crasher in attr_merge_normalize_one()
2003-04-24 10:40:45 +00:00
Luke Howard
331e627541
When a validate function fails from within a tool, report the offending
...
attribute
2003-04-24 10:18:05 +00:00
Kurt Zeilenga
65ea6c23c2
New integer syntax / matching routines
...
A pretty function likely should be added "to be liberal in what we accept"
2003-04-24 05:16:06 +00:00
Jong Hyuk Choi
e9bd75ae9b
ber, bv memory cleanup
2003-04-23 16:29:31 +00:00
Howard Chu
2b6f4ff7d0
Fix byte-ordering in bdb_dup_compare
2003-04-23 11:52:22 +00:00
Luke Howard
b1b8d9d651
slapi_dn_normalize() should pretty DN; slapi_dn_normalize_case() should normalize it
...
(appears to be correct based on iPlanet documentation)
2003-04-23 11:29:11 +00:00
Howard Chu
184f647b25
Change RDN compare funcs, we don't need lexical ordering
2003-04-23 10:26:06 +00:00
Luke Howard
4a51d2457a
Use attr_merge_normalize() instead of attr_mergeit()
...
(Seems to me that attr_mergeit() can be deprecated in favour of the
former -- Howard?)
2003-04-23 09:50:41 +00:00
Howard Chu
02217c9183
Subtree rename support for the cache
2003-04-23 08:46:23 +00:00
Luke Howard
9e3e91e067
Allow search rewriter plugins to also set the search base, scope, and alias
...
dereference policy
2003-04-23 08:16:05 +00:00
Howard Chu
f4183f1598
Fix multiple inclusion
2003-04-23 07:25:44 +00:00
Luke Howard
ebe2c10994
Fix incorrect usage of slapi_ch_free()
2003-04-23 07:01:56 +00:00
Howard Chu
350b73c2d6
Added back-hdb. Contributed by Howard Chu @ Symas Corp.
2003-04-23 06:54:36 +00:00
Howard Chu
6f461690c1
Function renaming, make internal funcs static, etc.
2003-04-23 06:34:55 +00:00
Luke Howard
bdb3adca39
Fix SLAPI debug message typo
2003-04-23 05:00:00 +00:00
Jong Hyuk Choi
fd3cf2b5ed
get_ldapmsg_ber() -> ldap_get_message_ber()
2003-04-22 22:09:25 +00:00
Jong Hyuk Choi
b67a3b9840
Misc cleanup - more to come.
2003-04-22 21:42:14 +00:00
Kurt Zeilenga
a6da45c9c7
Fix typo in last commit
2003-04-22 20:35:41 +00:00
Howard Chu
1745c2478d
Missed a bei_rdn in prev commit
2003-04-22 20:35:29 +00:00
Kurt Zeilenga
b9fe2c2fd6
Fix up subtreeSpecification to allow new GSER-based string format
...
(real validatator needed).
2003-04-22 20:33:08 +00:00
Jong Hyuk Choi
8e12768eed
subtreeSpecification syntax change : -binary +validator
2003-04-22 20:08:37 +00:00
Howard Chu
c7d3d42304
Omit bei_rdn field from EntryInfo
2003-04-22 18:59:37 +00:00
Howard Chu
7c39a5e726
filter_candidate tweaks, search_stack tweaks
2003-04-22 18:22:51 +00:00
Jong Hyuk Choi
f97a85db83
more cleanup for the backend API change
2003-04-22 17:59:54 +00:00
Howard Chu
68822b1e15
Trim dead BDB_HIER stuff
2003-04-22 17:06:35 +00:00
Howard Chu
c9f8d7accb
Fix args to bdb_cache_modrdn
2003-04-22 17:05:22 +00:00
Jong Hyuk Choi
4d6469f949
subentry cleanup
2003-04-22 17:00:04 +00:00
Howard Chu
1643145b03
Fix multi-line string literals. new GCC complains...
2003-04-22 16:06:29 +00:00
Howard Chu
0afba16b9b
Fix id2entry, let bdb_cache_release_all clean up EntryInfos
...
Fix idl_cache_put
2003-04-22 13:14:06 +00:00
Howard Chu
89127c93d0
Mem context tweaks for bdb_dn2idl
2003-04-22 06:29:13 +00:00
Howard Chu
ee1cddf6fd
Fix typo in prev commit
2003-04-22 05:15:50 +00:00
Howard Chu
bd871d710d
Moved IDL cache code to standalone functions.
...
Use IDL cache in bdb_dn2id_children.
2003-04-22 05:14:27 +00:00
Howard Chu
f0577fcb08
Pass parent EntryInfo instead of parent DN to dn2id_add/delete.
...
Add bdb_cache_children, remove cache flag manipulation from dn2id_children
2003-04-22 04:06:09 +00:00
Kurt Zeilenga
cd66f42f90
cleanup
2003-04-21 19:01:08 +00:00
Kurt Zeilenga
8cc4866fa1
Assign experimental OID to syncReplCookie
2003-04-21 18:57:49 +00:00
Howard Chu
d290145776
memory context tweaks
2003-04-21 18:28:38 +00:00
Howard Chu
e061628ff3
Fix previous commit
2003-04-21 18:09:44 +00:00
Jong Hyuk Choi
86a46c267a
OpenLDAP synchronization based replication engine
2003-04-21 14:08:13 +00:00
Jong Hyuk Choi
3efe7398c9
memory API change
2003-04-21 14:01:39 +00:00
Howard Chu
e374c580f2
Perform is_at_subtype check inline
2003-04-21 03:55:20 +00:00
Howard Chu
d8068af892
Fix glue_sub_init realloc disconnect
2003-04-20 09:18:02 +00:00
Pierangelo Masarati
1150becd63
use a macro for the entry buffer size
2003-04-18 17:17:18 +00:00
Pierangelo Masarati
629885a269
use SLAP_PTRCMP
2003-04-18 17:16:48 +00:00
Pierangelo Masarati
6bcbe9ad31
reset passwords before freeindg them
2003-04-18 10:02:43 +00:00
Pierangelo Masarati
7de67df355
ensure all metasingleconns are init'ed
2003-04-18 10:02:00 +00:00
Howard Chu
6fd41cd254
Add shm_key config keyword to use shared memory for BDB environment
...
Unmeasurable performance difference on my tests, but who knows...
2003-04-18 09:43:22 +00:00
Luke Howard
d4a9e0ece0
Fix crasher when duplicating substring assertions
2003-04-18 08:21:12 +00:00
Howard Chu
6002ad5233
Minor fixes
2003-04-18 07:43:07 +00:00
Luke Howard
c734eaf68a
Improve error checking
2003-04-18 07:29:45 +00:00
Howard Chu
7caf3e0952
Fix prev commit, extended search was broken
2003-04-18 05:53:24 +00:00
Luke Howard
86a18c2ea2
Don't pollute op->o_bd in access_allowed()
2003-04-18 04:57:15 +00:00
Howard Chu
3baffe7cf2
Fix undefined filters
2003-04-18 04:44:46 +00:00
Howard Chu
6b524914c5
Fix undefined substring filters
2003-04-18 04:44:06 +00:00
Howard Chu
8d8a52f9d2
ITS#2453, Fix filter candidate generation
2003-04-18 03:36:52 +00:00
Howard Chu
7c60ff1ef8
ITS#2449, broken NOT filters
2003-04-18 02:31:38 +00:00
Jong Hyuk Choi
2dbcd890b8
Caching non-existing index entries in the IDL cache - caching keys only
2003-04-18 00:35:11 +00:00
Pierangelo Masarati
b5e9378d4f
improve previous commit
2003-04-17 22:19:14 +00:00
Pierangelo Masarati
9f7c48ab54
don't return referral if cannot compute one (should fix ITS#2435)
2003-04-17 21:48:57 +00:00
Howard Chu
c754980045
Use EntryInfo navigation for search scope checks
2003-04-17 11:03:21 +00:00
Howard Chu
ec13a69220
Finish alias scope support
2003-04-17 09:23:53 +00:00
Howard Chu
f7db076c86
Fix prev commit
2003-04-17 05:15:12 +00:00
Howard Chu
7dcb79157d
Fix database search loop conditions
2003-04-17 04:55:39 +00:00
Howard Chu
d7a1eb0ea2
Fix AVL comparisons
2003-04-17 04:36:42 +00:00
Howard Chu
2048c05a82
Added CACHE_ENTRY_NO_KIDS flag to bei_state to shortcut dn2id_children.
2003-04-17 00:52:31 +00:00
Pierangelo Masarati
9caafcb3d9
cleanup; improve error handling
2003-04-16 22:22:57 +00:00
Kurt Zeilenga
d2db0733ab
Add associated matching rule checks
2003-04-16 21:42:52 +00:00
Pierangelo Masarati
786d4e23b7
allow compare on dynamically generated operational attributes (may be moved to the frontend)
2003-04-16 20:55:42 +00:00
Pierangelo Masarati
d564770156
clarify hasSubordinate filtering
2003-04-16 20:54:56 +00:00
Pierangelo Masarati
57bb4fd89a
fix id query
2003-04-16 20:54:30 +00:00
Pierangelo Masarati
3a5cd746b7
use global bervals for TRUE/FALSE
2003-04-16 19:49:00 +00:00
Pierangelo Masarati
58d1df26d8
fix possible typo
2003-04-16 19:48:14 +00:00
Howard Chu
377bccbc6c
Hierarchical cache management.
2003-04-16 16:23:36 +00:00
Pierangelo Masarati
d9d5912383
use syntax and matching rules knowledge when preparing SQL filters (to reduce pseudo-normalization efforts and search candidate number)
2003-04-16 10:22:33 +00:00
Kurt Zeilenga
fc7e29e0c5
Add associated matching rules
2003-04-16 05:56:28 +00:00
Kurt Zeilenga
1260da0cbf
Add comments about associated rules. Need to add checks
...
in mr.c, populated their values in schema_init.c, and then
put them to use.
2003-04-16 03:30:20 +00:00
Pierangelo Masarati
d8887ac063
fix update operations
2003-04-16 01:21:02 +00:00
Howard Chu
ca9bb44089
Free IDL_CACHE locks
2003-04-16 01:04:00 +00:00
Pierangelo Masarati
0c67c0493b
more cleanup; small improvements
2003-04-15 23:11:31 +00:00
Pierangelo Masarati
1f400adca7
honor attributes request
2003-04-15 22:43:56 +00:00
Pierangelo Masarati
1fa756cd24
backout unintended commit :)
2003-04-15 21:58:16 +00:00
Pierangelo Masarati
9a39dcb7d4
add slurpd pid/args files
2003-04-15 21:56:21 +00:00
Pierangelo Masarati
adf3744dd6
fix backsql new API; use berbuf instead of berval
2003-04-15 21:55:25 +00:00
Julius Enarusai
5094d6abda
Fixed minor compile errors
2003-04-15 20:40:02 +00:00
Howard Chu
d28bdf9cc2
Fix for modrdn retries
2003-04-15 01:13:28 +00:00
Howard Chu
f0816ec503
Fix value_find_ex result
2003-04-14 12:27:04 +00:00
Howard Chu
4739b58f99
Fix previous commit
2003-04-14 11:14:07 +00:00
Howard Chu
e1d45c64e0
doPlugins return code fix
2003-04-14 10:30:10 +00:00
Howard Chu
3aabc4ed43
doPlugins return code fix
2003-04-14 00:07:48 +00:00
Howard Chu
755f785432
Memory context fixes
2003-04-13 16:15:52 +00:00
Kurt Zeilenga
cde0999b52
Rename header macro
2003-04-13 04:51:12 +00:00
Pierangelo Masarati
a1b407b44d
improve schema
2003-04-12 18:16:05 +00:00
Pierangelo Masarati
194528d689
fix ACI per-thread memory management
2003-04-12 17:42:51 +00:00
Pierangelo Masarati
be8820d660
HEADS-UP: complete reworking of back-monitor
2003-04-12 17:41:49 +00:00
Kurt Zeilenga
8321227972
Fix OIDs
2003-04-12 17:11:26 +00:00
Howard Chu
5821fb5251
Change doPluginFNs to return 1 when no plugins were invoked
2003-04-12 12:40:50 +00:00
Howard Chu
088eecc34d
Tweak strcpy's
2003-04-12 12:20:19 +00:00
Howard Chu
af6804905f
Eliminate unnecessary calls to slap_bv2ad
2003-04-12 12:19:57 +00:00
Howard Chu
130f6e1b7d
Memory context tweaks for other ops
2003-04-12 10:47:11 +00:00
Pierangelo Masarati
784672d60a
disable by default right now
2003-04-12 10:05:12 +00:00
Pierangelo Masarati
74671953ef
fix schema definitions (duplicate objectClass OID still there)
2003-04-12 10:02:31 +00:00
Howard Chu
0f2eab27ce
ITS#2442, ITS#2438 same check for slapd_slp_reg()
2003-04-12 08:36:35 +00:00
Howard Chu
280fc819cf
Memory context tweaks for Bind
2003-04-12 06:56:42 +00:00
Howard Chu
be28bf247e
Added sl_context() to return the context associated with an alloc'd ptr.
...
Improved ch_malloc/sl_malloc compatibility.
2003-04-12 05:12:40 +00:00
Howard Chu
a6a6946a67
New ldap_pvt_thread_pool_context()
2003-04-12 04:01:40 +00:00
Kurt Zeilenga
f4304936d4
Assign experimental OIDs
2003-04-12 03:19:43 +00:00
Pierangelo Masarati
ab47effcfd
more cleanup and api rewriting (too tired to do anything better)
2003-04-12 01:17:05 +00:00
Pierangelo Masarati
99ac2cb422
slight improvement
2003-04-12 00:48:16 +00:00
Pierangelo Masarati
576089061d
add new schema stuff (no #ifdef, too heavy)
2003-04-12 00:30:47 +00:00
Pierangelo Masarati
805894be1d
fix context memory and more cleanup
2003-04-11 23:23:03 +00:00
Pierangelo Masarati
29c2594fe4
pass Operation instead of private info
2003-04-11 23:08:16 +00:00
Pierangelo Masarati
465a50cffc
fix memory context (hope NULL at init is valid)
2003-04-11 22:30:48 +00:00
Luke Howard
4f77f04a83
Don't use thread local malloc for search filter if SLAPI is enabled;
...
breaks API compat
2003-04-11 06:30:41 +00:00
Luke Howard
0e46e4a7af
Workaround for SLAPI impedence mismatch with new thread-local malloc;
...
computed search rewriter plugins cannot use thread-local malloc
2003-04-11 05:27:30 +00:00
Howard Chu
423ad06fa6
Revert previous, committed by mistake
2003-04-11 04:28:26 +00:00
Kurt Zeilenga
217f45a16c
SLP fix (ITS#2438)
2003-04-11 04:25:55 +00:00
Luke Howard
f26a0e0db0
Don't pass NULL DN to rewrite_session(), causes assertion failure
...
(Howard might like to check that this is the correct fix)
2003-04-11 04:23:21 +00:00
Luke Howard
7cb946924e
Fix compilation errors (caching must still be undefined though)
2003-04-11 04:22:37 +00:00
Howard Chu
808cb504ce
More memory context tweaks
2003-04-11 03:57:10 +00:00
Luke Howard
ee203deadf
Fix compile breakage
2003-04-11 03:56:04 +00:00
Howard Chu
75141e9c2f
Fix VPATH builds
2003-04-11 03:39:48 +00:00
Howard Chu
aa470b8052
Fix previous commit
2003-04-11 01:53:31 +00:00
Howard Chu
ece7452b05
More memory context tweaks
2003-04-11 01:29:28 +00:00
Howard Chu
374d919fc0
More memory context tweaks
2003-04-10 06:21:53 +00:00
Howard Chu
7287c0ff01
Init op->tmpmfuncs.
2003-04-09 23:37:24 +00:00
Howard Chu
f897519d11
Minor cleanups
2003-04-09 23:37:00 +00:00
Howard Chu
ebecca7379
Eliminate getkey search
2003-04-09 17:34:58 +00:00
Howard Chu
065116c3a3
Just use a fixed size slab for now
2003-04-09 17:05:46 +00:00
Howard Chu
813d5c8ed8
First cut at thread-local malloc. Only used by search() for now...
...
Needs work in normalizers, etc.
2003-04-09 16:52:03 +00:00
Jong Hyuk Choi
437d2ce5a9
backend operations and callbacks conforms to the new API.
2003-04-09 16:37:00 +00:00
Howard Chu
aa3b717937
Don't build generic_filter dynamically, it's a simple static.
2003-04-09 08:28:19 +00:00
Pierangelo Masarati
426ca14a86
silence warning
2003-04-08 23:39:56 +00:00
Pierangelo Masarati
756d35cb6e
improve (and cleanup) value normalization
2003-04-08 23:30:58 +00:00
Pierangelo Masarati
43b1658160
normalize while merging values
2003-04-08 23:27:22 +00:00
Pierangelo Masarati
06a99afbdb
free cache only if required
2003-04-08 23:22:10 +00:00
Jong Hyuk Choi
b1b36ae75f
bdb->bi_idl_tree_lrulock initialize
2003-04-08 16:30:56 +00:00
Pierangelo Masarati
b4dbfb570a
cleanup
2003-04-08 13:22:12 +00:00
Pierangelo Masarati
5fbdf3f3eb
return 'matched' only if all the targets didn't recognize the search base
2003-04-08 11:38:38 +00:00
Pierangelo Masarati
827c4277e1
mix refresh and fix; may need further work
2003-04-08 11:20:18 +00:00
Howard Chu
d01d31e54f
Better detection of new search scopes
2003-04-08 11:17:20 +00:00
Jong Hyuk Choi
420210a2a3
IDL cache locking change (mutex -> rwlock)
2003-04-08 06:57:07 +00:00
Pierangelo Masarati
f73eddd426
fix attr nvals & more improvements
2003-04-07 23:22:27 +00:00
Pierangelo Masarati
9e66d3d1f0
fix referrals return
2003-04-07 23:21:55 +00:00
Pierangelo Masarati
51c658babd
fix typo
2003-04-07 21:06:06 +00:00
Howard Chu
91bb1bd980
schema checks
2003-04-07 20:16:56 +00:00
Howard Chu
cd76391078
Fix !ENABLE_REWRITE
2003-04-07 19:48:10 +00:00
Howard Chu
3c704f4d14
Fix returncode checks
2003-04-07 19:47:31 +00:00
Pierangelo Masarati
81c616fdb2
works fine now
2003-04-07 19:01:48 +00:00
Pierangelo Masarati
eed02aea22
need a second function because of different free() routines
2003-04-07 17:51:42 +00:00
Pierangelo Masarati
243311d56a
move to more appropriate file ...
2003-04-07 17:18:42 +00:00
Pierangelo Masarati
6dbd7341f9
use berval
2003-04-07 17:07:52 +00:00
Pierangelo Masarati
6ef22ccdcb
first cut at grouping rewrite/map stuff; needs work
2003-04-07 17:04:14 +00:00
Pierangelo Masarati
96e1632d4a
default remapping from target to server aliases searchResult
2003-04-07 16:59:56 +00:00
Pierangelo Masarati
93abccdee3
group rewrite/map stuff in one structure and optimize more function calls
2003-04-07 16:52:59 +00:00
Pierangelo Masarati
77c4389f55
use rewrite info instead of ldapinfo for reusability in back-meta; will change soon
2003-04-07 12:53:00 +00:00
Howard Chu
c823f9a995
Use individual addAttrDN, compareAttrDN, modifyAttrDN, searchAttrDN contexts
...
instead of re-using other contexts.
2003-04-07 11:55:12 +00:00
Howard Chu
8ef3bbb174
Fix prev
2003-04-07 11:50:15 +00:00
Howard Chu
7972ebe66f
Fix freeval check
2003-04-07 11:49:40 +00:00
Howard Chu
c4ab31ddc9
Cleanup previous
2003-04-07 11:40:23 +00:00
Howard Chu
c607ed0a6f
(SLAP_NVALUES) attr->a_nvals must not be NULL, set equal to a_vals when
...
not normalizing.
2003-04-07 11:38:45 +00:00
Howard Chu
bb305eee0b
Fix matchedDn detection
2003-04-07 10:51:57 +00:00
Howard Chu
df05038f9e
Actually free mapped attrval
2003-04-07 10:31:32 +00:00
Howard Chu
68c5f6fa98
Cleanup ENABLE_REWRITE ifdefs, put into a new ldap_back_dn_massage().
...
All DN attrs are massaged, whether or not ENABLE_REWRITE is defined.
Use "dnAttr" rewriteContext for Add, Compare, & Modify.
Fixed ldap_back_compare.
2003-04-07 10:15:18 +00:00
Pierangelo Masarati
45d77aea2e
fix tools build when SLAPI is enabled
2003-04-07 09:33:10 +00:00
Pierangelo Masarati
c2d59edef9
need OpenLDAPaciMatch
2003-04-07 08:54:12 +00:00
Pierangelo Masarati
c03cb5102c
fix most missing dependencies with SLAPI; slappasswd needs different LIBS settings ...
2003-04-07 08:53:45 +00:00
Pierangelo Masarati
504eb61495
fix and improve previous commit
2003-04-07 08:53:03 +00:00
Pierangelo Masarati
a9fd63c156
need attrs when sending entries ...
2003-04-07 08:19:26 +00:00
Kurt Zeilenga
45d74c676e
cleanup
2003-04-07 04:03:55 +00:00
Kurt Zeilenga
926b2cf0bf
cleanup
2003-04-07 03:46:22 +00:00
Howard Chu
8db24ce9e8
Fix backglue crash
2003-04-07 03:43:12 +00:00
Kurt Zeilenga
91b6bc606f
more SLAP_NVALUES tweaking
2003-04-07 01:19:47 +00:00
Kurt Zeilenga
67d6b23d22
SLAP_NVALUES code cleanup
2003-04-07 01:06:46 +00:00
Kurt Zeilenga
b59bb2de35
More #unifdef -DSLAP_NVALUES
2003-04-06 19:16:49 +00:00
Kurt Zeilenga
35df710c64
partial #unifdef -DSLAP_NVALUES
2003-04-06 18:57:17 +00:00
Howard Chu
103f70c3bf
ITS#2423 free SASL prompts
2003-04-06 01:03:43 +00:00
Pierangelo Masarati
1bae6d28e5
silence warnings
2003-04-05 16:58:36 +00:00
Pierangelo Masarati
5804183f04
propagate selected changes to back-ldap
2003-04-05 16:53:57 +00:00
Pierangelo Masarati
1ce560383a
map attrs improvement
2003-04-05 16:53:29 +00:00
Pierangelo Masarati
4235da91d4
massage bound dn only if operating on authz backend
2003-04-05 11:31:54 +00:00
Howard Chu
c0ee56c306
Define MINIMUM_SEARCH_STACK_DEPTH=8, search_aliases needs at least this.
2003-04-05 10:05:27 +00:00
Pierangelo Masarati
b2075ea932
cleanup & more
2003-04-05 09:57:21 +00:00
Howard Chu
3814b5f1a1
Range check cleanup, added alias processing comments
2003-04-05 09:46:54 +00:00
Howard Chu
fbc6a7e8ac
Fix cursor initialization, scope IDs
2003-04-05 08:54:24 +00:00
Kurt Zeilenga
c866e28049
Cleanup
2003-04-05 08:40:07 +00:00
Howard Chu
cb92eaf96c
Fix locking etc. in prev commit
2003-04-05 07:50:01 +00:00
Howard Chu
48a9cf3416
Added code for BDB_ALIASES. Please test.
2003-04-05 06:35:16 +00:00
Howard Chu
6f9901e9ce
Moved get_alias_dn from back-ldbm to frontend
2003-04-05 06:34:20 +00:00
Kurt Zeilenga
c75be97ae9
#ifdef -DSLAP_NVALUES
2003-04-05 03:35:16 +00:00
Kurt Zeilenga
2d68ec09f2
#unifdef -DSLAP_NVALUES_ON_DISK
2003-04-05 03:11:29 +00:00
Pierangelo Masarati
f8682550d7
cleanup
2003-04-05 01:25:57 +00:00
Pierangelo Masarati
cb33a9ff44
minor fixes: leaks, dangling pointers, cleaner tag skip
...
for subschemaSubentry; still having problems with group ACLs ...
2003-04-05 01:20:55 +00:00
Pierangelo Masarati
ab3ab80ecd
more args elimination + allow specific messages when mapping client API errors to LDAP_OTHER
2003-04-04 22:20:49 +00:00
Pierangelo Masarati
172e93bfc9
normalize values only if required
2003-04-04 11:03:29 +00:00
Pierangelo Masarati
19dc49180d
handle failure or missing attrs
2003-04-04 09:55:56 +00:00
Howard Chu
b282339c96
Minor cleanup, use shorthand macros
2003-04-04 05:49:21 +00:00
Howard Chu
a1437d155e
Init entry in be_entry_get_rw
2003-04-04 05:41:25 +00:00
Howard Chu
7c9e8b1b87
SLAP_NVALUES fix dup check
2003-04-04 05:39:09 +00:00
Luke Howard
7e31732cc5
Don't segfault on malformed configuration
2003-04-04 04:06:18 +00:00
Luke Howard
95f0c5d5e2
Don't free pointer into contiguously allocated memory
2003-04-04 03:58:24 +00:00
Howard Chu
604ba59196
Fix req DN massaging
2003-04-04 02:05:49 +00:00
Howard Chu
ba0b8d1ac9
Fix prev commit
2003-04-04 01:47:25 +00:00
Howard Chu
6e551b53f4
Mapping fixes, SLAP_NVALUES fixes
2003-04-04 01:01:28 +00:00
Pierangelo Masarati
5598add84e
first cut at mapping/rewriting before search (after search it's already handled by ldap_build_entry)
2003-04-04 00:48:54 +00:00
Pierangelo Masarati
dfbbd11bd3
remove more unnecessary args
2003-04-04 00:43:40 +00:00
Howard Chu
a9339c99f6
Fix shared/private binds, fix entry_get malloc
2003-04-03 23:55:57 +00:00
Pierangelo Masarati
ebe0bb0b52
trim unnecessary args
2003-04-03 23:23:56 +00:00
Pierangelo Masarati
44c2d8a771
backout this for now
2003-04-03 23:09:17 +00:00
Pierangelo Masarati
5f342a8431
silence warning
2003-04-03 23:08:47 +00:00
Pierangelo Masarati
811929011d
anyone knows a safer way to skip a tag?
2003-04-03 22:54:51 +00:00
Pierangelo Masarati
d218848b14
of course there's a better way to skip a tag :)
2003-04-03 22:48:17 +00:00
Pierangelo Masarati
bb4624c8b0
eat undesired values
2003-04-03 22:40:41 +00:00
Pierangelo Masarati
95991161c6
FIXME: is this the intended behavior?
2003-04-03 22:18:17 +00:00
Pierangelo Masarati
d07ea8b450
need this to be able to bound searches when back-ldap and the source are on the same server; does it look fine?
2003-04-03 21:44:43 +00:00
Pierangelo Masarati
e8c264b1f6
safe defaults
2003-04-03 21:40:04 +00:00
Pierangelo Masarati
798289fd50
new API; compiles if proxy is disabled
2003-04-03 21:35:54 +00:00
Pierangelo Masarati
17e46d8468
cleanup and fixes
2003-04-03 21:35:27 +00:00
Pierangelo Masarati
7d5087e8c2
fix new API update
2003-04-03 21:24:53 +00:00
Pierangelo Masarati
f6c1079cff
safer defaults ...
2003-04-03 21:23:36 +00:00
Pierangelo Masarati
8f02ca49b6
cleanup?
2003-04-03 21:18:14 +00:00
Pierangelo Masarati
df29552130
fix new API leftover
2003-04-03 21:17:44 +00:00
Howard Chu
adefd27c44
Fix return of DB error code to LDAP client
2003-04-03 01:59:08 +00:00
Pierangelo Masarati
8995d8341f
more new API ... back-sql should be OK
2003-04-03 00:35:16 +00:00
Pierangelo Masarati
430077e2ed
partially revert previous commit
2003-04-02 23:01:21 +00:00
Pierangelo Masarati
09b92f0aeb
more new API ...
2003-04-02 22:58:02 +00:00
Howard Chu
8ecfc4e1db
Fix lib specs
2003-04-02 21:23:07 +00:00
Kurt Zeilenga
1626f722c5
abort if result code is negative
2003-04-02 21:05:06 +00:00
Pierangelo Masarati
d385386279
more new API ...
2003-04-02 21:02:12 +00:00
Pierangelo Masarati
b72a61a7b7
cleanup previous commit
2003-04-02 20:54:23 +00:00
Pierangelo Masarati
9e5f5b56db
more new API ...
2003-04-02 20:52:13 +00:00
Pierangelo Masarati
a67b41eb69
fix listener mod handling
2003-04-02 20:27:58 +00:00
Howard Chu
a571001ffa
Fix prev commit
2003-04-02 20:10:53 +00:00
Kurt Zeilenga
4ecf817a87
NVALUES_ON_DISK enabled by default
2003-04-02 18:05:10 +00:00
Luke Howard
9b4bf8a973
Do not return pointers into BerElement we do not own
2003-04-02 09:35:08 +00:00
Luke Howard
8f0542d260
s/octetStringIndexer/octetStringMatch
2003-04-02 02:40:17 +00:00
Luke Howard
c52d604265
Apply Kurt's fix for octet string normalization/filtering of integers
2003-04-02 01:54:03 +00:00
Howard Chu
3d0ffa1d58
Fix typos in prev commit
2003-04-02 00:40:51 +00:00
Luke Howard
c4382a2b3b
Don't set SLAPI_NENTRIES in internal_result_v3; seems to clobber it
...
(Howard, can you take a look at this?)
2003-04-01 18:21:26 +00:00
Luke Howard
d2b6e8d56c
Handle the case where slapi_x_ldapmods2modifications() returns NULL; the
...
modify request becomes a NOOP for the front-end in this case.
2003-04-01 17:38:02 +00:00
Luke Howard
92ac90c1e3
Handle plugin returning no modifications in slapi_x_ldapmods2modifications()
2003-04-01 17:33:37 +00:00
Luke Howard
3b5f98723c
Fix crasher in slapi_dn_issuffix() when malformed DNs are passed
2003-04-01 17:16:56 +00:00
Luke Howard
8429210bed
Fix SLAPI crasher
2003-04-01 16:43:04 +00:00
Luke Howard
9da00ad42d
Fix SLAPI crasher
2003-04-01 16:42:24 +00:00
Luke Howard
97aaebd20f
Fixed crasher due to op->o_conn not being initialized in internal
...
SLAPI connections (the new internal API highlighted this)
2003-04-01 11:46:43 +00:00
Luke Howard
6e01d4ebe8
Fix compile breakage from nentries fix
2003-04-01 11:19:20 +00:00
Luke Howard
a099c25089
Update for new internal API: set op backend
2003-04-01 11:17:03 +00:00
Jong Hyuk Choi
86fecca9ec
LDAP Content Synchronization based Replication :
...
This is a preliminary code drop. Patches will follow shortly.
2003-04-01 06:38:39 +00:00
Howard Chu
9355dca9af
Consolidated slap_callbacks into one function. Removed send_search_result.
2003-04-01 04:12:18 +00:00
Howard Chu
8357a8b66e
slapd API update
2003-03-31 23:19:12 +00:00
Pierangelo Masarati
5a136d7e95
more (mostly blind) fixes
2003-03-31 19:45:52 +00:00
Pierangelo Masarati
a0ee0b21b1
first (mostly blind) round
2003-03-31 19:21:19 +00:00
Luke Howard
fc4d4e2f95
Cleanup to use new internal API
2003-03-31 17:10:55 +00:00
Pierangelo Masarati
d0b08200b7
new API cleanup in proxy cache code (more work needed)
2003-03-31 14:02:25 +00:00
Pierangelo Masarati
8da20c6f81
new API cleanup in proxy cache code
2003-03-31 14:01:34 +00:00
Howard Chu
fa9bf23501
Minor cleanup
2003-03-31 07:49:34 +00:00
Luke Howard
2fdbc55374
SLAPI cleanup
2003-03-31 06:41:30 +00:00
Kurt Zeilenga
02028df6c6
Add additional password file support.
2003-03-31 06:29:59 +00:00
Howard Chu
f80114af02
Fix previous commit
2003-03-31 06:27:16 +00:00
Howard Chu
d8350698aa
Remove psearch.c
2003-03-31 05:31:12 +00:00
Howard Chu
bc9aa656a2
Shorthand macros for request fields
2003-03-31 05:10:10 +00:00
Luke Howard
5004ec3f01
SLAPI fixes
2003-03-31 04:58:41 +00:00
Luke Howard
6c2f47ecd5
SLAPI fixes
2003-03-31 04:56:17 +00:00
Luke Howard
4dd53084a0
SLAPI fix
2003-03-31 04:54:06 +00:00
Howard Chu
8188bd1752
Fix typo in prev commit
2003-03-30 18:49:25 +00:00
Howard Chu
e8c58b4e7f
Major API change - (SLAP_OP_BLOCKS) All request parameters are
...
consolidated into the Operation structure. All reply parameters
are consolidated into the new SlapReply structure. Most operations
now have identical call signatures... Changes are not #ifdef'd,
revert to -r NO_SLAP_OP_BLOCKS if necessary to back out.
2003-03-30 09:03:54 +00:00
Kurt Zeilenga
9ac14af051
Install schema/README
2003-03-30 05:59:09 +00:00
Kurt Zeilenga
4ab98f70f8
Add ISOC Copyright
2003-03-30 05:52:32 +00:00
Howard Chu
0fc7032748
Fix giant lock conflict in previous commit
2003-03-30 05:33:42 +00:00
Howard Chu
3afc12ed6c
Delete unused source
2003-03-30 04:01:31 +00:00
Pierangelo Masarati
03340f440d
remove crufted callbacks
2003-03-29 11:49:36 +00:00
Pierangelo Masarati
4325d05ebc
add function prototypes
2003-03-29 11:46:02 +00:00
Howard Chu
0be6cb5a67
Deleted bi_database_mutex, use DB_LOCK instead. Changed bdb_locker_id to
...
lookup the threadctx if no Op * is provided. (bdb_db_cache doesn't know
its thread context when it acquires a locker ID.)
2003-03-29 05:15:48 +00:00
Howard Chu
684cf03d55
Tweak version.c dependencies
2003-03-28 18:42:12 +00:00
Howard Chu
60ac3f352e
ITS#2409 - fix oidm_destroy
2003-03-28 10:24:16 +00:00
Howard Chu
1985b2c5a1
Don't use subdatabases for indexes. This patch is an incompatible change,
...
must destroy existing indexes and run slapindex to regenerate.
2003-03-27 04:30:05 +00:00
Howard Chu
3a71bddbc4
ITS#2389 - added conn_max_pending/auth config keywords to cap the number
...
of outstanding requests on a connection. Set rate limits for request
execution:
no connection can have more than maxthreads/2 ops executing at once.
a connection that is write-blocked will not execute any new ops.
queued ops must drain before any new ops can execute.
If the queue exceeds the max_pending limit, the connection is closed.
...also fixed a bug where a connection was not marked active if it never
received a Bind.
2003-03-27 03:35:46 +00:00
Howard Chu
ecd4296640
Fix previous commit
2003-03-27 03:27:48 +00:00
Howard Chu
65b85d83ea
Revert previous commit
2003-03-26 19:22:33 +00:00
Howard Chu
a5a71d4e6c
Cleanup previous commit
2003-03-26 17:42:27 +00:00
Howard Chu
51e10cf23c
Save DB_LOCK structure so it can be released later.
2003-03-26 13:33:51 +00:00
Howard Chu
c9ec6b0cab
Remove attribute.c, group.c from build
2003-03-26 11:52:59 +00:00
Howard Chu
99950e4fe4
Deleted BackendInfo->bi_acl_attribute, bi_acl_group.
...
Replaced with bi_entry_get_rw.
Implemented for back-bdb, back-ldbm, back-ldap.
2003-03-26 11:50:03 +00:00
Howard Chu
945fd190f9
SLAP_OP_BLOCKS - added response block
2003-03-25 23:42:55 +00:00
Howard Chu
fec1c7b54c
Added slap_op_init/destroy, cache Operation structures
2003-03-25 20:18:50 +00:00
Howard Chu
f14561d59d
#if out unused cache rdwr locks
2003-03-25 20:17:05 +00:00
Howard Chu
13aafa46d8
struct co_arg is redundant, removed
2003-03-25 18:44:00 +00:00
Howard Chu
b672620eb8
Simplify indexer - remove redundant dbname parameter
2003-03-25 18:17:34 +00:00
Howard Chu
880b9f15ac
ITS#2392 - move cache_commit inside transaction. needs lock protection,
...
and the lock goes away after txn_commit. Not sure what to do about the
cache if txn_commit actually fails though. Since txn_prepare succeeded,
should never happen. ???
2003-03-25 17:49:35 +00:00
Pierangelo Masarati
26895b9fa5
fix bug in schema check
2003-03-25 14:34:01 +00:00
Pierangelo Masarati
a26cca88dd
blind fix of value_match when SLAP_NVALUES is set
2003-03-24 22:23:18 +00:00
Howard Chu
837c7eb78e
Fix prev commit
2003-03-24 19:36:25 +00:00
Howard Chu
4853334ad4
Fix shadowed text/textbuf
2003-03-24 19:19:54 +00:00
Howard Chu
3fe42f68c8
SLAP_NVALUES fix
2003-03-24 17:28:26 +00:00
Howard Chu
3c0b0d507a
ITS#2363 - use wake_sds ala slapd/daemon.c for signal management
2003-03-24 14:57:10 +00:00
Howard Chu
dd02409dd3
Clean up SIGBREAK / NT
2003-03-24 07:49:59 +00:00
Kurt Zeilenga
ce5bff041d
SLAP_NVALUES: a few more matching rules
2003-03-24 06:49:55 +00:00
Howard Chu
dfe3b4fb2f
SLAP_NVALUES - quick hack, just set a->a_nvals = a->a_vals. will need to
...
fix this if ACLs are expected to work on the local slapd.
2003-03-24 02:59:43 +00:00
Howard Chu
4d22b569de
SLAP_NVALUES - add attr_merge comment
2003-03-24 02:24:23 +00:00
Howard Chu
0e1378e55e
SLAP_NVALUES - a_nvals is useless if ma_rule isn't the same as attr's.
2003-03-24 02:16:42 +00:00
Kurt Zeilenga
d50064ddb8
SLAP_NVALUES: telephoneNumberNormalize
2003-03-24 02:16:10 +00:00
Kurt Zeilenga
8b19daa35a
SLAP_NVALUES: add numericStringNormalize()
2003-03-24 02:11:41 +00:00
Kurt Zeilenga
fd8c453a56
Clarify comment
2003-03-24 02:11:16 +00:00
Howard Chu
bb287d666b
SLAP_NVALUES fix matchedValues
2003-03-24 02:03:33 +00:00
Howard Chu
5ad51b6150
SLAP_NVALUES tweaks - after input, a_nvals is always populated. If there is
...
no normalizer, a_nvals = a_vals.
2003-03-24 01:56:56 +00:00
Howard Chu
491ad352ea
Fix order of arguments
2003-03-24 01:19:43 +00:00
Howard Chu
1d772b3df6
ITS#2364 fix unterminated AttributeName array
2003-03-23 16:00:20 +00:00
Howard Chu
3f48cabdde
Fix typo
2003-03-23 15:45:06 +00:00
Howard Chu
08ae7adfee
Code for SLAP_NVALUES_ON_DISK in entry_encode/entry_decode
2003-03-23 15:28:41 +00:00
Howard Chu
79f3ea6e80
BDB_HIER was defined by accident, undef
...
Fix up for SLAP_NVALUES_ON_DISK
2003-03-23 15:27:43 +00:00
Kurt Zeilenga
2d78fafe03
Boolean indexing support
2003-03-23 05:54:52 +00:00
Kurt Zeilenga
c9805cf0c8
Add SLAP_NVALUES_ON_DISK define (but not code)
2003-03-23 03:23:32 +00:00
Kurt Zeilenga
91a2fb1c96
Add namingCSN attribute type
...
Make SLAP_NVALUES the default.
2003-03-23 02:58:36 +00:00
Howard Chu
329202e897
Plug ndn leak (re: ITS#2390)
2003-03-22 16:59:41 +00:00
Kurt Zeilenga
8a7114e152
ITS#2390 fix for back-bdb
2003-03-22 16:38:31 +00:00
Howard Chu
90332c2de2
ITS#2390 - freeing uninit'd ndn
2003-03-22 16:26:38 +00:00
Howard Chu
23d69c1d1f
Still need DB_AUTO_COMMIT flag
2003-03-22 16:21:44 +00:00
Kurt Zeilenga
c37a3b37b8
namingCSN
2003-03-22 16:12:59 +00:00
Kurt Zeilenga
61dffba479
ITS#2847: fix cn=#,...
2003-03-22 16:12:39 +00:00
Howard Chu
a63b8908cd
ITS#2389 - stop reading requests on a conn if it has more than
...
connection_pool_max/2 operations already executing. May want to tune
this to a higher value, e.g. connection_pool_max - XX, etc. Fix in
result.c throttles the connection too late, all threads are already
consumed by the time the send buffer blocks.
2003-03-20 12:40:11 +00:00
Howard Chu
546d5cb3a0
ITS#2389 - stop reading requests on a connection when we are blocked
...
writing responses. This may not be the right fix.
2003-03-20 11:54:17 +00:00
Howard Chu
f23c71c03c
ITS#2385 fix typo in comment terminator
2003-03-18 17:52:48 +00:00
Pierangelo Masarati
26e6e44bec
value is parsed in place; minor cleanup
2003-03-18 14:38:40 +00:00
Pierangelo Masarati
c4b925f343
document -u option
2003-03-18 10:38:23 +00:00
Howard Chu
a0c58e5f40
Don't use DB_AUTO_COMMIT when opening a database
2003-03-18 00:04:16 +00:00
Kurt Zeilenga
c79c13d480
replace get_substring_filter with get_ssa()
2003-03-17 06:06:02 +00:00
Kurt Zeilenga
86fdee6de7
SLAP_NVALUES: fix values_find_ex call
2003-03-17 00:30:35 +00:00
Kurt Zeilenga
1a55430c65
SLAP_NVALUES: more fixes
2003-03-17 00:27:33 +00:00
Kurt Zeilenga
e0c2e71a7c
SLAP_NVALUES updates
2003-03-17 00:10:43 +00:00
Kurt Zeilenga
9ac9102b55
Undo last commit
2003-03-16 23:54:40 +00:00
Kurt Zeilenga
8b6e1db2d3
SLAP_NVALUES: remove all the extra frees
2003-03-16 23:54:22 +00:00
Kurt Zeilenga
b1d245d9de
SLAP_NVALUES: fix extraneous free bug.
2003-03-16 23:52:44 +00:00
Kurt Zeilenga
e3b1020e75
Fix typos in last commit
...
Still chasing SLAP_NVALUES trashed filter bug
2003-03-16 21:58:00 +00:00
Kurt Zeilenga
261d127281
Rewrite filter routines to malloc() late.
2003-03-16 21:50:39 +00:00
Kurt Zeilenga
19ddf0d63d
SLAP_NVALUES: still chasing an extranous free... this just saves
...
an unneccessary malloc. (Actually, we should likely use local
filter structure to read things into and then malloc/copy once
we're sure there are no errors.)
2003-03-16 19:09:07 +00:00
Kurt Zeilenga
6c7a1194c3
reorder to statements for debugging purposes
2003-03-16 18:48:44 +00:00
Kurt Zeilenga
8873006105
SLAP_NVALUES changes
...
and misc cleanup
2003-03-16 18:10:16 +00:00
Howard Chu
d18e0989d9
ITS#2382 use ch_calloc
2003-03-16 12:34:40 +00:00
Kurt Zeilenga
e1980876f4
SLAP_NVALUES updates
2003-03-16 06:41:53 +00:00
Kurt Zeilenga
676349481f
SLAP_NVALUES updates
2003-03-16 06:03:23 +00:00
Kurt Zeilenga
338355d30b
SLAP_NVALUES: value_find v value_find_ex
2003-03-16 01:39:39 +00:00
Kurt Zeilenga
52fb5b1342
Not sure why these asserts are failing... too tired to figure it...
...
so #ifdef for now.
2003-03-15 23:59:14 +00:00
Kurt Zeilenga
c0477e1532
Fix test006-acls
2003-03-15 23:02:55 +00:00
Kurt Zeilenga
3972e13fc3
NVALUES: fix a couple of value_find_ex() calls
2003-03-15 22:47:17 +00:00
Kurt Zeilenga
776e3f2248
Add some additional error checking...
...
but haven't yet figured out why NVALUES crashes in test003
2003-03-15 19:45:36 +00:00
Howard Chu
55fea9715e
Plug leaks in controls_destroy()
2003-03-14 09:42:18 +00:00
Howard Chu
9ccecd3907
Plug leaks. (benign. slap_controls and root_dse need a destroy() still,
...
also still need to clear mr's from the ad_map.)
2003-03-14 09:37:27 +00:00
Howard Chu
44be38c0f0
ITS#2371, fix BDB_SUBDIRs
2003-03-13 15:53:19 +00:00
Kurt Zeilenga
e12aec25f4
minor cleanup
2003-03-13 04:16:18 +00:00
Howard Chu
30c5915460
Fix version check in previous
2003-03-13 02:01:14 +00:00
Howard Chu
573349a318
ITS#2356 - support Perl newer than 5.6
2003-03-13 01:58:26 +00:00
Kurt Zeilenga
0bfcfbf5fa
Minor tweaks
2003-03-13 01:29:49 +00:00
Kurt Zeilenga
e88b84d6db
Use BER_BVC
2003-03-13 01:05:40 +00:00
Kurt Zeilenga
c4feadbd4f
Fix typo in last commit
2003-03-13 00:53:40 +00:00
Kurt Zeilenga
12139ae223
Another comment.
2003-03-13 00:51:06 +00:00
Kurt Zeilenga
3bffd98e9d
Add comment that this schema is invalid
2003-03-13 00:50:30 +00:00
Howard Chu
a2a5ef48be
ITS#2368 - fix deleting key from range IDL
2003-03-12 21:18:39 +00:00
Howard Chu
f2223ede5b
Fix error messages
2003-03-12 21:16:43 +00:00
Jong Hyuk Choi
c1da85eba0
Error checking code for ITS#2367
2003-03-12 16:37:04 +00:00
Jong Hyuk Choi
0d0d5ffddf
declaration of bdb_idl_entry_cmp()
2003-03-12 16:36:28 +00:00
Jong Hyuk Choi
2e31af9ca1
AVL delete upon shutdown (ITS#2367)
2003-03-12 16:34:17 +00:00
Howard Chu
009afb4bd7
Fix cache consistency problems on txn retry
2003-03-12 15:20:51 +00:00
Howard Chu
21a95f4309
ITS#2348 - revert previous patch, use patch from ITS
2003-03-12 13:40:54 +00:00
Howard Chu
c2fd1b8a3f
Added lutil_passwd_init(), lutil_passwd_destroy()
2003-03-12 13:10:22 +00:00
Howard Chu
6aab531d66
#ifndef SLAP_NVALUES asserted berval was leaked
2003-03-12 13:05:19 +00:00
Howard Chu
1e5de87e10
Plug memory leaks:
...
retrying a modrdn leaked DNs, rdns, etc.
modifying a cached entry leaked attrs
2003-03-12 13:04:23 +00:00
Howard Chu
97a805415d
ITS#2348, additional check to prevent re-inserting IDs that are
...
already present. Hopefully the final fix...
2003-03-12 10:45:00 +00:00
Howard Chu
6694db8fd4
ITS#2253 - when StartTLS fails, slapd closes the connection so slurpd
...
must unbind and re-initialize the LDAP session.
2003-03-12 04:38:12 +00:00
Pierangelo Masarati
1277616c40
use an "unknown" listener name/url when faking connections
2003-03-11 18:25:51 +00:00
Pierangelo Masarati
fc87692576
fix ITS#2362 and other leaks/unhandled massaged DN memory
2003-03-11 18:09:38 +00:00
Kurt Zeilenga
72b6f82cc4
Tweak SLAP_OP_BLOCKS
2003-03-11 17:26:57 +00:00
Pierangelo Masarati
4a862018eb
#include reordering
2003-03-11 12:26:05 +00:00
Pierangelo Masarati
f6a47ac9ea
silence warning
2003-03-11 12:25:39 +00:00
Pierangelo Masarati
3415b384e2
cleanup cache search
2003-03-11 12:24:38 +00:00
Pierangelo Masarati
5c7e6e872d
cleanup bind
2003-03-11 12:24:14 +00:00
Pierangelo Masarati
bfe6d806d9
(ultimately?) fix ITS#2361
2003-03-11 12:23:20 +00:00
Howard Chu
ed884fe0ee
Added proposed request parameters to Operation. #ifdef'd, not active.
...
Replaces "be, conn, op" triple with just "op" for most functions. Removes
individual arguments from backend op functions. Please review/comment.
2003-03-11 10:39:32 +00:00
Howard Chu
bbad1de8e1
Added lutil_passwd_init, _destroy, _add for dynamically adding passwd
...
schemes. Declarations in lutil.h require lutil.h never be included before
lber.h, always after.
2003-03-11 05:58:53 +00:00
Howard Chu
5c3909f567
ITS#2361, skip sockname, peername, peerdomain, sockurl ACLs if the
...
corresponding conn->field is NULL. (overwrites previous commit.)
2003-03-10 22:28:35 +00:00
Pierangelo Masarati
11c225d40c
check conn->c_listener before use (hack to fix ITS#2361; need to review this part of slapi)
2003-03-10 22:19:32 +00:00
Howard Chu
40454ccec8
Added op->o_is_auth_check; use ACL_AUTH instead of ACL_SEARCH/ACL_READ
...
in access_allowed() if flag is set. Set in sasl/saslauth searches.
2003-03-10 22:07:21 +00:00
Howard Chu
d6bbe2dba5
Blind fix - remove suffixalias.c
2003-03-10 19:13:38 +00:00
Pierangelo Masarati
998ab2f441
fix log message (ITS#2359)
2003-03-10 07:36:42 +00:00
Kurt Zeilenga
0f0122abdd
need to use ch_malloc/realloc
2003-03-09 20:15:30 +00:00
Kurt Zeilenga
e4b507dfe9
Use ch_malloc instead of malloc for unchecked allocations
2003-03-09 20:11:12 +00:00
Kurt Zeilenga
cc96deee75
Redefine queryid
2003-03-06 20:20:13 +00:00
Jong Hyuk Choi
6f81235386
Commit of the Proxy Cache contribution (ITS#2062)
...
from IBM India Research (Apurva Kumar)
Code review by Pierangelo, Kurt, and Jong.
2003-03-06 19:44:41 +00:00
Howard Chu
aa84264fc2
Technically, since the authid is expected to be a normalized DN, uidNumber
...
and gidNumber should be all lower case: uidnumber,gidnumber. Is it too late
to fix this, would it break compatibility for anything major?
2003-03-06 12:08:39 +00:00
Kurt Zeilenga
e906747d51
call LDAPv2 what it is (historical)
2003-03-06 01:00:05 +00:00
Howard Chu
31a4149f02
ITS#2348: fix previous commit
2003-03-06 00:16:32 +00:00
Howard Chu
f2800036fa
ITS#2348: cont_alloc/cont_free cleanup in idl_insert_key
2003-03-05 23:10:32 +00:00
Jong Hyuk Choi
5db7e20cf1
misc : not activating idl cache in tool mode run
2003-03-05 03:34:59 +00:00
Howard Chu
3955eaede2
Fix LDAP_DEBUG/LDAP_SYSLOG test
2003-03-05 02:22:58 +00:00
Howard Chu
b21e69db0e
Use ldap_pvt_get_hname instead of ldap_pvt_gethostbyaddr_a
2003-03-05 01:53:32 +00:00
Howard Chu
a0b1fb1f9c
Multiple-suffix fail msg should be logged at ERR/ANY, not ARGS.
2003-03-04 21:17:31 +00:00
Pierangelo Masarati
4a658ee581
more improvements ...
2003-03-04 09:46:48 +00:00
Pierangelo Masarati
95b115394d
improve last commit
2003-03-04 09:43:12 +00:00
Pierangelo Masarati
118bf1e9f9
apply a different fix for ITS#2342
2003-03-03 23:06:58 +00:00
Pierangelo Masarati
a62d86cbe0
improve checks
2003-03-03 22:56:21 +00:00
Pierangelo Masarati
51849d6ecb
fix ITS#2343
2003-03-03 22:25:28 +00:00
Pierangelo Masarati
498f8a7454
init var
2003-03-03 21:33:29 +00:00
Pierangelo Masarati
cd41bb1a06
set return code
2003-03-03 21:32:58 +00:00
Pierangelo Masarati
40622232f7
silence warning
2003-03-03 21:32:08 +00:00
Pierangelo Masarati
74960cc52f
initialize var
2003-03-03 21:31:47 +00:00
Howard Chu
3cbcf01cfd
Added NT service support
2003-03-03 11:47:16 +00:00
Howard Chu
3b01c9a99e
Cleanup slapd-specific NT service support
2003-03-03 11:46:05 +00:00
Howard Chu
d9dbbeb87f
Add explicit "service" argument, only change cwd if running as a service.
2003-03-03 06:42:16 +00:00
Kurt Zeilenga
2d942d7035
Use renamed initializers
2003-03-02 03:15:16 +00:00
Howard Chu
9beaa08d79
Fix slap_sasl_authorized, c_authz_backend may be NULL
2003-03-02 00:21:24 +00:00
Kurt Zeilenga
f172e06cc0
SLAP_NVALUES: substrings indexing/filterring
2003-03-01 20:21:39 +00:00
Kurt Zeilenga
bafe8044ab
more OPERATIONS v. OTHER error cleanup
2003-03-01 20:20:53 +00:00
Kurt Zeilenga
c981ebcb61
Don't return LDAP_OPERATIONS_ERROR for internal errors
2003-03-01 20:17:52 +00:00
Pierangelo Masarati
9702e837e8
fix attr_merge_one hack
2003-03-01 15:41:54 +00:00
Pierangelo Masarati
9bd043277b
fix memory free
2003-03-01 12:28:45 +00:00
Pierangelo Masarati
46a841870f
add 'next[/prev]' initializer
2003-03-01 12:28:07 +00:00
Pierangelo Masarati
14d64852e8
trim unnecessary varaible
2003-03-01 12:12:12 +00:00
Pierangelo Masarati
bf35f8e37f
improved filter mapping/rewrite; improved result rewriting; improved attribute/objectclass mapping configuration
2003-03-01 11:08:53 +00:00
Kurt Zeilenga
009a9640d4
enable indexing
2003-03-01 05:21:51 +00:00
Kurt Zeilenga
47b18c9a51
SLAP_NVALUES: index normalized values
2003-03-01 05:17:44 +00:00
Kurt Zeilenga
2bd7c30d5f
SLAP_NVALUES: test005-modrdn works...
2003-03-01 04:51:31 +00:00
Kurt Zeilenga
c24ebfe014
SLAP_NVALUE: misc updates
2003-03-01 04:14:17 +00:00
Kurt Zeilenga
603543ca26
SLAP_NVALUES: test004 works
2003-03-01 03:37:16 +00:00
Kurt Zeilenga
208971a65f
SLAP_NVALUES: A couple of more normalizers...
2003-03-01 01:27:09 +00:00
Kurt Zeilenga
16c9e81c80
SLAP_NVALUES: test003 now passes (with help of a substr mr hack)
2003-03-01 00:14:32 +00:00
Kurt Zeilenga
eb6ccefabf
Remove deadwood
2003-02-28 22:32:12 +00:00
Kurt Zeilenga
806c9bfe84
SLAP_NVALUES: Use a_nvals
2003-02-28 21:05:19 +00:00
Kurt Zeilenga
cd6657fdf0
SLAP_NVALUES: fix UTF8StringNormalize
...
tests 0-2 now run correctly
2003-02-28 20:00:54 +00:00
Kurt Zeilenga
64b621620b
ITS#2324: Allow extended operation plugin to override default
...
from jenarusa@us.ibm.com
2003-02-28 19:21:38 +00:00
Howard Chu
0423ec0bd6
Fix ITS#2335, RFC1798 sequence layout was wrong.
2003-02-28 13:04:16 +00:00
Luke Howard
2c98342192
Fix typo
2003-02-28 12:55:01 +00:00
Luke Howard
cc39f75261
Support for dynamic registration of controls, both through native and
...
SLAPI plugins.
2003-02-28 12:34:35 +00:00
Pierangelo Masarati
e0a70010d9
missing OpenLDAPaciMatch definition
2003-02-28 12:05:48 +00:00
Howard Chu
507781eeb3
Partial fix of ITS#2335, restore proper CLDAP msg format for LDAPv2
2003-02-28 08:34:31 +00:00
Kurt Zeilenga
7735c44167
Use add_merge_one to add schema elements to subschema
2003-02-28 07:06:06 +00:00
Kurt Zeilenga
3600aac0fb
SLAP_NVALUES: fix a FIX ME
2003-02-28 05:44:03 +00:00
Howard Chu
22e88ffb75
Fix LDAP_LOG arg
2003-02-28 05:24:08 +00:00
Howard Chu
4e01c67966
ITS#2336 - Don't allow rename on subtrees.
2003-02-28 05:18:29 +00:00
Kurt Zeilenga
840f3644f4
SLAP_NVALUES: a couple of basic normalizers... but not working yet.
2003-02-28 05:13:29 +00:00
Kurt Zeilenga
70f5bd5d9d
SLAP_NVALUES: More preparation for new normalization routines
2003-02-27 17:35:23 +00:00
Luke Howard
9eb008ab16
Implemented slapi_dup_control().
2003-02-27 13:00:25 +00:00
Pierangelo Masarati
df57840626
more hacks/comments for SLAP_NVALUES
2003-02-27 09:52:47 +00:00
Kurt Zeilenga
7a7f482623
SLAP_NVALUES: prepare for new schema routines
...
(hopefully I didn't break -USLAP_NVALUES)
2003-02-27 06:51:53 +00:00
Kurt Zeilenga
511a94d98c
SLAP_NVALUES: disable indexing for now
2003-02-27 06:37:10 +00:00
Kurt Zeilenga
32399d9bd9
axe mr_ptr in favor or schema_prep
2003-02-27 03:29:07 +00:00
Kurt Zeilenga
82c403cb7f
Fix typo in last commit
2003-02-27 03:03:54 +00:00
Kurt Zeilenga
152829be87
SLAP_NVALUES:
...
schema engine updated (but not schema routines so things don't run yet)
nvalues mostly populated, enough for tests 0-2 to pass
schema routines needs lots of work
modify/mods codes needs lots of work
2003-02-27 01:54:43 +00:00
Pierangelo Masarati
dd6870515b
quick fix to allow -DSLAP_NVALUES with -DLDAP_SLAPI
2003-02-27 00:41:46 +00:00
Pierangelo Masarati
216bcd948e
more SLAP_NVALUES cleanup
2003-02-26 22:58:46 +00:00
Pierangelo Masarati
87f48aab93
improve previous commit
2003-02-26 22:12:14 +00:00
Pierangelo Masarati
955d298a25
fix ITS#2330; free rdn after usage
2003-02-26 21:47:47 +00:00
Pierangelo Masarati
937475efbf
blind fix
2003-02-26 21:45:56 +00:00
Pierangelo Masarati
7ab954d516
blind fix (accrding to back-monitor hack)
2003-02-26 19:41:27 +00:00
Kurt Zeilenga
baa5c88d75
whoops (again). Don't define SLAP_NOVALUES yet.
2003-02-26 16:48:31 +00:00
Pierangelo Masarati
f32e8ee7e7
blind fix (accrding to back-monitor hack)
2003-02-26 15:59:36 +00:00
Kurt Zeilenga
f1441afbac
Backout prototype rename
2003-02-26 15:53:31 +00:00
Howard Chu
321780eb66
Complain about holes in database at end of slapadd
2003-02-26 15:33:20 +00:00
Howard Chu
1e718b1815
Delete extraneous log msg
2003-02-26 12:57:15 +00:00
Howard Chu
d7aac0a9d5
Only check opinfo.boi_err when ACL check failed.
2003-02-26 12:49:21 +00:00
Howard Chu
18554e7511
Fix attribute/group to allow TXN to abort on lock failure. Save and
...
restore op->o_do_not_cache on TXN retry, bdb_group will set it if it
fails to get a lock.
2003-02-26 12:09:10 +00:00
Howard Chu
00837465c4
Don't need TXN/opinfo support in read-only operations
2003-02-26 11:45:30 +00:00
Howard Chu
bda79780ce
ITS#2122 - actually use the passed in txn handle!!
2003-02-26 10:48:02 +00:00
Howard Chu
3505c326da
bdb_entry_return must explicitly check for/free attr nvals.
2003-02-26 10:10:13 +00:00
Howard Chu
e13246b965
Fix previous commit
2003-02-26 09:59:08 +00:00
Howard Chu
6d0dadc0bf
Fix modify_delete_values. This stuff should be completely rewritten
...
to take full advantage of SLAP_NVALUES.
2003-02-26 09:55:07 +00:00
Howard Chu
284ef10e6e
In slap_mods_check, must null-terminate sm_nvalues array
2003-02-26 09:24:01 +00:00
Howard Chu
01c56e0044
In entry_decode, must null-terminate a_nvals array
2003-02-26 09:11:56 +00:00
Howard Chu
64be098f28
Sync with MR flags in slap.h
2003-02-26 08:40:33 +00:00
Kurt Zeilenga
dd66e6e929
SLAP_NVALUES, round 3
2003-02-26 07:39:30 +00:00
Kurt Zeilenga
46a2616b83
Fix -USLAP_NVALUES
2003-02-26 03:12:02 +00:00
Kurt Zeilenga
25886d989a
Change MR flag names and add comments as to what they mean to slap.h
2003-02-26 02:55:28 +00:00
Kurt Zeilenga
a5e883a886
SLAP_NVALUE more add tweaks
2003-02-26 01:57:07 +00:00
Kurt Zeilenga
2cdbd25a60
SLAP_NVALUES mostly populated now
2003-02-26 01:41:22 +00:00
Kurt Zeilenga
793dada79c
Populate nvals via entry_decode
2003-02-26 01:09:20 +00:00
Kurt Zeilenga
88990a5c6a
SLAP_BVALUES fixes
2003-02-26 00:48:37 +00:00
Kurt Zeilenga
51e841c694
Whoops, SLAP_NVALUES should be off for now
2003-02-25 23:46:40 +00:00
Kurt Zeilenga
122f5d4299
*** empty log message ***
2003-02-25 23:16:21 +00:00
Kurt Zeilenga
a65a55d385
SLAP_NVALUES: fix up modify password exop
2003-02-25 22:57:53 +00:00
Kurt Zeilenga
6390e947b0
SLAP_NVALUES, round 2
2003-02-25 22:49:41 +00:00
Kurt Zeilenga
2a8dec95ba
SLAP_NVALUES back-monitor temporary hack
2003-02-25 21:19:42 +00:00
Jong Hyuk Choi
71ca4d51f1
log message fix
2003-02-25 21:15:26 +00:00
Kurt Zeilenga
8502301b00
Round one of SLAP_NVALUES code
2003-02-25 21:08:48 +00:00
Kurt Zeilenga
5b4e69a564
Fix monitorContext description
2003-02-25 20:41:28 +00:00
Kurt Zeilenga
627de4de15
Additional indexer normalization (need to check all Indexers)
2003-02-25 19:21:18 +00:00
Kurt Zeilenga
ec9db8dec1
Quick (and incomplete) fix to " foo " indexing
2003-02-25 19:01:33 +00:00
Kurt Zeilenga
02b98006f0
Add comment about subschema ACLs
2003-02-25 19:00:59 +00:00
Howard Chu
4c760dfc18
Fix? For bdb_cache_find_entry*, COMMITTED entries are usable, not just
...
READY entries. This change eliminates a retry bottleneck, and looks safe
to me, but please review.
2003-02-22 12:39:49 +00:00
Howard Chu
d3fafb16b2
Fix ITS#2319, use "," comma to delimit port number in rej filename
...
on Windows instead of ":" colon.
2003-02-22 01:14:24 +00:00
Howard Chu
c756bf0590
Change - bdb_tool_entry_put always "sorts" entries:
...
instead of just calling bdb_next_id, it calls bdb_dn2id to see if the
current entry already has an ID. If so, it uses it.
if not, it recurses to see if its parent exists, and does dn2id_add from
the database suffix back to the current entry.
2003-02-21 10:13:20 +00:00
Howard Chu
9c701c8861
Fix ITS#2320, check for NULL re->re_replicas
2003-02-21 02:14:46 +00:00
Kurt Zeilenga
13b63911a4
ITS#2318: unlink pid file (and args file)
2003-02-19 20:47:57 +00:00
Kurt Zeilenga
05619c6ec7
ITS#2236. Add missing connections_shutdown() call.
2003-02-19 20:39:04 +00:00
Kurt Zeilenga
fb73fea612
More understandable error text
2003-02-19 16:19:13 +00:00
Howard Chu
9f0598034e
Fix do/don't send result logic
2003-02-19 00:01:22 +00:00
Kurt Zeilenga
6d6bed3bc0
Fix -ULDAP_CLIENT_UPDATE bug (mine)
2003-02-17 17:57:19 +00:00
Kurt Zeilenga
4d9a4174f5
Lower SLAP_MAX_WORKER_THREAD to 16 (from 32)
2003-02-17 17:36:01 +00:00
Howard Chu
979e5073cf
Revert previous kludge in controls.c, use ldap_pvt_thread_pool_context
...
instead if c_sasl_bindop is NULL.
2003-02-16 19:34:29 +00:00
Howard Chu
09585ad3d0
Kludge - set conn->c_sasl_bindop before calling slap_sasl_getdn, otherwise
...
op->o_threadctx is inaccessible.
2003-02-16 12:23:00 +00:00
Howard Chu
d6dab5dfb4
Suppress warning
2003-02-16 12:22:06 +00:00
Howard Chu
187f1d2ad4
Added proxy-whoami keyword for forwarding whoami requests.
2003-02-16 11:21:15 +00:00
Howard Chu
7e1a566391
Use struct berval * instead of ** for newpasswd
2003-02-16 09:42:04 +00:00
Howard Chu
532eea87c9
Added passwd_exop, added matchedDN rewrite for results.
2003-02-16 09:22:44 +00:00
Howard Chu
65bf90ff73
Use struct berval for exop reqoid everywhere. Define berval constants
...
for the known exops.
2003-02-16 06:15:28 +00:00
Howard Chu
8f88bc1f8f
Free default_passwd_hash on cleanup
2003-02-16 06:13:34 +00:00
Kurt Zeilenga
4ae637a08d
Update comment
2003-02-15 16:38:32 +00:00
Kurt Zeilenga
619f9a72ec
Fix typo in last commit
2003-02-14 23:14:19 +00:00
Howard Chu
1756206598
Use bdb_unlocked_cache_return; lock ended when TXN ended.
2003-02-14 22:30:07 +00:00
Kurt Zeilenga
1a14def903
Use function pointers to get at backend routines.
2003-02-14 20:51:35 +00:00
Howard Chu
c04f3e7706
Fix previous commit
2003-02-14 09:17:42 +00:00
Howard Chu
0b6772492f
Use extended async APIs to allow direct parsing of results. Otherwise
...
they will be interleaved in LDAP*. Avoid setting any options on the handle.
2003-02-14 05:23:45 +00:00
Howard Chu
202cf8af75
Implemented connection pooling. Requires libldap_r to allow multiple threads
...
to access the same LDAP* handle.
2003-02-13 23:29:56 +00:00
Howard Chu
b228caa723
Revert previous, wasn't broken.
2003-02-13 23:19:51 +00:00
Kurt Zeilenga
074b1a0d3a
Place SLAP_EXTENDED_SCHEMA behind defined(LDAP_DEVEL)
2003-02-13 20:47:46 +00:00
Howard Chu
568829d821
Fix uninit'd timeout value
2003-02-13 10:24:32 +00:00
Pierangelo Masarati
628bcc7174
improve error handling
2003-02-10 22:34:06 +00:00
Pierangelo Masarati
1db0725502
partially fix ITS#2310
2003-02-10 21:37:30 +00:00
Pierangelo Masarati
06b981429a
fix ITS#2309
2003-02-10 18:15:36 +00:00
Kurt Zeilenga
aaf253318b
Move include <slapi.h> behind #ifdef
2003-02-10 02:09:00 +00:00
Kurt Zeilenga
737f4b0d34
Misc LCUP cleanup
2003-02-09 08:43:20 +00:00
Kurt Zeilenga
db427d725d
no more suffix_alias
2003-02-09 07:28:15 +00:00
Kurt Zeilenga
8f82e9f772
ITS#2117: remove suffixalias support until someone fixes it
2003-02-09 07:20:03 +00:00
Kurt Zeilenga
282f6bc32d
Cancel exop updates
2003-02-09 05:54:45 +00:00
Kurt Zeilenga
c04e9ac993
rename "permit modify" control to "permissive modify"
...
rename "no referrals" controls to "domain scope"
misc cleanup
2003-02-09 05:39:21 +00:00
Kurt Zeilenga
48d47954a6
Rework #ifdef'ing of expermental controls to ease release engineering
...
using LDAP_DEVEL (to indicate experimental) to enable experimental features
(true for HEAD unless LDAP_REL_ENG is defined)
2003-02-08 21:53:05 +00:00
Kurt Zeilenga
a256e5035d
extern'ize
2003-02-08 19:18:46 +00:00
Kurt Zeilenga
698d73d5f3
Disable reverse lookups by default for security
...
(and performance) reasons.
2003-02-08 07:40:19 +00:00
Kurt Zeilenga
1862077b24
Use DB_VERSION_ to set BDB_ENOUGH
2003-02-08 07:38:22 +00:00
Kurt Zeilenga
d1287dd341
Reword BDB 4.0 bug comment now that configure requires BDB 4.1
2003-02-08 01:34:27 +00:00
Kurt Zeilenga
cca15d41c9
minor code cleanup
2003-02-08 00:57:21 +00:00
Kurt Zeilenga
3737a1c8c4
cleanup
2003-02-07 20:33:05 +00:00
Jong Hyuk Choi
886179fbca
cleanup
2003-02-07 20:16:09 +00:00
Kurt Zeilenga
c315e28779
Move RDN checks to entry_schema_check() so that it is consistently
...
applied (and disabled via schemacheck off). Removed add-rdn-values flag.
2003-02-07 20:12:26 +00:00
Kurt Zeilenga
2fccb8d68e
really put SLAPI behind its #ifdef
2003-02-07 19:06:15 +00:00
Kurt Zeilenga
5192938964
code cleanup
2003-02-07 19:05:45 +00:00
Jong Hyuk Choi
82115be0fb
use of normalized dn (fix for a deadlock case ITS#2195)
2003-02-07 15:59:24 +00:00
Jong Hyuk Choi
55cf8bbd88
use of pre-assigned locker in bdb_group() / bdb_attribute()
2003-02-07 15:47:32 +00:00
Pierangelo Masarati
6cf0c94845
some (poor) index cleanup
2003-02-07 15:20:57 +00:00
Pierangelo Masarati
7a97f37bd4
add 'add-rdn-values {on|off}' (default off) switch
2003-02-07 15:19:58 +00:00
Pierangelo Masarati
982969a4ce
cleanup
2003-02-07 15:18:43 +00:00
Pierangelo Masarati
08d9d56721
more exaustive logging in case of trouble
2003-02-07 13:46:17 +00:00
Pierangelo Masarati
f8a1007994
(mostly blind) fix of possible leak/dangling pointer and cleanup
2003-02-07 00:46:11 +00:00
Pierangelo Masarati
9f28f12346
make sure the DN is null-terminated before normalizing it
2003-02-06 19:15:14 +00:00
Pierangelo Masarati
1b499a7d7c
add helper
2003-02-05 22:06:22 +00:00
Pierangelo Masarati
f19df0a307
add 'rebind-as-user' according to back-ldap's implementation
2003-02-05 22:04:20 +00:00
Pierangelo Masarati
eed2d5db4d
only document 'subtree', but also allow 'sub'
2003-02-05 20:38:42 +00:00
Pierangelo Masarati
381e293b41
allow 'sub' and 'subtree' in acl (fix ITS#2300)
2003-02-05 19:39:34 +00:00
Pierangelo Masarati
fae57fcd15
partially fixes ITS#2299
2003-02-05 19:33:01 +00:00
Jong Hyuk Choi
85bdf79337
Filename change : servers/slapd/back-bdb/lcup.c -> servers/slapd/back-bdb/psearch.c
2003-02-05 07:43:00 +00:00
Jong Hyuk Choi
85b1783d5c
LDAP Sync Operation (draft-zeilenga-ldup-sync) as a groundwork for an LDAP replication design
2003-02-05 07:37:02 +00:00
Pierangelo Masarati
1b4401ff53
handle attr delete appropriately (pass test004)
2003-02-04 22:33:51 +00:00
Pierangelo Masarati
677f13a846
handle NULL mod_[b]values case
2003-02-04 21:52:43 +00:00
Pierangelo Masarati
e5a1418756
improve last commit
2003-02-04 19:27:56 +00:00
Pierangelo Masarati
c432154ad1
allow multiple URIs (need to backport to back-ldap)
2003-02-04 18:49:58 +00:00
Luke Howard
f894db3be2
Cleanup #ifdefs
2003-02-04 00:40:46 +00:00
Jong Hyuk Choi
e1bf8cc437
Intermediate Response
2003-02-03 17:28:19 +00:00
Luke Howard
17f2953e40
Do not crash when more than one attribute is passed to
...
slapi_search_internal_bind()
2003-02-02 12:20:38 +00:00
Luke Howard
750cbb7026
Ensure normalized root DN is available to internal SLAPI operations for
...
authorization to work.
Do not crash when forming Modification list from LDAPMod array.
2003-02-02 11:00:52 +00:00
Luke Howard
becd81ebd9
Always pass normalized DN to select_backend() when performing operationals
...
internal to SLAPI
2003-02-02 10:02:25 +00:00
Luke Howard
e59d248858
Fix crasher in bvptr2obj
...
Fix hasvalue
2003-02-02 09:22:38 +00:00
Luke Howard
307f7fcc89
Ensure AttributeDescriptions are initialized to NULL
2003-02-02 09:04:43 +00:00
Luke Howard
eee0086ab2
Add search ref callback
2003-02-01 07:05:01 +00:00
Luke Howard
dfc7d338a6
Add sendreference callback
2003-02-01 07:04:13 +00:00
Howard Chu
6038e912dd
Fix statslog of big attr names
2003-01-31 20:38:25 +00:00
Howard Chu
945c9fb1c7
Tweak previous commit
2003-01-31 19:44:52 +00:00
Howard Chu
f838a4bb53
Fix subtree and matched search in back-hdb
2003-01-31 19:43:14 +00:00
Howard Chu
5e7655d68d
Fix for LDAP_SLAPI not def'd
2003-01-31 18:46:17 +00:00
Luke Howard
e212e59e28
Date PADL copyright notice
2003-01-31 01:06:30 +00:00
Pierangelo Masarati
e3dfb8e317
cleanup
2003-01-31 00:02:51 +00:00
Kurt Zeilenga
e6255466da
Remove FIXME stuff (ITS#2243)
2003-01-30 23:14:10 +00:00
Howard Chu
3250cc8d19
Fix includes for VPATH builds
2003-01-30 22:58:39 +00:00
Howard Chu
23c575805a
Disallow multiple suffixes by default. Otherwise subtree index optimization
...
breaks. #define BDB_MULTIPLE_SUFFIXES if you want multiple suffix support.
If you use it, subtree indexing will slow down by factor of 2.
2003-01-30 22:00:16 +00:00
Pierangelo Masarati
e3b9e0a565
do not treat extensibleObject as special; add comment about referral
2003-01-30 21:21:20 +00:00
Howard Chu
cbf7b063e3
ITS#2285 string_expand for acl set
2003-01-30 20:59:47 +00:00
Luke Howard
c464b299d8
Check for slapi_filter_dup() success in nested filters
2003-01-30 13:07:18 +00:00
Luke Howard
afc8ec976b
Terminate f_sub_any array
2003-01-30 13:06:34 +00:00
Luke Howard
1be73d766c
Added slapi_filter_dup() API from Sun ONE DS 5.x
2003-01-30 13:04:36 +00:00
Luke Howard
a0da326c97
Implemented slapi_filter_apply() API
2003-01-30 12:24:53 +00:00
Luke Howard
13c48d1f76
Ensure that, when an entry is actually being added to the directory,
...
the entry specified by SLAPI_ADD_ENTRY contains the attributes to be
added.
2003-01-29 22:43:19 +00:00
Luke Howard
e86fe9ade8
doPostSearchPluginFNs() should return void for clarity; postoperation
...
plugins have no mechanism by which they may signal an error condition
to the client.
2003-01-29 22:42:13 +00:00
Pierangelo Masarati
4010870f62
cleanup
2003-01-29 19:05:40 +00:00
Pierangelo Masarati
ffc343a485
allow special objectClasses to violate constraint (as suggested by Hallvard, who needs aliases :)
2003-01-29 18:01:15 +00:00
Pierangelo Masarati
683c237a54
bail out is now the default; use noSuchAttribute as error code, as suggested by Kurt
2003-01-29 17:01:04 +00:00
Pierangelo Masarati
6b5611cbac
check for RDN attrs/vals when adding an entry (ITS#2243; need to choose whether to bail out or to add the RDN attr/vals to the entry; FIXME: is constraintViolation a reasonable error?
2003-01-29 15:54:24 +00:00
Pierangelo Masarati
07ad8cefed
silence warning
2003-01-27 21:57:32 +00:00
Pierangelo Masarati
c3847a6136
slapi header cleanup
2003-01-27 21:53:23 +00:00
Pierangelo Masarati
e38e50646b
silence warning
2003-01-27 21:51:33 +00:00
Pierangelo Masarati
ffde204880
trim unused var
2003-01-27 21:49:32 +00:00
Pierangelo Masarati
49c1ba60b7
slapi header cleanup
2003-01-27 21:35:34 +00:00
Pierangelo Masarati
71e35141e1
cleanup null mapping detection
2003-01-27 21:34:25 +00:00
Jong Hyuk Choi
4f64bd9402
LDAP cancel misc patch
2003-01-27 17:08:51 +00:00
Pierangelo Masarati
57e0ac008c
cleanup
2003-01-27 16:48:55 +00:00
Pierangelo Masarati
985dc00b30
cleanup objectclass detection
2003-01-27 16:46:02 +00:00
Pierangelo Masarati
45f4e3602b
clean up mapping api
2003-01-27 16:39:56 +00:00
Pierangelo Masarati
c1f84b5031
bring in slapi_cl.h
2003-01-27 16:39:22 +00:00
Pierangelo Masarati
a62249ed27
fix objectclass mapping (to nothing)
2003-01-27 16:07:10 +00:00
Pierangelo Masarati
d1cc80694f
reworking of slapi headers
2003-01-27 14:44:39 +00:00
Luke Howard
7c41666c5e
Ensure that global plugins are called after backend-specific plugins
...
(this was the intention of the existing code but it was buggy, and it
made sense to implement this logic inside getAllPluginFuncs() rather
than doPluginFNs() - not all plugin users call the latter)
2003-01-27 13:15:21 +00:00
Luke Howard
f989cfddb9
more Sun ONE DS 5.x harmonisation
2003-01-26 01:10:19 +00:00
Luke Howard
3652613cd8
Sun ONE DS 5.x filter harmonisation
2003-01-25 13:36:12 +00:00
Jong Hyuk Choi
0c43007e55
LDAP cancel operation
2003-01-25 00:36:50 +00:00
Hallvard Furuseth
bf8bbc27fe
Fix typo in comment.
2003-01-24 20:12:50 +00:00
Pierangelo Masarati
a9cde92376
include ac/ headers
2003-01-24 12:33:12 +00:00
Luke Howard
9e6a9876b2
Grammar cleanup
2003-01-24 11:56:27 +00:00
Luke Howard
24e14748aa
Fix memory smasher in slapi_x_modifications2ldapmods()
2003-01-24 11:09:20 +00:00
Luke Howard
1e8fd55cfb
Fix uninitialized sl_is_udp
2003-01-24 11:08:54 +00:00
Luke Howard
498420dc26
Check for pPB == NULL (courtesy Pierangelo)
2003-01-24 10:29:24 +00:00
Luke Howard
fc55ee9edc
Support slapi_entry_first_attr()/slapi_entry_next_attr() API
2003-01-24 09:23:06 +00:00
Luke Howard
f709f86bed
include unistd.h for F_LOCK
2003-01-24 09:08:43 +00:00
Luke Howard
45289b09a7
Matching rule constants for future support
2003-01-24 09:00:18 +00:00
Luke Howard
a67c669583
Fix filter iteration bug
2003-01-24 07:51:26 +00:00
Luke Howard
66d38ab10a
Plug memory leak
2003-01-24 06:57:12 +00:00
Luke Howard
146c0085d3
s/ldap_pvt_thread_pool_getcontext/ldap_pvt_thread_pool_context
2003-01-24 06:41:06 +00:00
Luke Howard
562b7fb8d9
fix typo
2003-01-24 05:57:20 +00:00
Luke Howard
6a54a9db0f
Support Sun DS 5.x thread abstraction layer
2003-01-24 05:19:57 +00:00
Howard Chu
eb459f4339
Delete redundant ch_free().
2003-01-24 04:26:04 +00:00
Luke Howard
819d4093ae
Honour PermitModify control when adding or deleting values. This code needs
...
review although, with the control disabled, it should not affect existing
code paths.
2003-01-24 01:43:09 +00:00
Pierangelo Masarati
8d9629e1de
fix logging and uninitialized value warning
2003-01-23 22:55:01 +00:00
Pierangelo Masarati
5a771fcac0
cleanup versioning
2003-01-23 22:45:17 +00:00
Pierangelo Masarati
d8756a1c98
fix ITS#2289 (don't use shared data for search state; use msgid instead)
2003-01-23 22:07:33 +00:00
Luke Howard
7759f75d76
Test PermitModify and NoReferrals controls (note that PermitModify is
...
ignored for the moment - will be fixed shortly)
2003-01-23 15:22:20 +00:00
Luke Howard
eec370af52
LDAPv3 over UDP disposition is now compatible with Active Directory
...
Stubs for PermitModify/NoReferrals controls; implementation coming soon
2003-01-23 15:12:53 +00:00
Luke Howard
2c40905b77
Pass normalized DN to select_backend()
2003-01-23 14:25:13 +00:00
Luke Howard
8621f955b2
Reference slapi_search_internal() due to linker error -- need to fix this
...
properly XXX
2003-01-23 11:29:52 +00:00
Luke Howard
8c18022b41
Install object type plugins
2003-01-23 09:22:32 +00:00
Luke Howard
0650e6ad52
Allow plugin to retrieve desired attribute list and state of manageDSAit control
...
Support search preop/rewrite/postop plugins for root DSE and subschema
2003-01-23 08:45:28 +00:00
Hallvard Furuseth
e384faf927
Return 0 or 1 from is_entry_*(), to kill 'signed vs. unsigned' warnings.
2003-01-22 22:01:21 +00:00
Kurt Zeilenga
58bff46c7c
s/AUTHZ/BIND/ for consistency with other Statslog() messages
2003-01-22 21:37:04 +00:00
Luke Howard
12af6de4cf
Clarification regarding compute search filter rewriting: only
...
SLAPI_SEARCH_FILTER needs to be updated
2003-01-22 15:46:45 +00:00
Luke Howard
3dad7cae7b
To conform to the SLAPI spec, slapi_filter_get_ava() should not duplicate
...
for caller
2003-01-22 15:07:23 +00:00
Luke Howard
561ab80de0
Check for modified filter after calling search rewriter plugin
2003-01-22 14:57:35 +00:00
Luke Howard
2aeec166ff
Call rewrite function after preop plugins (not before) - confirmed with Sun
2003-01-22 14:54:12 +00:00
Luke Howard
5b4b062dba
Use ber_dupbv() to avoid crashing on binary values
2003-01-22 14:53:03 +00:00
Luke Howard
265261bf60
Added some OpenLDAP extensions for determining ldapi:// sock/peername
...
and whether connection is UDP
2003-01-22 14:41:51 +00:00
Luke Howard
214b79e740
Call search rewriter callback before first preop search plugin
2003-01-22 13:51:27 +00:00
Luke Howard
2bc4da9378
SLAPI fixes (better documentation)
2003-01-22 13:38:38 +00:00
Luke Howard
faf8d43a6f
First pass at replacing proprietary OpenLDAP virtual attribute API
...
(which existed briefly for a day!) with Sun ONE DS 5.x computed
attribute API
2003-01-22 13:06:46 +00:00
Luke Howard
c76d37313b
More DS 5.x harmonisation
2003-01-22 10:00:27 +00:00
Luke Howard
921d62c2ae
Added slapi_entry_attr_get_charptr() API
2003-01-22 09:35:48 +00:00
Luke Howard
2107a4c1b3
New DS 5.x memory management API memory management API memory management API memory management API
2003-01-22 09:30:47 +00:00
Luke Howard
293c765c11
Added slapi_access_allowed() and slapi_acl_check_mods() API for Sun ONE
...
DS 5.x compat
This required exposing the mods array conversion functions so they
are now in slapi/slapi_utils.[ch]
2003-01-22 09:00:06 +00:00
Luke Howard
fb22bdeb58
Fixed crashed in slapi_value_free
2003-01-21 15:44:04 +00:00
Luke Howard
4fbd922a09
Make sure slapi_valueset_add_value() copies the input value
2003-01-21 15:32:43 +00:00
Luke Howard
e26749d76b
Ensure AttributeDescriptions are initialized to NULL before calling slap_str2ad()
2003-01-21 15:24:28 +00:00
Luke Howard
6469f164a8
Allow coalesce pblock types.
...
Take care with pblock values that need to be duplicated
2003-01-21 15:21:55 +00:00
Luke Howard
7d5978b4aa
Put #endif in correct place when commenting out backend directive check
...
for plugins (now that global plugins are nominally supported)
2003-01-21 15:14:07 +00:00
Luke Howard
17b761cf96
Allow global plugins.
2003-01-21 15:11:35 +00:00
Luke Howard
1e32bdbd69
Allow plugins not associated with a specific backend
2003-01-21 15:09:58 +00:00
Luke Howard
5883b270b8
If no plugins are registered, have front-end silently ignore
2003-01-21 14:52:33 +00:00
Luke Howard
8dd11efd39
Don't crash if no backend
2003-01-21 14:44:51 +00:00
Luke Howard
8de6186e54
Added OpenLDAP-specific SLAPI for getting entry ID
2003-01-21 14:08:58 +00:00
Luke Howard
97b9eb2e55
Set opattr plugin-specific pblock parameters to NULL after coalescing
...
returned attributes
2003-01-21 14:06:22 +00:00
Luke Howard
0edb0803d2
Add support for virtual operational attribute plugin type
2003-01-21 14:00:25 +00:00
Luke Howard
f327941341
Reserve pblock IDs for opattr plugin
2003-01-21 13:51:53 +00:00
Luke Howard
053672c6c0
Added Slapi_AttrSet accessors in order to implement virtual operational
...
attribute plugin
2003-01-21 13:48:37 +00:00
Luke Howard
e09f30179b
First round of DS 5.x SLAPI functions
2003-01-21 12:16:53 +00:00
Luke Howard
f1fdb34fbe
Added slapi_attr_get_flags() and slapi_attr_flag_is_set() API for
...
Sun ONE harmonisation.
2003-01-21 10:12:08 +00:00
Luke Howard
6f26183f20
Confusingly, make SLAPI_OPERATION_AUTHTYPE return a pointer to
...
SLAPI_CONN_AUTHMETHOD. From my understanding of the Sun ONE API
this is the correct behaviour.
2003-01-21 09:50:59 +00:00
Luke Howard
68ed72e4c7
Return LDAP_PARAM_ERROR when NULL passed to internal SLAPI functions
2003-01-21 09:48:28 +00:00
Luke Howard
ff263ec6a7
Return LDAP_OTHER instead of LDAP_OPERATIONS_ERROR for internal SLAPI
...
failure
2003-01-21 09:42:26 +00:00
Luke Howard
4a9213f752
Distinguish between AUTHTYPE and AUTHMETHOD (latter is static storage)
...
for Sun ONE harmonisation
2003-01-21 09:39:56 +00:00
Luke Howard
30d946959e
Set SLAPI_BIND_CREDENTIALS for bind preoperation plugin
2003-01-21 08:35:48 +00:00
Luke Howard
313d3633e3
Further harmonisation with Sun ONE SLAPI: extra PBlock parameters
...
on connections and operations
2003-01-21 08:34:25 +00:00
Luke Howard
53ced8a648
Allow SLAPI bind plugins to set the authorization identity, at least for
...
simple binds
2003-01-21 06:30:38 +00:00
Luke Howard
8ab0c4d401
fix SLAPI_MODIFY_MODS pointer error
2003-01-21 05:56:46 +00:00
Luke Howard
84918362df
Allow a modify preoperation plugin to insert additional modifications to
...
be applied by the backend.
2003-01-21 05:30:14 +00:00
Luke Howard
8e8b4093f5
Mark Sun ONE 5.x SLAPI plugin types to avoid collisions
...
Rename internal slapi_XXX API to slapi_x_XXX
Always set result code/matched/error text in operation parameter block
to make available to postoperation plugins
2003-01-21 02:46:55 +00:00
Luke Howard
45a66e2ed4
Harmonise slapi_ch_free() with Sun ONE API
2003-01-20 23:29:30 +00:00
Luke Howard
d484a9781c
Conform SLAPI to Netscape, iPlanet and Sun ONE Directory Server
...
behaviour:
1. Plugins never return LDAP result codes, instead they return a
small integer (0 or -1, others for special cases)
2. Preoperation plugins can abort processing by returning a non-
zero value to the frontend
3. Postoperation plugins never abort processing (all are called)
and their return values are ignored
2003-01-20 23:18:11 +00:00
Kurt Zeilenga
b5594b2750
Return the Start TLS error.
2003-01-20 22:37:42 +00:00
Luke Howard
27dba2226f
Only non-postoperation plugins should be able to abort processing of further
...
plugins.
2003-01-20 22:33:50 +00:00
Kurt Zeilenga
6d1ca4c747
Remove values match v. filter struct field macro overloads
...
Use LDAP_SLISTs instead of per-struct list management for schema structs
misc cleanup and lint removal
2003-01-20 20:21:17 +00:00
Kurt Zeilenga
521d8384a1
works without SLAPI
2003-01-20 20:18:53 +00:00
Kurt Zeilenga
a190d15a60
cleanup
2003-01-20 20:17:12 +00:00
Kurt Zeilenga
b3705e69f4
Add LDAP_BEGIN/END_DECL
2003-01-20 20:16:42 +00:00
Kurt Zeilenga
5bbf08d3ff
ITS#2266: -b option missing break
2003-01-20 19:13:00 +00:00
Kurt Zeilenga
bcd7306877
ITS#2268: SASL/ANONYMOUS fixes from kuenne@rentec.com
2003-01-20 18:09:46 +00:00
Luke Howard
c9278e54ec
Fix up return values in new slapi private API
2003-01-20 00:11:56 +00:00
Luke Howard
d3292b83fa
Style consistency in new SLAPI_MODIFY_MODS code
2003-01-19 22:49:21 +00:00
Luke Howard
fe4cd099c8
FreeLDAPMods() should be static
2003-01-19 22:45:10 +00:00
Luke Howard
8e8228f0b0
Fix libltdl link dependency causing link error on Linux
2003-01-19 22:43:29 +00:00
Luke Howard
6a5f29b60a
Use new SLAPI API for setting associated parameters associated with the
...
Connection, Operation and Backend structures.
Ensure that SLAPI_MODIFY_MODS is set to an array of LDAPMods.
2003-01-19 15:30:10 +00:00
Luke Howard
d54548b9a0
Use strtol() not strtoul() in integerBit{And,Or}Match matching rules
2003-01-19 15:20:09 +00:00
Luke Howard
8866875e69
return error codes from new internal API
2003-01-19 15:04:19 +00:00
Hallvard Furuseth
6a51371fc5
Silence gcc warnings (signed vs. unsigned, implicit declarations, unused vars).
2003-01-19 15:03:25 +00:00
Luke Howard
cb61800ac6
added slapi_backend_set_pb
2003-01-19 14:55:10 +00:00
Luke Howard
17f95a3fd3
added slapi_operation_set_pb
2003-01-19 14:47:26 +00:00
Luke Howard
ec05ef7f22
Added slapi_connection_set_pb() API for front-end.
...
Implemented slapi_is_connection-ssl().
2003-01-19 14:32:49 +00:00
Hallvard Furuseth
3bd76701d1
Fix printf format errors.
2003-01-19 14:07:02 +00:00
Hallvard Furuseth
265b7e22c6
Insert missing initializers, to silence gcc warnings.
2003-01-19 13:38:44 +00:00
Hallvard Furuseth
1fbbc11811
Fix LBER_ERROR vs. -1 confusion.
2003-01-19 13:10:17 +00:00
Pierangelo Masarati
8d0711b08f
slapi-plugin.h goes in include
2003-01-18 11:19:27 +00:00
Kurt Zeilenga
6939c53170
Happy new year
2003-01-03 20:20:47 +00:00
Hallvard Furuseth
aeaaa8c6ca
Fix octetStringOrderingMatch(). It thought "b"<"aa", becuase "b" is shorter.
2003-01-03 17:06:01 +00:00
Hallvard Furuseth
b0f9305b66
Delete bitStringNormalize().
2003-01-03 16:17:06 +00:00
Kurt Zeilenga
8f0dc1a4a3
Fix ocflags tests
2003-01-02 23:55:37 +00:00
Hallvard Furuseth
d96236b5ce
Fix attribute value parsing in objectIdentifierFirstComponentMatch().
2003-01-02 15:01:56 +00:00
Kurt Zeilenga
887c21c53e
Fix typo in last commit
2002-12-30 04:23:31 +00:00
Kurt Zeilenga
a4ad2eea17
ACL cleanup
...
Likely needs more deadlock detection checks
2002-12-30 01:12:10 +00:00
Kurt Zeilenga
ed471a4d53
Fix access_allowed() error checking bug
2002-12-30 01:02:31 +00:00
Pierangelo Masarati
f148506bf6
reworking of error handling (should also fix ITS#2235)
2002-12-27 18:08:27 +00:00
Pierangelo Masarati
0baf5af19b
reworking of error handling (should also fix ITS#2235)
2002-12-27 17:53:53 +00:00
Pierangelo Masarati
ddb17d592f
use 'safe' functions
2002-12-27 17:24:47 +00:00
Pierangelo Masarati
9f269f2227
cleanup
2002-12-27 17:24:20 +00:00
Pierangelo Masarati
e9a74cffba
slapi used the old version of the LDAP_LOG macro (caught by Howard)
2002-12-27 14:59:01 +00:00
Pierangelo Masarati
b793be6aca
slapi cleanup
2002-12-27 14:58:20 +00:00
Pierangelo Masarati
8527127602
fix slapi build
2002-12-27 12:10:05 +00:00
Pierangelo Masarati
f83585952d
misc slapi cleanup
2002-12-27 11:48:41 +00:00
Pierangelo Masarati
b027461b9d
unsigned is good for all
2002-12-23 13:43:01 +00:00
Pierangelo Masarati
c7e5fba1a2
fix indirect idl block fetch failure (should be back-ported)
2002-12-23 12:51:21 +00:00
Kurt Zeilenga
b2a3ceb002
A few X.509 certificate tweaks... needs work (and testing)
2002-12-21 22:54:51 +00:00
Kurt Zeilenga
a3837b107a
Minor cleanup
2002-12-21 22:54:25 +00:00
Kurt Zeilenga
539693f56c
Correct fix
2002-12-20 17:57:00 +00:00
Kurt Zeilenga
b47d0d6b6a
if 0 out bad statslog
2002-12-20 17:25:51 +00:00
Kurt Zeilenga
f43bf6b283
cleanup
2002-12-20 04:08:06 +00:00
Howard Chu
4e4818771c
Plug memory leak
2002-12-18 22:44:13 +00:00
Howard Chu
89ab02479d
Use ber_flatten2
2002-12-18 19:17:15 +00:00
Howard Chu
4ab720eefa
Eliminate redundant steps
2002-12-18 19:00:23 +00:00
Howard Chu
06c223991f
Fix previous commit, compare must return signed result
2002-12-18 07:55:27 +00:00
Howard Chu
bb9531eda6
Plug memory leak
2002-12-18 01:58:18 +00:00
Kurt Zeilenga
75757a5c82
Don't reeval expression
2002-12-17 05:25:05 +00:00
Howard Chu
870c3cb5c6
Revert previous, it was only masking the real problem. And caused more...
2002-12-17 04:56:41 +00:00
Howard Chu
0e69c86461
Fix Statslog messages
2002-12-17 00:23:36 +00:00
Howard Chu
48c8cebbe3
Fix typo in previous commit
2002-12-16 12:17:49 +00:00
Howard Chu
7c7daf8556
Statslog additions:
...
Added StatslogTest macro.
Added attributes to modify and search Statslog.
Added Statslog of SASL authcid.
2002-12-16 12:14:37 +00:00
Howard Chu
40b651afb1
Fix previous commit, was freeing name from rev-lookup too soon.
2002-12-16 00:58:05 +00:00
Hallvard Furuseth
2bcb48361d
Remove casts of AVL function pointers.
2002-12-14 22:25:52 +00:00
Hallvard Furuseth
ff2a3201cb
Call node_find_cmp() with (void *)&ulong instead of (void *)ulong.
...
The old code assumed sizeof(long) == sizeof(void *), among other things.
2002-12-14 21:01:08 +00:00
Pierangelo Masarati
df5d69df8f
allow a custom error log file for plugins by means of a slapd.conf directive; add very bare-bone back-monitor info about installed plugins
2002-12-14 15:04:37 +00:00
Hallvard Furuseth
486eaa69b6
Rename "lang(uage)" to "tag(s)". (Cleanup after attribute options patch.)
2002-12-13 19:15:20 +00:00
Kurt Zeilenga
7be4d566d7
cleanup
2002-12-13 00:18:54 +00:00
Hallvard Furuseth
54728f367e
Implement user-defined tagging attribute options and ranges
2002-12-12 13:56:05 +00:00
Howard Chu
88adbc8691
Fix ITS#2234 canonicalization bug
2002-12-12 13:49:25 +00:00
Kurt Zeilenga
854e447231
misc cleanup
2002-12-11 20:39:05 +00:00
Howard Chu
b40e40ec3c
undef CONNECTION_INPUT_LOOP, use DATA_READY_LOOP. Seems to help prevent
...
hangs in heavy load situations.
2002-12-11 18:36:02 +00:00
Howard Chu
ee571c54a4
Must use reentrant gethostbyaddr for reverse lookups. Other threads may
...
be doing lookups too (e.g., SASL/GSSAPI)
2002-12-11 16:36:36 +00:00
Howard Chu
56c11f4a13
Fix ITS#2227, nameUIDNormalize fell behind the times...
2002-12-11 01:33:24 +00:00
Howard Chu
e39f9848ac
Fix previous commit, check for dup in avl_insert
2002-12-10 20:56:08 +00:00
Howard Chu
349e05ff4d
Added config keyword "searchstack" for setting search stack cache depth.
...
Default is still 16.
Added IDL caching, modified from ITS#2182. Uses "idlcachesize" config
keyword. Code is #ifdef'd, currently defined, with default cache of 0.
2002-12-10 20:33:49 +00:00
Howard Chu
d4a422329b
From ITS#2183, use a long-lived IDL stack per thread.
2002-12-10 17:59:21 +00:00
Kurt Zeilenga
32f6c9ec6d
Make digit a local static variable instead of a global
2002-12-10 16:44:02 +00:00
Hallvard Furuseth
fbbbdd8b94
ITS#2215: Let Statslog() work if only one of LDAP_DEBUG/LDAP_SYSLOG is #defined
2002-12-09 18:18:14 +00:00
Pierangelo Masarati
bc35e4bc0d
another attempt to fix slapi build sequence ...
2002-12-09 12:17:23 +00:00
Kurt Zeilenga
56ebd53e51
expand authid buffer
2002-12-08 07:56:49 +00:00
Pierangelo Masarati
08710f80cd
fix previous commit
2002-12-07 19:19:26 +00:00
Pierangelo Masarati
d19706634c
fix previous commit
2002-12-07 19:00:34 +00:00
Kurt Zeilenga
e9ab2f8d06
Catch NULL control OID up front.
2002-12-07 18:35:22 +00:00
Kurt Zeilenga
7c4445aed4
Avoid magic constant (32) in allocation. Use sizeof instead
2002-12-07 18:34:25 +00:00
Pierangelo Masarati
5b87c4c448
some todo stuff
2002-12-07 18:31:25 +00:00
Pierangelo Masarati
1b70e16448
SLAPI - Netscape plugin API for slapd - based on patch contributed by Steve Omrani <somrani@us.ibm.com> as ITS#2073
2002-12-07 17:19:29 +00:00
Kurt Zeilenga
db98e44d6a
Finish proxy authzid control
2002-12-05 18:14:02 +00:00
Luke Howard
6730080081
Allow the root DN to switch to any authorization identity.
2002-12-05 12:25:16 +00:00
Pierangelo Masarati
8e74ed4dfc
fix initialization size and silence warning
2002-12-05 11:47:44 +00:00
Howard Chu
b1798f9160
Fix typo in prev commit value_find/_ex
2002-12-04 23:20:22 +00:00
Howard Chu
574090d184
Fix slap_sasl2dn(), performing internal search with wrong op.o_ndn.
2002-12-04 22:37:51 +00:00
Howard Chu
09679eb715
Added SLAP_MR_VALUE_NORMALIZED_MATCH, avoid redundant normalize when
...
calling value_find with already-normalized DNs
2002-12-04 18:19:46 +00:00
Kurt Zeilenga
eb41333e4c
Use getpeereid(3) where available else use *_PEERCRED replacment function
2002-12-04 06:17:32 +00:00
Luke Howard
daf7d0c0eb
Support SO_PEERCRED SASL EXTERNAL authorization.
2002-12-04 04:14:44 +00:00
Luke Howard
a6edb2ae36
Treat all EXTERNAL DNs are already normalized.
2002-12-04 04:13:20 +00:00
Howard Chu
827ea96e16
ITS#1523 enhanced ACL caching
2002-12-04 02:35:00 +00:00
Julius Enarusai
9b5ec8f43b
Fixed minor compile errors in LDAP_LOG debug statements.
2002-12-03 17:06:58 +00:00
Kurt Zeilenga
da76c1951e
First-cut proxy authorization support.
2002-12-03 06:11:32 +00:00
Hallvard Furuseth
416aeb9347
Never let ldif_parse_line() return a NULL value with success.
2002-12-02 22:46:07 +00:00
Hallvard Furuseth
b968317900
A search requesting 'cn;lang-en-' did not find 'cn;lang-en'.
2002-11-30 20:00:01 +00:00
Pierangelo Masarati
6ce1fc099a
fix handling of anomalous databases, like subordinate ones (as suggested by Howard)
2002-11-29 17:43:28 +00:00
Howard Chu
0c5d1dc00f
Fix ITS#2214, clear gs->matched after freeing it.
2002-11-28 17:20:17 +00:00
Howard Chu
3260b26717
Fix ITS#2200, must use SASL creds exactly as received
2002-11-28 16:16:05 +00:00
Howard Chu
ce581462bd
More streamlining.
2002-11-28 15:47:06 +00:00
Howard Chu
5f4db0b47f
Don't use be_private to point to our glueinfo. This allows underlying
...
backends to be called directly, instead of having to wrap every function.
Delete unneeded wrappers.
2002-11-28 15:17:26 +00:00
Pierangelo Masarati
a7c5307279
perhaps the assert can be removed; should work now
2002-11-28 08:25:12 +00:00
Kurt Zeilenga
8754c8f2a3
#unifdef paged results, remove lint
2002-11-28 04:38:41 +00:00
Howard Chu
ca4764ccfa
ITS#2202, set SASL_SUCCESS_DATA on sasl_server_new().
2002-11-27 03:49:04 +00:00
Howard Chu
36c915a134
Fix ITS#2200, revert patch in rev 1.128. SASL/Kerberos4 requires a patch
...
to Cyrus SASL lib/server.c, can't fix it here.
2002-11-27 03:46:42 +00:00
Kurt Zeilenga
4e223d588b
Reorder header inclusion to resolve ITS#2204.
2002-11-26 20:22:24 +00:00
Kurt Zeilenga
5e572b5deb
Clean up examples
2002-11-26 17:56:51 +00:00
Pierangelo Masarati
e178624b42
cleanup
2002-11-25 23:37:54 +00:00
Pierangelo Masarati
014ba5ac80
silence warning
2002-11-25 23:37:10 +00:00
Pierangelo Masarati
a62aa61544
much better fix for ITS#2196 (dnattr without sat_equality is bounced at config)
2002-11-25 18:37:04 +00:00
Pierangelo Masarati
95f75aaf15
mr should not be NULL; fixes ITS#2196
2002-11-24 21:36:14 +00:00
Pierangelo Masarati
7091853dfc
ITS#2176: Change password on slave when multimaster is enabled (do not use multimaster)
2002-11-22 00:56:20 +00:00
Pierangelo Masarati
9ccf63f327
remove paged results cruft
2002-11-21 22:37:06 +00:00
Pierangelo Masarati
8473f6e778
set keyword to noEstimate and document it
2002-11-21 20:57:00 +00:00
Pierangelo Masarati
415a8d325f
add limits to entries count for paged results
2002-11-21 20:49:02 +00:00
Pierangelo Masarati
2b639068b6
seems to be leaking a ber
2002-11-21 20:21:22 +00:00
Pierangelo Masarati
3ff7138cb2
improve limits handling and consistency
2002-11-21 14:23:39 +00:00
Pierangelo Masarati
59aea47963
improve limits handling and consistency; return "Admin limit exceeded" instead of "Unwilling to perform"
2002-11-21 12:58:59 +00:00
Pierangelo Masarati
b26ecba01a
- allow interactive pagedResults size change
...
- implement pagedResults abandon by setting size=0
- misc code cleanup
2002-11-21 03:36:37 +00:00
Pierangelo Masarati
acab9b3266
remove cruft
2002-11-21 02:18:31 +00:00
Pierangelo Masarati
26d2ea1488
fix typo in comment :)
2002-11-21 02:18:13 +00:00
Pierangelo Masarati
6a917650e8
add supported controls to backend entries
2002-11-21 02:17:24 +00:00
Pierangelo Masarati
c354bb23bf
Support for RFC 2696:
...
LDAP Control Extension for Simple Paged Results Manipulation
contributed by Lynn Moss <lynnmoss@us.ibm.com> (ITS#2189)
applied with changes.
2002-11-21 02:16:53 +00:00
Pierangelo Masarati
0f17b4f852
fix possible uninitialized use of nmods
2002-11-21 00:31:36 +00:00
Julius Enarusai
614e7d565d
Converted ch_malloc and ch_calloc calls to SLAP_MALLOC and SLAP_CALLOC.
2002-11-19 21:26:09 +00:00
Julius Enarusai
3fddf93a7b
Converted ch_malloc and ch_calloc calls to SLAP_MALLOC and SLAP_CALLOC.
2002-11-19 20:20:00 +00:00
Julius Enarusai
fe569dbb75
Converted ch_malloc and ch_calloc calls to SLAP_MALLOC and SLAP_CALLOC.
2002-11-19 18:24:18 +00:00
Julius Enarusai
d9e7a7190b
Converted ch_calloc and ch_malloc calls to SLAP_CALLOC and SLAP_MALLOC.
2002-11-19 17:06:17 +00:00
Howard Chu
1385f29ebc
Fix is_entry_objectclass flag comparisons (from Jason Townsend @ Apple)
2002-11-18 03:56:54 +00:00
Kurt Zeilenga
390cdcfbc2
Add AUTHZ stats logging
2002-11-11 18:55:45 +00:00
Kurt Zeilenga
e1f2ed9bc1
Delete some old (bad) statslog messages
2002-11-11 18:38:57 +00:00
Pierangelo Masarati
498d1f043d
silence warnings; fix messages
2002-11-10 20:00:44 +00:00
Pierangelo Masarati
76bf91f553
remove #ifdef SLAP_FILTER_HASSUBORDINATES
2002-11-10 19:48:36 +00:00
Pierangelo Masarati
a9c902a7ca
improve error messages
2002-11-10 18:16:43 +00:00
Kurt Zeilenga
b5b495a871
Remove extra entry_free()
2002-11-10 06:48:55 +00:00
Pierangelo Masarati
5794b3a2dd
Add checks for SQL headers in configure.in (need to rerun autoheader
...
and autoconf); #include "ac/string.h" instead of <string.h>
2002-11-09 17:03:07 +00:00
Pierangelo Masarati
0491710fa7
Patch: Wrong args to Debug() and LDAP_LOG() (ITS#2170,2171)
...
================
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
================
2002-11-09 16:09:50 +00:00
Pierangelo Masarati
7400191ba8
cleanup str2adlist
2002-11-09 14:46:00 +00:00
Julius Enarusai
8669824fd5
Converted ch_calloc calls to SLAP_CALLOC.
2002-11-08 18:17:21 +00:00
Julius Enarusai
6e9c21cff8
Converted ch_malloc, ch_calloc and ch_realloc calls to SLAP_MALLOC,
...
SLAP_CALLOC and SLAP_REALLOC respectively.
2002-11-08 17:13:20 +00:00
Pierangelo Masarati
a777c53564
fix attribute delete (ITS#2158) patch provided by Timofey B. Nickonov <ntb@mts.ru>
2002-11-02 16:00:21 +00:00
Julius Enarusai
2d98b19bf7
Converted ch_malloc, ch_calloc and ch_realloc calls to SLAP_MALLOC and
...
SLAP_CALLOC in add_value/add_value_one functions and propagated errors to
all functions that use these functions.
2002-11-01 18:59:52 +00:00
Howard Chu
24f1a11cde
Fix sasl_server_start invocation, must pass NULL cred when credlen is 0.
2002-11-01 02:14:55 +00:00
Stig Venaas
0f86bbde87
Fix referrals and alias. For ldbm and I think for bdb, this is necessary
...
now that we normalize to lower case. Should be merged into 2.1.
2002-10-31 16:48:04 +00:00
Pierangelo Masarati
53e1930fd0
use keyword "unlimited" instead of -1 for no limits
2002-10-31 09:57:24 +00:00
Jong Hyuk Choi
ca8ab9d809
changes in bdb_psearch() - search scope check
2002-10-29 08:05:45 +00:00
Jong Hyuk Choi
2e1809d76f
change due to removal of servers/slapd/lcup.c
2002-10-29 04:39:05 +00:00
Jong Hyuk Choi
3d4a915f2b
Removal of servers/slapd/lcup.c
2002-10-29 00:00:47 +00:00
Jong Hyuk Choi
3a9229a3e9
Use of slap_schema.si_ad_entryUUID in bdb_psearch()
2002-10-28 23:57:54 +00:00
Kurt Zeilenga
6f59ca0e5b
Add superiorUUID to system schema
2002-10-28 20:01:55 +00:00
Kurt Zeilenga
293158f432
code cleanup
2002-10-27 03:42:32 +00:00
Kurt Zeilenga
886f60f822
Fix typo
2002-10-27 00:41:52 +00:00
Howard Chu
322a800c26
Fix ITS#2157, server should never attempt to unlink the client's socket.
...
It likely has no name anyway, and the client owns it after all.
2002-10-26 22:41:26 +00:00
Pierangelo Masarati
dea2420569
beautify "unknown"
2002-10-26 18:51:24 +00:00
Pierangelo Masarati
f07cabad0f
need to move #define here; on by default
2002-10-26 16:32:11 +00:00
Pierangelo Masarati
7b3f889ec1
fix hasSubordinate filtering; now it can be safely turned on
2002-10-26 16:18:31 +00:00
Pierangelo Masarati
69343add5a
use more appropriate error code
2002-10-26 10:05:35 +00:00
Pierangelo Masarati
8558b8808e
actually, get_perms is needed by ldapi:// rgeardless of -DSLAP_X_LISTENER_MOD
2002-10-26 10:02:41 +00:00
Kurt Zeilenga
36569048ff
Add "allow update_anon"
...
Fix -USLAP_X_LISTENER_MOD builds
2002-10-25 18:47:24 +00:00
Jong Hyuk Choi
15c5943edd
Addition of servers/slapd/lcup.c and servers/slapd/back-bdb/lcup.c for persistent search
2002-10-25 17:57:03 +00:00
Jong Hyuk Choi
8074294f1d
LCUP persistent search code drop
2002-10-25 17:51:30 +00:00
Pierangelo Masarati
97e526cb2d
add restrictions related to listeners in form of file permissions
...
(see in slapd(8) the description on how to enforce file permissions
on sockets in ldapi schema); at present, only user permissions are
used as follows: the url extension x-mod=-rwxrwxrwx is used; only
the user permisisons are considered, e.g. the first set of rwx;
"r" means read is allowed from that listener
"w" means write is allowed on that listener
"x" means bind is not required on that listener
these restrictions ADD to those already present, and are actually
checked AFTER the other restrictions, but BEFORE ACLs, so they can
be used to apply gross restrictions but should not be viewed as
a replacement of ACLs. To compile this, #define SLAP_X_LISTENER_MOD
2002-10-25 16:43:44 +00:00
Kurt Zeilenga
6d199506bb
ber_write error message cleanup
2002-10-25 05:47:08 +00:00
Kurt Zeilenga
2b2e406b46
Make sure that newSuperior isn't old superior
2002-10-25 01:09:50 +00:00
Pierangelo Masarati
956f1d16aa
listener:
...
- use bervals for url and sockname
- pass connection_init() the listener struct pointer instead of each value
- don't copy them in the Connection struct 'cause they're not going to change
- define macros for legacy usage of c_listener_url and c_sockname
2002-10-24 10:03:52 +00:00
Pierangelo Masarati
fdd586a6b7
change socket permission syntax (to reuse function for other purposes)
2002-10-23 14:12:01 +00:00
Pierangelo Masarati
456a561b65
prevent use of uninitialized var
2002-10-23 14:11:02 +00:00
Pierangelo Masarati
665cb3e86e
fix typo
2002-10-23 14:10:21 +00:00
Kurt Zeilenga
ff9dd56587
Add comment attributing origin of the Metaphone algorithm
2002-10-22 04:52:57 +00:00
Kurt Zeilenga
c382c5efa2
blind fix for NULL pointer in Debug() bug (ITS#2143)
2002-10-17 17:45:44 +00:00
Kurt Zeilenga
ac66a219d0
Fix comment
2002-10-17 04:35:55 +00:00
Kurt Zeilenga
c64d28aa4e
correct security sample
2002-10-12 05:10:41 +00:00
Howard Chu
9d2a8ba1b4
More fixes for ITS#2136, make sure all error returns set *text.
2002-10-11 17:12:56 +00:00
Kurt Zeilenga
40b685b70d
Patch: Delete the buggy surrogate parent code (ITS#1815)
...
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
2002-10-10 20:28:36 +00:00
Kurt Zeilenga
5504bed852
More OBSOLETE checks
2002-10-10 02:38:32 +00:00
Kurt Zeilenga
857165b1bf
Add some OBSOLETE schema checks
2002-10-10 02:07:24 +00:00
Kurt Zeilenga
b5020aa16d
Don't mask error text variables
2002-10-09 23:36:28 +00:00
Kurt Zeilenga
27cb98d28d
Remove lint
2002-10-09 23:35:45 +00:00
Kurt Zeilenga
1aa829922f
Implement content rule checks
...
w/ implicit default rules allowing any auxiliary class to be mixed in
2002-10-09 23:02:01 +00:00
Howard Chu
e6d10b9590
Revert previous commit. More thought needed re: IPV4 vs IPv6 failures
2002-10-09 21:18:51 +00:00
Howard Chu
2e538e19d4
ITS#2132, give up at first bind failure
2002-10-09 20:45:13 +00:00
Kurt Zeilenga
5060ebb36d
Fix bad sup error
2002-10-09 19:24:02 +00:00
Kurt Zeilenga
dff7315edf
Need ../cr.o
2002-10-09 19:11:12 +00:00
Howard Chu
b9bd44b047
Fix ITS#2132, give up if listener fails to open
2002-10-09 18:57:50 +00:00
Kurt Zeilenga
acc32b9d9e
Basic framework for DIT Content Rules (not yet enforced)
2002-10-09 07:11:50 +00:00
Kurt Zeilenga
023d0e2a5c
Rework unprotected simple bind checks
2002-10-08 19:03:18 +00:00
Kurt Zeilenga
06f69e603c
Add security restrictions examples
2002-10-08 01:15:20 +00:00
Kurt Zeilenga
36fca96695
if "disallow bind_simple_unprotected", require at least SSF of 2
2002-10-08 01:06:49 +00:00
Kurt Zeilenga
df6c69ffd6
More entry level access control for back-shell
...
(should be applied to back-perl and other programmable backends)
2002-10-07 21:56:43 +00:00
Kurt Zeilenga
3a17376dfd
s/256/LBER_ELEMENT_SIZEOF/
...
set LBER_ELEMENT_SIZEOF to 256
maybe this should be set to N*sizeof(size_t) or something
2002-10-07 21:01:47 +00:00
Kurt Zeilenga
cb73d243fb
More "entry" level ACLs for entry add, delete, and rename.
2002-10-07 19:19:29 +00:00
Kurt Zeilenga
d19db4b7ed
Fix up last commits
2002-10-04 23:42:27 +00:00
Kurt Zeilenga
9fbcc90bd5
Add "entry" ACL checks for add/delete/rename ops
2002-10-04 23:26:28 +00:00
Kurt Zeilenga
8975676fa4
Clean up some #else #if 'ing
2002-10-04 18:36:44 +00:00
Kurt Zeilenga
5b591d0dec
Fix subentry OIDs
2002-10-02 01:18:46 +00:00
Kurt Zeilenga
33248a02e1
Code cleanup (no functional changes)
2002-10-01 04:07:55 +00:00
Kurt Zeilenga
f5e6d1db41
#unifdef -DSCHEMA_DN
2002-09-29 04:30:38 +00:00
Kurt Zeilenga
4ef4c9eb06
Return default referral if DN maps to empty domain.
2002-09-26 16:12:39 +00:00
Kurt Zeilenga
b4e1ea15f3
benign buffer overflow fix (ITS#1964)
2002-09-25 04:34:33 +00:00
Kurt Zeilenga
bbbf2f4ca7
Fix handling of non-critical controls for backends which
...
support no controls.
2002-09-24 18:20:59 +00:00
Kurt Zeilenga
d0a4fee37a
Minor updates
2002-09-22 19:09:47 +00:00
Kurt Zeilenga
976c35fbf0
fix possible uninit bug
2002-09-21 04:33:19 +00:00
Howard Chu
bdf9b3ae1b
Fix ITS#1033 slapd hangs with GNU Pth - don't write to the wakefd
...
more than once at any given time.
2002-09-21 03:52:16 +00:00
Kurt Zeilenga
f558b6b02f
Add experimental +/- AttributeName support.
2002-09-21 00:11:43 +00:00
Kurt Zeilenga
d9d58ae02f
Save "-" for no subtypes
2002-09-20 19:58:25 +00:00
Howard Chu
9ba829436e
Add dummy reference to lutil_uuidstr() for dynamically loaded back-bdb
...
and back-ldbm.
2002-09-20 01:02:33 +00:00
Howard Chu
104f8cc409
Simpler fix for NO_THREADS
2002-09-19 06:34:53 +00:00
Howard Chu
ff9e580d33
Updated BDB_HIER for current API
2002-09-19 06:08:12 +00:00
Howard Chu
6fa0363d09
Don't set bdb yield with NO_THREADS
2002-09-19 01:38:00 +00:00
Howard Chu
919274432b
Fixes for NO_THREADS
...
Use a per-env locker ID
Always set lock_detect, since we allow slapadd etc. concurrently
Also removed unused lock_detect_task code. lockdetect config keyword only
needs <policy>, no <seconds> argument.
2002-09-19 01:13:27 +00:00
Howard Chu
7666bb7482
Add calls to module_init/module_kill to support dynamically loaded backends.
2002-09-18 11:58:19 +00:00
Kurt Zeilenga
3eb21d8a6c
Misc cleanup
2002-09-16 21:50:55 +00:00
Kurt Zeilenga
f0364e25d1
Fix sizeof [r]buf typo
2002-09-16 21:35:33 +00:00
Kurt Zeilenga
cc7d1433bb
For object classes in attribute lists, use '+' (or '-') to indicate
...
name is an objectClass.
2002-09-16 20:48:08 +00:00
Kurt Zeilenga
a1da292989
Wrap csn filter frees with sync mode check.
2002-09-15 22:42:50 +00:00
Kurt Zeilenga
88c8cca820
Fix return value
2002-09-15 22:42:07 +00:00
Kurt Zeilenga
0ad91236fd
Add LDAP_CONTROL_CLIENT_UPDATE to list of supported controls
2002-09-15 22:28:38 +00:00
Kurt Zeilenga
1d0e916c6f
Misc CLIENT_UPDATE cleanups
2002-09-15 22:22:51 +00:00
Kurt Zeilenga
2a9783bd5e
Fix typos in last commit
2002-09-15 22:13:25 +00:00
Kurt Zeilenga
629a0219f2
Cleanup up LDAP_CLIENT_UPDATE code... including some bug fixing.
2002-09-15 21:08:34 +00:00
Jong Hyuk Choi
1509e321de
LCUP Response Control Code
2002-09-14 00:29:06 +00:00
Howard Chu
3e61f0630d
Fix ITS#2082, bdb_idl_intersection
2002-09-13 20:19:56 +00:00
Howard Chu
7e493b87be
Fix debug messages
2002-09-13 20:19:15 +00:00
Howard Chu
a8297e6d22
Fix test of uninit'd rc at LOCK_ID
2002-09-13 12:32:08 +00:00
Howard Chu
1263e40b55
Set BDB's global allocators to ber_*, don't bother with the per-env setting.
2002-09-12 02:47:18 +00:00
Pierangelo Masarati
ae2cd84d16
trim c++ style comments
2002-09-11 17:15:55 +00:00
Howard Chu
7823832770
Fix ITS#2075, NULL moddn->newsup->bv_val
2002-09-11 10:59:41 +00:00
Pierangelo Masarati
8758a30bf2
#undef SLAP_X_FILTER_HASSUBORDINATES while I fix the entry lock problem ...
2002-09-10 10:10:11 +00:00
Howard Chu
35e8b8325d
Unifdef BDB_IDL_MULTI.
2002-09-10 04:20:45 +00:00
Kurt Zeilenga
e6fdfd4cee
only optimize objectClass filters when (objectClass=*) is
...
presented... avoids (&(objectClass=*)(objectClass=foo)) problems.
2002-09-09 23:25:22 +00:00
Howard Chu
9953574b47
Fix: if slapadd was used with an un-ordered LDIF file, we can't rely on
...
entries having ascending entry IDs. Always start from the beginning of
the candidate list. (This should be fine in the general case as well,
since the subtree index will also have refined the candidates.)
2002-09-09 04:24:38 +00:00
Howard Chu
30de884223
More memory cleanup
2002-09-09 00:56:57 +00:00
Howard Chu
a4b30ce455
Plug memleaks from -r1.45
2002-09-09 00:55:52 +00:00
Pierangelo Masarati
b8240724ad
optimize also duplicate/existence check in value delete operations
2002-09-07 16:08:30 +00:00
Howard Chu
b623e4495b
Fix typo in one-level searches, left over from -r1.23 cleanup
2002-09-06 12:37:24 +00:00
Kurt Zeilenga
37d9880495
Some LCUP clean up
2002-09-06 00:29:20 +00:00
Howard Chu
73207c7110
Replace HACK in slap_sasl_canonicalize with safer test.
2002-09-05 11:01:12 +00:00
Kurt Zeilenga
ab80b03057
back_attribute() should use ACL_AUTH not ACL_READ (at
...
least for current callers, may need to pass it the
permission level)
2002-09-05 02:37:10 +00:00
Howard Chu
62ceae250c
ITS#2065 omit libbackends.a when no static backends configured.
...
Also fixed dependencies for dynamic backends and tools.
2002-09-04 10:58:25 +00:00
Jong Hyuk Choi
4b48c05a8e
LDAP Client Update Protocol - non-persistent update (TODO: response control ...)
2002-09-04 02:00:42 +00:00
Pierangelo Masarati
5d50463376
optimize duplicate detection based on mods and existing values count
2002-09-03 15:12:36 +00:00
Kurt Zeilenga
69ba1a21bc
Extend checks to substrings rules. Need to kludge around
...
LDAP's kludged builtin substrings rules.
2002-09-03 07:28:57 +00:00
Kurt Zeilenga
8a5b200c44
Add appropriate matching rule checks.
...
Clean up syntax error reporting.
2002-09-03 07:01:09 +00:00
Howard Chu
3099d89d9e
Don't use sasl_set_alloc on Cyrus 2, it manages all of its memory
...
internally and we don't want to get in the way.
2002-09-02 22:25:26 +00:00
Kurt Zeilenga
3e1a896928
Update comment
2002-09-02 22:07:23 +00:00
Pierangelo Masarati
d3ca441ae8
/*
...
* The original code performs ( n ) normalizations
* and ( n * ( n - 1 ) / 2 ) matches, which hide
* the same number of normalizations. The new code
* performs the same number of normalizations ( n )
* and ( n * ( n - 1 ) / 2 ) mem compares, far less
* expensive than an entire match, if a match is
* equivalent to a normalization and a mem compare ...
*
* This is far more memory expensive than the previous,
* but it can heavily improve performances when big
* chunks of data are added (typical example is a group
* with thousands of DN-syntax members; on my system:
* for members of 5-RDN DNs,
members orig bvmatch (dirty) new
1000 0m38.456s 0m0.553s 0m0.608s
2000 2m33.341s 0m0.851s 0m1.003s
* Moreover, 100 groups with 10000 members each were
* added in 37m27.933s (an analogous LDIF file was
* loaded into Active Directory in 38m28.682s, BTW).
*
* Maybe we could switch to the new algorithm when
* the number of values overcomes a given threshold?
*/
2002-09-02 19:41:03 +00:00
Pierangelo Masarati
eb38db1be5
various fixes and improvements
2002-09-02 19:39:31 +00:00
Pierangelo Masarati
857d08ea21
use bvmatch() instead of ber_bvcmp() when testing for match without ordering
2002-09-02 19:39:06 +00:00
Kurt Zeilenga
132506e13c
Add NOOP search support.
2002-09-02 17:38:17 +00:00
Kurt Zeilenga
af183089b8
unifdef -DSLAP_X_MRA_MATCH_DNATTRS
2002-09-01 00:33:20 +00:00
Kurt Zeilenga
b5f51ed4a5
have get_mra use mr_usable_with_at() as well
2002-08-31 21:39:42 +00:00
Kurt Zeilenga
c6052ac8b0
Add mr_usable_with_at() routine. Use both in generation
...
of rule uses, but also in test_filter_mra()
2002-08-31 21:23:45 +00:00
Kurt Zeilenga
5c61f55faa
Make sure we don't expose hidden attribute types in rule uses
2002-08-31 20:49:50 +00:00
Kurt Zeilenga
e9a71156cc
Add matching rule use support where assertion syntax != value syntax
2002-08-31 20:42:25 +00:00
Kurt Zeilenga
04c71ce9b2
List approximates as well in rule uses.
...
Don't yet list ordering rules yet, these require special attention (and
hence are not marked MR_EXT yet)
2002-08-31 19:25:41 +00:00
Kurt Zeilenga
d6ac7ac544
Fix last commit.
...
Also add uses where mr is the attribute's equality rule.
2002-08-31 19:17:54 +00:00
Kurt Zeilenga
2908cdff11
MR_EXT rules can be used with any type whose syntax is same as
...
the syntax's assertion syntax.
2002-08-31 19:05:36 +00:00
Kurt Zeilenga
6c7104c82b
Don't hide matchingRuleUse's description (now implemented)
...
Use attribute's cname not oid in matching rule uses
2002-08-31 18:41:21 +00:00
Pierangelo Masarati
966dd1bdca
definitely fix NOOP in back-bdb
2002-08-31 17:03:42 +00:00
Pierangelo Masarati
0d5fe062e2
improved support for NOOP; add is fine, the other write funcs still need work
2002-08-31 12:00:39 +00:00
Pierangelo Masarati
a0c54f1625
use ldap_charray_add instead of dedicated helper; get rid of dependency from ldap-int.h
2002-08-31 11:14:15 +00:00
Pierangelo Masarati
71aecea2aa
fix bitwise matching (courtesy of Luke Howard)
2002-08-31 10:56:27 +00:00
Pierangelo Masarati
804a111fbd
add {create,modify}Timestamp to subschema subentry (SHOULD per RFC2251; use server startup time to be conservative)
2002-08-31 10:49:03 +00:00
Pierangelo Masarati
aea52e5bc9
define macros for appropriate sizing of lutil buffers
2002-08-31 10:48:02 +00:00
Pierangelo Masarati
e2ec62f09f
add matchingRuleUse to schema; use a berval instead of _oidlen in syntax and matching rule
2002-08-31 10:45:22 +00:00
Pierangelo Masarati
c76b36254c
cleanup comments
2002-08-31 10:41:49 +00:00
Pierangelo Masarati
c8cfbca64d
fix extendedMatch and approx hfilter andling; get rid of subtree_cond (argh, need to trim it from config and docs ...)
2002-08-31 10:39:23 +00:00
Pierangelo Masarati
a1bb43946b
better handling of children_cond
2002-08-31 10:38:29 +00:00
Pierangelo Masarati
95a99bd522
trace illegal condition in backsql_strfcat
2002-08-31 10:37:42 +00:00
Pierangelo Masarati
685363e880
add 'children_cond' config statement
2002-08-31 10:36:16 +00:00
Pierangelo Masarati
b0dfd89e1b
added referral support to back-{ldap,meta}; need to allow send_serch_reference() handle NULL entry pointer
2002-08-31 10:35:23 +00:00
Pierangelo Masarati
501cd4c611
fix extendedMatch values return filter control
2002-08-31 10:29:03 +00:00
Kurt Zeilenga
b04483a6a2
We don't support substrings matching via extensibleMatch
2002-08-30 19:30:58 +00:00
Howard Chu
70673417f2
Fix debug statement
2002-08-30 14:28:45 +00:00
Howard Chu
c4f74ac639
Fix crash in mra_free, freeing ber-private value.
2002-08-30 12:38:50 +00:00
Howard Chu
0614b5fdbf
Fix unindent commit
2002-08-30 11:48:47 +00:00
Howard Chu
4a3a557827
Use DB_NODUPDATA when adding IDs. Silence log for DB_NOTFOUND in delete_key,
...
let caller log it if they care.
2002-08-30 11:37:43 +00:00
Howard Chu
9d4f5e13e8
Unindented a level. Fixed logging of keys.
2002-08-30 11:21:20 +00:00
Howard Chu
f32803e738
Don't mask DB_KEYEXIST errors in bdb_idl_insert_key, let dn2id see them.
...
Ignore DB_KEYEXIST and DB_NOTFOUND errors in key_change.
2002-08-30 10:41:46 +00:00
Kurt Zeilenga
81420d4f91
Yet another bug fix... this one from Luke.
2002-08-29 19:54:17 +00:00
Pierangelo Masarati
a8bf275221
cleaner handling of unchecked limit support
2002-08-29 19:43:29 +00:00
Kurt Zeilenga
ecfb311f8f
Fix objectSubClassIndexer bug
2002-08-29 18:05:49 +00:00
Pierangelo Masarati
58b860a15e
fix server-size controls handling in back-{ldap,meta}
2002-08-29 15:07:18 +00:00
Pierangelo Masarati
7e2317c842
add server side controls to back-ldap and back-meta
2002-08-29 14:39:31 +00:00
Pierangelo Masarati
e7d2d0a9f5
avoid zero size ch_malloc() when no attributes are present in vrFilter
2002-08-29 13:32:28 +00:00
Pierangelo Masarati
82cb585d32
trim unused var
2002-08-29 12:41:07 +00:00
Pierangelo Masarati
c38f1a63b0
this test is useless, since noop is masked SLAP_CTRL_UPDATE
2002-08-29 12:17:28 +00:00
Howard Chu
20f6bae612
Use sockbuf_max_incoming_auth after successful Bind
2002-08-29 11:53:37 +00:00
Pierangelo Masarati
fbc11bd16a
- added the capability to filter based on hasSubordinate attribute
...
to back-bdb, back-ldbm and back-sql (the latter with limitations);
- added handling of ":dn" attributes to extended rfc2254 filters
and to matched value filter
- altered the behavior of get_mra() when a matching rule is given:
now it checks whether it is compatible with the attribute syntax
and, in case it is, the given mr is used. In case of no type,
the check is delayed when filtering
2002-08-29 10:55:48 +00:00
Pierangelo Masarati
f4c5362955
add bdb_hasSubordinates() helper
2002-08-29 10:50:53 +00:00
Pierangelo Masarati
d855f97372
cleanup
2002-08-29 10:50:12 +00:00
Pierangelo Masarati
a32f8c079a
cleanup hasSubordinate operational attr merge
2002-08-29 10:49:41 +00:00
Pierangelo Masarati
b16ee02a49
optimize subschema attribute merge
2002-08-29 10:49:11 +00:00
Pierangelo Masarati
f1eb3e39ec
use appropriate attr list when matching value of operational attrs
2002-08-29 10:45:48 +00:00
Pierangelo Masarati
24171e1fe2
fix match result bug
2002-08-29 10:45:24 +00:00
Pierangelo Masarati
e53d272b3f
cleanup error check logic; don't deref be->controls when it's NULL
2002-08-29 10:43:39 +00:00
Pierangelo Masarati
9ee916bdec
fix backend initialization (including ITS#2048)
2002-08-29 10:32:48 +00:00
Howard Chu
7cdb6866cf
Two more bervals instead of strings...
2002-08-29 08:47:53 +00:00
Howard Chu
4d36fd5a3e
Fix ITS#1991 - referrals with sarch base == target (wasn't sure at first,
...
but see diff -r1.6 -r1.7 and it's obvious.)
2002-08-29 08:43:23 +00:00
Kurt Zeilenga
923d033c99
Finish adding subclassing indexing support
2002-08-29 02:27:15 +00:00
Kurt Zeilenga
1086ffb438
Round one of subclass indexing for objectClass and structualObjectClasss.
...
add soc_cname to ObjectClass structure
2002-08-29 01:12:59 +00:00
Kurt Zeilenga
bfa89d6e15
Include lber_pvt.h
2002-08-28 16:47:04 +00:00
Howard Chu
9c4f89c6f7
Added no-op sasl_client_auth if SASL_VERSION_MAJOR < 2.
2002-08-28 08:33:24 +00:00
Kurt Zeilenga
aa36f5d049
cleanup
2002-08-28 07:30:57 +00:00
Howard Chu
3cb7a09eb0
Added check for Cyrus SASL sasl_version()
2002-08-28 07:12:22 +00:00
Howard Chu
1602bc3aa1
Fix ITS#2047 - link ldbm.lo directly when building back-ldbm as a module
2002-08-28 02:50:30 +00:00
Kurt Zeilenga
288f0f4f6d
Add another safety check
2002-08-27 17:51:35 +00:00
Howard Chu
9fa8eded08
ITS#2040 - in bdb_idl_fetch_key() use a large enough buffer to get the
...
entire IDL at once, to avoid triggering BDB resource leaks.
2002-08-27 15:11:04 +00:00
Kurt Zeilenga
aa602e0adc
Return other.
2002-08-27 05:51:35 +00:00
Kurt Zeilenga
6ec6115119
Fix bug in last commit
2002-08-27 02:43:00 +00:00
Kurt Zeilenga
433eb54dc7
no structuralObjectClass is not a schema violation, but an
...
internal error. It *should* have been added.
2002-08-27 02:28:15 +00:00
Kurt Zeilenga
11236eae56
Clean up some structuralObject checks to improve readability.
...
Functionality not changed (excepting one error message).
2002-08-27 01:55:09 +00:00
Kurt Zeilenga
00003ac539
Fix comment
2002-08-27 01:35:43 +00:00
Kurt Zeilenga
522ee4a038
Only add LASTMOD attributes if they don't exist in input.
2002-08-27 01:27:42 +00:00
Howard Chu
9f5b28baf3
Remove c_sasl_bindmutex, Binds are already serialized.
2002-08-26 22:20:30 +00:00
Kurt Zeilenga
2c4cfd7c27
remove lint
2002-08-26 20:11:19 +00:00
Kurt Zeilenga
9be4df6b7c
Prevent buffer overflow
2002-08-26 20:10:45 +00:00
Kurt Zeilenga
1c5725010e
Add a Connection pointer to the Operation.
2002-08-26 19:29:34 +00:00
Kurt Zeilenga
fb7ac08ada
cleanup
2002-08-26 19:13:44 +00:00
Kurt Zeilenga
6f8a3919a1
Fix last commit.
2002-08-26 18:07:58 +00:00
Kurt Zeilenga
af4cb85d8b
Prevent unlocking unlocked sasl_bindmutex...
2002-08-26 18:06:55 +00:00
Pierangelo Masarati
d9da0f2bb8
silence annoying warning (BTW: who initializes be?)
2002-08-26 17:37:33 +00:00
Howard Chu
53b194fa32
Fix oc_filter, it could exit early before counting the full depth of the
...
filter tree. Also, only give special treatment to objectclass=*.
2002-08-26 12:04:53 +00:00
Kurt Zeilenga
08059f1633
zap charray
2002-08-25 16:53:20 +00:00
Howard Chu
5ff509f2d3
Fix previous commit, BDB_REUSE_LOCKERS was inside a BDB version #ifdef
...
but is not version-dependent.
2002-08-25 11:06:35 +00:00
Howard Chu
1524f86778
Fix ITS#2044 duplicate search results due to broken bdb_idl_union
2002-08-25 10:18:01 +00:00
Howard Chu
5d9479a3e8
Add debug if bdb_cache_entry_db_lock fails to get a lock
...
to assist in diagnosing ITS#1986
2002-08-24 19:23:30 +00:00
Howard Chu
d6449b1d57
Experimental code that uses one locker ID per thread. Seems to work OK,
...
is enabled by default. #undef BDB_REUSE_LOCKERS in back-bdb.h to disable.
Probably needs to be disabled when built with NO_THREADS.
2002-08-24 08:11:08 +00:00
Howard Chu
925714ceef
Experimental cruft to propagate valid Operation to SASL callbacks.
...
If you have a better way, jupm on in...
2002-08-24 07:34:50 +00:00
Howard Chu
1d7ee4471f
Pass Operation to backend_attribute - should have been doing this all along.
2002-08-24 07:31:14 +00:00
Howard Chu
8c30114d84
Added thread-pool getkey/setkey functions
2002-08-24 05:39:43 +00:00
Kurt Zeilenga
e259c3c938
Zap
2002-08-24 00:55:56 +00:00
Kurt Zeilenga
23efa07a99
use ldap_charray_*() instead of charray_*()
2002-08-24 00:55:24 +00:00
Kurt Zeilenga
c67781d0ea
use ldap_charray_free() instead of slapd's charray_free()
2002-08-24 00:40:25 +00:00
Howard Chu
77783bb4b7
Fix typo in previous commit. (Benign, code was #if'd out anyway.)
2002-08-23 22:29:08 +00:00
Pierangelo Masarati
f11c6b27e7
Final run of changes to back-sql; IBM db2 support has been tested.
...
Now related ITSes need be audited and possibly closed.
Enhancements:
- re-styled code for better readability
- upgraded backend API to reflect recent changes
- LDAP schema is checked when loading SQL/LDAP mapping
- AttributeDescription/ObjectClass pointers used for more efficient
mapping lookup
- bervals used where string length is required often
- atomized write operations by committing at the end of each operation
and defaulting connection closure to rollback
- added LDAP access control to write operations
- fully implemented modrdn (with rdn attrs change, deleteoldrdn,
access check, parent/children check and more)
- added parent access control, children control to delete operation
- added structuralObjectClass operational attribute check and
value return on search
- added hasSubordinate operational attribute on demand
- search limits are appropriately enforced
- function backsql_strcat() has been made more efficient
- concat function has been made configurable by means of a pattern
- added config switches:
- fail_if_no_mapping write operations fail if there is no mapping
- has_ldapinfo_dn_ru overrides autodetect
- concat_pattern a string containing two '?' is used
(note that "?||?" should be more portable
than builtin function "CONCAT(?,?)")
- strcast_func cast of string constants in "SELECT DISTINCT statements (needed by PostgreSQL)
- upper_needs_cast cast the argument of upper when required
(basically when building dn substring queries)
Todo:
- add security checks for SQL statements that can be injected (?)
- re-test with previously supported RDBMs
- replace dn_ru and so with normalized dn (no need for upper() and so
in dn match)
- implement a backsql_normalize() function to replace the upper()
conversion routines
- note that subtree deletion, subtree renaming and so could be easily
implemented (rollback and consistency checks are available :)
- implement "lastmod" and other operational stuff (ldap_entries table ?)
2002-08-23 08:54:08 +00:00
Pierangelo Masarati
7b4b4b34c4
fixed bug in reading size/time limits without style, in the form 'size=number', 'time=number'
2002-08-23 08:50:34 +00:00
Pierangelo Masarati
a038ef68e6
added attr_merge/value_add functions that dela with single attribute; bervals for '*', '+' and '1.1' made available
2002-08-23 08:49:19 +00:00
Pierangelo Masarati
ff4edfa054
added assertions to catch helper function misuse
2002-08-23 08:46:45 +00:00
Howard Chu
b3ddb5734b
Fix indexing bug in splitting indirect blocks
2002-08-23 03:07:33 +00:00
Howard Chu
cd60deb4a9
OS/390 EBCDIC support
2002-08-22 04:39:59 +00:00
Howard Chu
3b9f4a82ee
Added support for BDB 4.1.17
2002-08-22 04:00:06 +00:00
Kurt Zeilenga
3a15afa057
Fix abstract schema check
2002-08-22 02:27:42 +00:00
Pierangelo Masarati
d4bc79864d
fix previous commit
2002-08-21 18:11:30 +00:00
Jong Hyuk Choi
b81122d441
Slapadd is changed to include Operational Attributes (entryUUID, entryCSN,
...
creatorsName, modifiersName, createTimestamp, modifyTimestamp) when it adds
from ldif file. Month field in time format in entryCSN is changed to 1~12.
2002-08-21 00:11:32 +00:00
Kurt Zeilenga
65760c064e
ITS#2004 AD lang bug fix
2002-08-20 19:08:18 +00:00
Howard Chu
505a141c75
Use search callbacks in slap_sasl_checkpass and slap_auxprop_lookup,
...
use ACL_AUTH for acl checks.
2002-08-20 05:32:54 +00:00
Kurt Zeilenga
e1536926b7
Quick check of LOCK_ID() return. Likely should retry... but not forever.
2002-08-20 03:10:08 +00:00
Kurt Zeilenga
9fc4a749dc
More places where LOCK_ID() calls need to be checked.
2002-08-20 02:57:06 +00:00
Kurt Zeilenga
041c3700e1
fix typo in last commit
2002-08-19 07:08:59 +00:00
Kurt Zeilenga
930ecd3930
Normalized form should be pretty.
2002-08-19 07:07:25 +00:00
Howard Chu
e5091f5926
Updated register_syntax, register_matching_rule for more convenient
...
calling from other modules
2002-08-17 01:29:18 +00:00
Kurt Zeilenga
6e02fe2e8a
Remove #if 0 code
2002-08-16 18:58:39 +00:00
Pierangelo Masarati
05348c5fc5
CHANGES:
...
- now all write operations appear to work correctly with PostgeSQL 7.0
- all write operations have been made transactional (atomic writes to
entries are committed separately only in case of complete^1 success
while all other operations are rolled-back by default)
- more cleanup and handling of exceptional conditions
TODO:
- deen to check with different databases and more up to date versions
of both unixODBC and PostgreSQL.
^1: attribute add/modify/delete operations silently succeed if the
appropriate add/delete proc does not exist for each attribute;
this may be correct to hide undesired/unimplemented correspondence
between LDAP and SQL databases; however, a more appropriate
LDAP behavior would be a failure with LDAP_UNAVAILABLE if a
single write operation cannot be executed for such reason
2002-08-16 16:45:24 +00:00
Pierangelo Masarati
b95ab4ac64
add function slap_modrdn2mods that prepares modifications list for delete/add old/new rdn values
2002-08-16 16:35:16 +00:00
Pierangelo Masarati
3a26ef5bbb
silence warnings
2002-08-16 16:33:22 +00:00
Pierangelo Masarati
a7349c100e
fix printableStringValidate return value bug
2002-08-16 16:32:42 +00:00
Pierangelo Masarati
115408986c
changes:
...
- re-style according to the style giudelines for better readability
- updated to recent frontend/backend API changes
- fixed a few quirks about normalization
- "optimized" a few memory allocation/string handling functions
- fixed a few quirks about add/modify (still have to look ad modrdn)
todo:
- there is still something broken (at least with PostgreSQL and IBM db2,
the two RDBMS O have at hand) when adding
- move everything to struct bervals and try to save a few strlen
- try some LDAP/SQL syntax relation to use appropriate value bind if possible
- ...
2002-08-13 17:12:27 +00:00
Pierangelo Masarati
7c2de5721a
VERY PRELIMINARY support for PostgreSQL and IBM db2
2002-08-13 17:07:40 +00:00
Pierangelo Masarati
c4a8a3dce5
better error handling when returning results
2002-08-13 17:00:33 +00:00
Kurt Zeilenga
84fe0ad051
Log successful SASL bind (ITS#2017)
2002-08-13 03:49:21 +00:00
Kurt Zeilenga
a500feb4a6
Patch: lutil_progname() and lutil_strcopy() are not declared (ITS#2021)
...
================
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
================
lutil_progname() and lutil_strcopy() are not declared, which can
be fatal since they do not return int.
Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>, Aug 2002.
2002-08-13 02:33:20 +00:00
Kurt Zeilenga
c5b6a86502
Fix IRIX sc_mask conflict
2002-08-13 02:32:57 +00:00
Kurt Zeilenga
f8f1321760
Add support for response controls
2002-08-12 20:50:20 +00:00
Kurt Zeilenga
1c75a7f25c
Fix inverted bvmatch logic in modrdn
2002-08-12 08:45:20 +00:00
Kurt Zeilenga
d250339576
Add back_bdb to modules
2002-08-11 21:06:03 +00:00
Kurt Zeilenga
f10699865e
consistently reduce string_expand bv_len by 1
2002-08-11 20:26:01 +00:00
Howard Chu
9fad71dc9b
Never use DB_RECOVER flag when opening DB_ENV. Recovery must be done
...
manually. Automatic recovery would interfere with gentlehup restarts.
2002-08-11 00:30:46 +00:00
Pierangelo Masarati
b063a50891
same as for back-meta
2002-08-10 14:25:41 +00:00
Pierangelo Masarati
328046248b
initialize struct timeval (fixes ITS#2014);
...
also, check for return value of dnNormalize2: if the returned
DN contains undefined attributes, the normalization fails.
2002-08-10 14:13:46 +00:00
Howard Chu
07ebdca237
ITS#1893, use "schemadn" to configure subschemasubentry DN. (diff was
...
inaccessible, this is original code, not contributed.)
2002-08-10 03:10:52 +00:00
Pierangelo Masarati
1abb8cb339
rework connection pool handling (reduce amount of malloc)
2002-08-09 17:15:10 +00:00
Pierangelo Masarati
85a74efc71
remove dependency from LDAP_FILT_MAXSIZ (and handle arbitrary size filters)
2002-08-09 13:51:35 +00:00
Howard Chu
f7859e9913
ITS#2015 give correct index key back to presence_candidates
2002-08-08 17:27:50 +00:00
Kurt Zeilenga
e69c9067c2
Fix saslregex init bug
2002-08-07 19:17:22 +00:00
Howard Chu
44ac8a3564
Plug config leaks
2002-08-07 08:43:52 +00:00
Howard Chu
554311a4c8
Fix cargv leak in recursive read_config()
2002-08-07 08:22:43 +00:00
Kurt Zeilenga
4a4323e3b7
Move large string comment to just above UTF8StringValidate().
2002-08-07 08:19:11 +00:00
Howard Chu
50d490be6c
Revert previous commit
2002-08-07 06:37:11 +00:00
Howard Chu
13d13baeda
In backend_operational don't add subschemaSubentry unless it was
...
requested. In send_search_entry don't malloc vrFilter flags unless
a matchedValue filter was given; malloc 1 contiguous block instead
of multiple sub-arrays.
2002-08-07 05:31:03 +00:00
Howard Chu
6862cfd97c
Don't strdup conn->authz into op, just reference directly. (Conn cannot
...
be freed until after all associated ops are freed.)
2002-08-07 05:19:55 +00:00
Kurt Zeilenga
f1047b704e
ITS#2010: use snprintf instead of strcpy to prevent buffer overflow
2002-08-06 19:31:00 +00:00
Kurt Zeilenga
3f2faa1a84
other->invalid
2002-08-06 05:38:49 +00:00
Kurt Zeilenga
a35d5b90fc
For IA5, printable, telephone:
...
Don't allow empty string values.
Treat string values with only spaces as one space.
DirectoryString needs more work (space handling needs
to be done post normalization).
2002-08-06 05:35:59 +00:00
Kurt Zeilenga
6fdcdeb816
Add a summary to strings comment
2002-08-06 04:25:54 +00:00
Kurt Zeilenga
48f72b6862
Update string commment with examples.
2002-08-06 04:03:13 +00:00
Kurt Zeilenga
82540c5cc1
Add start of discussion of strings in LDAP/X.500 and OpenLDAP.
2002-08-06 03:52:02 +00:00
Kurt Zeilenga
3b3232f21c
Fix nameAndOptionalUUID normalization,
...
now uses bitStringNormalize().
2002-08-06 03:18:02 +00:00
Kurt Zeilenga
3fbfd3064a
Remove lint
2002-08-06 03:08:12 +00:00
Howard Chu
e14f471a27
Add #include "lutil.h" for lutil_str* functions
2002-08-06 02:36:34 +00:00
Howard Chu
61731500d0
ITS#1998 UTF8StringNormalize should accept all-space vals
2002-08-06 02:35:24 +00:00
Kurt Zeilenga
428c15d883
Misc clean up of last commit.
...
Still need to fix my devbox so I can test this....
2002-08-05 23:40:08 +00:00
Kurt Zeilenga
119462adfa
Rework saslRegex code (not yet tested)
2002-08-05 23:16:28 +00:00
Kurt Zeilenga
64791571aa
Prevent overflow in .rej creation (ITS#2007)
2002-08-05 19:44:24 +00:00
Kurt Zeilenga
c673b651e8
Set O_EXCL (ITS#2009)
2002-08-05 19:43:01 +00:00
Kurt Zeilenga
d38d19edc1
Fix lutil_str*() warnings
2002-08-05 17:56:13 +00:00
Kurt Zeilenga
526d010635
Patch: add OpenLDAPaci #public# access (ITS#2005)
...
================
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
================
I couldn't find a way for an OpenLDAPaci to grant public access to an
entry, so I added a dnType #public# for that. It is in the position
of subjectDn in the draft, which seems kind of stupid, so I put it
in the position of dnType instead.
Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>, Aug 2002.
2002-08-05 17:53:39 +00:00
Kurt Zeilenga
f8c0481dd4
Patch: ACL #access-id#<invalid-DN> granted access to everyone (ITS#2006)
...
================
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
================
There is a bug in OpenLDAPaci's "access-id": If the specified DN is
invalid so dnNormalize2() fails, everyone gets access.
This means that e.g. "#access-id#[all]" gives public access, so it
might be considered a feature, but I fixed it anyway:-) I guess that
means the change should be documented in the release notes, though.
See also ITS#2005 (add OpenLDAPaci #public# access).
Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>, Aug 2002.
2002-08-05 17:52:16 +00:00
Howard Chu
771f70eb0f
Fix ITS#1994, Windows heap consistency
2002-08-03 02:57:52 +00:00
Pierangelo Masarati
40f3da36b0
need <lutil.h> for lutil_gentime
2002-08-02 10:24:03 +00:00
Pierangelo Masarati
540dbbe1ed
fix previous commit
2002-08-02 10:00:44 +00:00
Kurt Zeilenga
d22612e8db
ITS#1951: saslRegexp limits syntax of regular expressions
...
Don't normalize regex.
Also, s/LDAP_OPERATIONS_ERROR/LDAP_OTHER/
2002-08-01 01:10:55 +00:00
Howard Chu
d01375b200
Fix bdb_idl_union of range and list (related to ITS#1969
2002-07-31 23:43:56 +00:00
Kurt Zeilenga
838643d5ad
operationsError != Internal Error
...
hence, s/LDAP_OPERATIONS_ERROR/LDAP_OTHER/
2002-07-31 22:49:02 +00:00
Kurt Zeilenga
182dcf27e2
clean up curly matching
2002-07-28 07:37:46 +00:00
Kurt Zeilenga
eb581e43e7
Fix for:
...
SASL regex segmentation faults with group based acls (ITS#1978)
based, in part, by patch submitted by Simon Wilkinson <simon@sxw.org.uk>.
2002-07-28 07:27:55 +00:00
Kurt Zeilenga
c054d8458a
Fix pkiUser
2002-07-27 10:25:42 +00:00
Kurt Zeilenga
e53214b26f
ITS#1965: use snprintf
2002-07-27 07:39:50 +00:00
Kurt Zeilenga
1677f178ce
ITS#1985 fix: blind commit
2002-07-27 07:37:04 +00:00
Kurt Zeilenga
2f9b89b4af
Improve schema error messages
2002-07-27 06:08:51 +00:00
Howard Chu
b6620f3d25
Use lutil_gentime
2002-07-27 02:10:43 +00:00
Howard Chu
5a01db28e3
Moved slap_strcopy, slap_strncopy to lutil_strcopy, lutil_strncopy
2002-07-27 00:24:02 +00:00
Kurt Zeilenga
e981dcbad5
use strongAuthRequired instead of operationsError to indicate
...
authentication required before modification.
2002-07-26 15:29:36 +00:00
Howard Chu
d6ae1d95de
Include <sys/stat.h> for mkdir prototype
2002-07-26 13:24:37 +00:00
Pierangelo Masarati
90f127472d
fix normalization bug; change time stamping by using createTimestamp and modifyTimestamp (related to ITS#1984)
2002-07-25 09:49:02 +00:00
Pierangelo Masarati
7e81297147
fix normalization bug (related to ITS#1984)
2002-07-25 09:48:29 +00:00
Kurt Zeilenga
4d22977f7f
BootParamSyntax: be more liberal than the ABNF such that
...
examples in RFC 2307 are treated as valid.
2002-07-24 15:29:22 +00:00
Kurt Zeilenga
3b775fce8b
Should allow keystring in bootParams
2002-07-24 15:19:40 +00:00
Kurt Zeilenga
8a3d02bf6b
misc cleanup
2002-07-23 18:35:12 +00:00
Julius Enarusai
2168be2b4a
Converted LDAP_LOG messages to use new Macro
2002-07-23 00:01:53 +00:00
Pierangelo Masarati
437014723c
fix ITS#1953
2002-07-22 14:24:32 +00:00
Howard Chu
aab953ba3f
Change list->range conversion again, avoid extra c_put.
2002-07-19 23:19:53 +00:00
Jong Hyuk Choi
db490b4cef
change in the IDL conversion from a list to a range
2002-07-18 15:34:51 +00:00
Kurt Zeilenga
202e516450
krbName is now builtin
2002-07-16 02:42:29 +00:00
Howard Chu
e514685144
Tweak: For slap tools, don't set DB_RECOVERY flag when opening DB environment.
...
This allows slapcat to run while slapd is running, otherwise causes db
corruption.
2002-07-13 00:18:15 +00:00
Howard Chu
a073e28510
Fix setting c_authz_backend for SASL binds:
...
in slap_sasl2dn, make sure it's set for base DN searches as well.
in do_bind, don't zero it during multi-stage binds.
2002-07-13 00:11:03 +00:00
Howard Chu
7fdb38bca9
Fix previous commit - the stub was never needed.
2002-07-12 23:43:46 +00:00
Howard Chu
f9cbbc6770
Fix order of params to sasl_setpass. Added initial stub for setpass to
...
change in-directory password.
2002-07-12 20:55:12 +00:00
Stig Venaas
bf5e3a15ca
Use AF_INET instead of AF_UNSPEC when IPv6 disabled
2002-07-12 15:36:33 +00:00
Julius Enarusai
6107ba67d2
Coverted LDAP_LOG macro to use subsystem ID int values instead of string values
2002-07-11 20:33:24 +00:00
Kurt Zeilenga
ef3d895cb8
More ACL to dn="" bug fixing... and add test006-acl check
2002-07-11 01:45:22 +00:00
Kurt Zeilenga
98a2e41911
Fix ACL to dn="" bug
2002-07-11 01:35:37 +00:00
Kurt Zeilenga
32a2f291ee
Change dn="" to dn.base="".
2002-07-11 01:17:41 +00:00
Kurt Zeilenga
0fffad53c3
get data if ready
2002-07-10 22:03:32 +00:00
Kurt Zeilenga
fffd84ff9f
Fix matched values zero allocation bug (ITS#1931)
2002-07-09 00:20:30 +00:00
Kurt Zeilenga
4f48237d22
remove lint
2002-07-08 18:55:50 +00:00
Kurt Zeilenga
e6627e93d0
Add matchedValues
2002-07-08 18:54:52 +00:00
Stig Venaas
deb62446fe
Added normalization to caseIgnoreIA5Indexer()
2002-07-07 13:22:45 +00:00
Stig Venaas
62139b6ef3
Set peeraddr also for IPv6, fixes ITS#1918
2002-07-05 20:29:15 +00:00
Stig Venaas
804490a8b1
Use IPV6_V6ONLY on IPv6 sockets if available. This way we only get IPv6
...
packets on the IPv6 socket, and we receive only IPv6 with -6.
2002-06-27 13:20:37 +00:00
Stig Venaas
6d025001da
Ignore error if listen on socket bound to 0.0.0.0 fails and already
...
listening on socket bound to ::
2002-06-27 12:41:09 +00:00
Kurt Zeilenga
f708b4e94e
Add krbName's definition (ITS#1913)
2002-06-26 18:43:55 +00:00
Kurt Zeilenga
0a2a381d07
Fix for "no structuralObjectClass" when lastmod is off (ITS#1904)
2002-06-25 01:04:54 +00:00
Kurt Zeilenga
3d90fcda3a
authcId might be NULL
2002-06-22 21:27:38 +00:00
Howard Chu
7e8c77c5de
Fix dynamic module linking
2002-06-21 01:34:53 +00:00
Kurt Zeilenga
54d5d65791
Yet another schema error bug fix
2002-06-20 20:48:19 +00:00
Kurt Zeilenga
a5f29741a6
Fix off by one error in erorr reporting
2002-06-20 20:46:16 +00:00
Kurt Zeilenga
03a4901b5f
assert( e != NULL ) in entry2str()
2002-06-19 22:04:28 +00:00
Pierangelo Masarati
93dbac3caf
use monitorContext for the monitor database
2002-06-19 07:57:01 +00:00
Kurt Zeilenga
0371c61073
Add monitorContext rootDSE attribute
2002-06-19 06:44:16 +00:00
Kurt Zeilenga
dec67d1ad9
Hide cn=Monitor from namingContexts
...
Should add a special DN pointer
2002-06-19 06:06:21 +00:00
Kurt Zeilenga
35749a2520
make curlies match
2002-06-18 22:41:03 +00:00
Kurt Zeilenga
ba4faad6e5
Use correct ssfs.
2002-06-18 07:31:20 +00:00
Howard Chu
cf61e03cb8
ITS#1891, debug msg in send_search_entry
2002-06-18 00:37:45 +00:00
Kurt Zeilenga
9a38d98d37
Add option to disallow unprotected simple authentication.
...
Add protected simple authentication as a "strong" mechanism.
2002-06-17 22:18:27 +00:00
Kurt Zeilenga
27fdd04153
Add -4/-6 flags to slapd to force use of IPv4 or IPv6
2002-06-15 22:01:39 +00:00
Pierangelo Masarati
bf449f33bd
small cleanup
2002-06-15 18:20:41 +00:00
Pierangelo Masarati
d75249abfe
define and normalize static bervals alltogether
2002-06-15 17:01:35 +00:00
Pierangelo Masarati
b9254b8ab4
should compile even without Cyrus SASL
2002-06-15 15:01:17 +00:00
Kurt Zeilenga
cbba11d7cd
saslAuthzTo/From LDUP URLs should have hostnames
2002-06-14 22:03:52 +00:00
Kurt Zeilenga
04df89d972
zap unnecessary include
2002-06-14 09:10:02 +00:00
Kurt Zeilenga
3b695bc6c8
Use experimental OIDs for saslAuth attributes and hide 'em
...
make the usage distributedOperation
2002-06-14 08:25:14 +00:00
Howard Chu
077aea8127
Fix OID clash in previous commit
2002-06-14 08:16:06 +00:00
Howard Chu
07a34489c6
Added saslAuthzTo and saslAuthzFrom to system schema.
...
Added sasl-authz-policy config keyword to control proxy authorization.
Moved sasl-related config processing to sasl.c:slap_sasl_config().
Moved other global defs used only in saslauthz.c into saslauthz.c.
2002-06-14 08:10:14 +00:00
Kurt Zeilenga
ad673923a3
ITS#1882: fix typo
2002-06-13 14:50:33 +00:00
Kurt Zeilenga
b5e7208cb8
Date: Thu, 2 May 2002 08:54:59 GMT
...
From: h.b.furuseth@usit.uio.no
To: openldap-its@OpenLDAP.org
Subject: Patch: Bugs with back-ldap/meta mappings
Full_Name: Hallvard B. Furuseth
Version: HEAD
OS: Linux
URL: http://folk.uio.no/hbf/OpenLDAP/back-ldap.txt
Submission from: (NULL) (158.36.148.34)
The source claims the 'map' attribute has syntax
map {objectclass | attribute} {<source> | *} [<dest> | *]
while it actually has syntax
map {objectclass | attribute} [<local name> | *] {<foreign name> |
*}
except that the code is confused about it. Removed attributes are
put in both the maps for local and foreign names:
# Remove description and present title as description instead
map attribute description
map attribute description title
-->
slapd.conf: line 10: duplicate mapping found (ignored)
Also, map.c:ldap_back_map_attrs() loops forever on removed attributes
(ie. if one asks ldapsearch for an attribute which has been removed).
2002-06-12 16:39:05 +00:00
Kurt Zeilenga
faf91f1f1f
Update to the 'gentle SIGHUP' patch. (ITS#1679)
...
- Let write operations return unwilling-to-perform after
'gentle shutdown' has been initiated.
- Change -1 to 2 in slapd_gentle_shutdown and slapd_shutdown, since
sig_atomic_t can be unsigned (ITS#1736). The 'gentle SIGHUP' patch
is older than ITS#1736 but was applied later, so it reintroduced
the problem.
Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>, June 2002.
2002-06-12 15:43:19 +00:00
Howard Chu
c5c1ddb1ca
Deleted Connection->c_cdn. Use conn->c_dn instead...
2002-06-12 08:38:59 +00:00
Howard Chu
a5cd5535e8
Fix typo in previous commit
2002-06-12 04:12:51 +00:00
Howard Chu
6d1a322f73
Finished slap_sasl_setpass for Cyrus 1.5; Cyrus 2.1 is incomplete.
...
Added conn->c_sasl_dn, streamlined slap_sasl_bind.
2002-06-12 04:05:48 +00:00
Kurt Zeilenga
1410b3e7d9
An almost complete slap_sasl_setpass()
2002-06-12 00:13:29 +00:00
Kurt Zeilenga
d6e7f0f630
Rework c_authzid_backend in preparation for sasl_setpass() support
2002-06-11 22:56:47 +00:00
Kurt Zeilenga
4d3b4f9eb8
return PROTOCOL_ERROR if reqdata is empty.
2002-06-10 19:56:17 +00:00
Jong Hyuk Choi
09a2a8fbce
DB_RMW flag to dn2id and id2entry
2002-06-10 19:02:25 +00:00
Kurt Zeilenga
116e165a5c
Be less forgiving (don't ignore so many configuration errors)
2002-06-08 18:38:52 +00:00
Kurt Zeilenga
a784e4d054
Add rootdn check when rootpw is set.
2002-06-08 18:04:43 +00:00
Kurt Zeilenga
aa46324462
Fix for ITS#1842 (applied blindly)
2002-06-08 06:09:30 +00:00
Kurt Zeilenga
964d1fdd90
userPassword/authPassword can be safely subtyped (though I wouldn't
...
recommend it).
2002-06-07 20:32:06 +00:00
Howard Chu
3304d125c4
ITS#1837, one-level searches on leaf entries
2002-06-06 11:27:52 +00:00
Howard Chu
b89c4539b9
Fix Listeners: handles multiple addresses for a given hostname, copies
...
sockaddr into Listener structure.
2002-06-06 10:33:18 +00:00
Jong Hyuk Choi
976fb2265f
remove dbenv->lock_put() call from transaction-protected operations
2002-06-06 10:14:14 +00:00
Kurt Zeilenga
e958a4c780
Fix up abandon merge. Hallvard will holler if I get this wrong. :-)
2002-06-05 16:53:48 +00:00
Kurt Zeilenga
951ca2bd68
Patch: Non-unique msgid for abandon in back-<shell,tcl> (ITS#1793)
...
================
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
================
It has just occurred to me - duh - that the process ID of a back-shell
command is a perfectly good unique ID for it, and more useful than
any connection id/message id thingy. Doesn't need extra arguments
to the shell commands either, except a pid: line to abandon.
And msgid: can still be removed in a future version.
Here is a patch.
Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>, May 2002.
2002-06-05 16:40:16 +00:00
Kurt Zeilenga
19eca33ca3
Gentile HUP shutdown from Hallvard
2002-06-03 16:47:43 +00:00
Kurt Zeilenga
5c5b5455fb
VLV updates
2002-06-03 16:45:09 +00:00
Kurt Zeilenga
26649fb164
Minor cleanup
2002-06-01 20:21:59 +00:00
Kurt Zeilenga
d6d18049dc
reference scope checks
2002-06-01 20:01:32 +00:00
Jong Hyuk Choi
7341dc5db6
redesign of back-bdb locking :
...
cache entry is locked by Berkeley DB lock primitives.
2002-05-31 20:49:19 +00:00
Kurt Zeilenga
55e925abe6
Add abstract/final system attribute types.
...
clean up error code macros
2002-05-31 20:24:26 +00:00
Kurt Zeilenga
4832cc09d3
Fix bogus assert.
2002-05-31 20:23:33 +00:00
Kurt Zeilenga
bdad40c696
Disallow addition of system schema via config files.
2002-05-30 05:23:37 +00:00
Kurt Zeilenga
aecf4033f6
Hide some yet-to-be-implemented schema
2002-05-29 06:14:55 +00:00
Kurt Zeilenga
02fb60d3da
Delete extranous assert()
2002-05-23 03:17:58 +00:00
Kurt Zeilenga
9cdce9c0ed
Add back-passwd.h to the mix
2002-05-22 16:22:24 +00:00
Howard Chu
8572d6f2fd
Delete $(SLAPD_MODULES)
2002-05-18 03:52:46 +00:00
Howard Chu
561400dbe8
Delete $(SLAPD_MODULES) - we never implicitly link a dynamic module,
...
so this feature is unnecessary. Also it was breaking Unix dynamic builds.
2002-05-18 02:05:17 +00:00
Kurt Zeilenga
3abec7d8d7
From: h.b.furuseth@usit.uio.no
...
Patch: str2entry() dereferences NULL (ITS#1822)
Sorry, last patch was wrong. I didn't notice that e->e_dn
always is NULL at that point. Here is a corrected patch.
2002-05-16 15:45:24 +00:00
Howard Chu
4ac8a54b56
Builds on both Unix and NT now.
2002-05-16 11:00:37 +00:00
Howard Chu
3d491808a8
Fixes for MingW: (passes test007, with LDAP_DIRSEP tweaks in slapd.conf)
...
must include <ac/stdlib.h> to get MAX_PATH defined.
use LDAP_DIRSEP instead of '/' in paths
define truncate/ftruncate macros, etc.
2002-05-16 10:51:45 +00:00
Kurt Zeilenga
54d93cc003
From: h.b.furuseth@usit.uio.no
...
Subject: Patch: str2entry() dereferences NULL (ITS#1822)
entry.c:str2entry() prints pdn->bv_val even though pdn is always
NULL. pdn was pretty dn before version 1.80.
2002-05-15 20:55:43 +00:00
Kurt Zeilenga
4e51bba217
Patch: Implement surrogate parent for back-shell (ITS#1815)
...
================
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
================
A surrogate parent is supposed to keep back-shell children from
deadlocking due to resources locked by a threading parent.
Implementation note: The surrogate parent closes all unused file
descriptors, so it logs errors to stderr instead of via Debug() and
uses relloc() instead of ch_realloc().
Also close a file descriptor leak if fork() fails in fork.c.
Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>, May 2002.
2002-05-15 06:18:14 +00:00
Kurt Zeilenga
36d9d9729c
Fix typo in last commit.
2002-05-15 05:44:46 +00:00
Kurt Zeilenga
10a3a1b9c9
Patch: back-shell/searchexample.* nitpicks (ITS#1816)
...
================
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
================
searchexample.conf needs core.schema, otherwise it fails on the suffix
DN. searchexample.sh has a spurious 'sleep', probably from testing.
Also, I suggest 'chmod +x searchexample.sh'.
Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>, May 2002.
2002-05-15 05:17:08 +00:00
Howard Chu
d2ee3d52a3
Once more, fix idl_intersection. Don't walk past end of arrays.
2002-05-15 03:05:05 +00:00
Howard Chu
a2d310f92e
Fix nameUIDvalidate memfree
2002-05-15 00:48:47 +00:00
Howard Chu
856e21296a
Cleanup log msg
2002-05-12 19:21:12 +00:00
Howard Chu
2d94a2016c
Check for NULL before comparing authcid
2002-05-12 18:42:43 +00:00
Howard Chu
d7060d19f3
Skip processing if canonicalization is invoked redundantly (SASL PLAIN).
...
Truncate large username instead of failing with SASL_BUFOVER; we only care
about the DN anyway. (SASL 2 only)
2002-05-12 18:40:37 +00:00
Howard Chu
aea521bec2
Fix, SASL authzIDs might not be NUL-terminated. prop names must only be
...
set once; setting erases all existing values.
2002-05-11 20:19:55 +00:00
Howard Chu
da7a5a8e79
Fix typo in 1.97
2002-05-11 19:24:04 +00:00
Howard Chu
dfae2441eb
Cleaned up getdn normalization
2002-05-11 08:07:18 +00:00
Howard Chu
379f84ba47
Fix previous commit, free in wrong place
2002-05-11 06:58:13 +00:00
Howard Chu
b057507e23
Cleanup HAVE_TLS dependencies, cleanup username with embedded realm handling
2002-05-10 19:26:35 +00:00
Kurt Zeilenga
445b7982d7
Patch: back-passwd needs pwent mutex (ITS#1794)
...
================
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
================
back-passwd uses getpwent() and setpwfile(), which use static data.
It needs a mutex to make sure these operations can complete without
interference from another back-passwd call. Here is a patch.
Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>, May 2002.
2002-05-09 02:26:05 +00:00
Kurt Zeilenga
15e6a98bba
Patch: Non-unique msgid for abandon in back-<shell,tcl> (ITS#1793)
...
================
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
================
Here is a patch which does what I described. Of course, someone has
to decide if that is the right solution:-)
- Add an "opid:" line to the input to back-shell commands.
- Add an "abandonid: <opid> line to back-shell/abandon input.
- Replace message id with opid in back-tcl arguments.
- Add an abandonid = <opid> argument to back-tcl/abandon.
An opid (operation ID) is a "connection ID/message ID" string. I
would have liked to use another name to avoid confusion with struct
slap_op->o_opid, but I could not think of another apt word.
This also fixes ITS#1784 and ITS#1792. Since calling conventions
changed anyway, I fixed back-shell by adding abandonid: and making
opid: always be the ID of the current operation.
Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>, May 2002.
2002-05-09 02:11:39 +00:00
Howard Chu
da36670ea3
Don't use slap_empty_bv in structures that are expected to be free'able.
2002-05-08 23:16:17 +00:00
Howard Chu
9ba9ac4d9e
Fix dnParent: must always return a pointer relative to the input pointer.
2002-05-08 23:04:11 +00:00
Howard Chu
fbe4785c5a
Delete unused CANON_BUF_SIZE #define
2002-05-07 23:29:19 +00:00
Howard Chu
6f47e13147
Cyrus 2 support now requires Cyrus 2.1.3. Adds support for in-directory
...
SASL secrets. (Only works with plaintext userpassword tho.)
2002-05-07 23:08:23 +00:00
Howard Chu
3831d98237
Turn these functions on again. Need backend_attribute for SASLauthz stuff.
...
Fix to work with NULL op.
2002-05-07 22:35:01 +00:00
Howard Chu
a067d64c3a
Fixes for slap_sasl_regexp parsing and normalization
2002-05-07 18:46:32 +00:00
Howard Chu
56f1355968
Added comment for future reference re: in-directory secrets
2002-05-07 02:17:34 +00:00
Howard Chu
a039bd97ea
ITS#1803, bogus free() of lber-private memory.
2002-05-06 16:51:00 +00:00
Pierangelo Masarati
bffa43e743
fix formats
2002-05-04 11:07:28 +00:00
Pierangelo Masarati
b0d1a52975
remove unused variables
2002-05-04 11:07:04 +00:00
Howard Chu
55cefef7ee
ITS#1797 err used unit'd in Debug statement. (removed)
2002-05-04 10:50:24 +00:00
Howard Chu
ef678b179c
ITS#1795 authid is uninit'd if tls_get_cert fails
2002-05-04 01:28:56 +00:00
Howard Chu
846a5832bb
Set tls_opt_require_cert to default to NEVER. libldap defaults to DEMAND
...
due to client needs, we change it back here.
2002-05-04 00:07:12 +00:00
Kurt Zeilenga
9d39e1e672
fix uninitialized counter in matched values
2002-05-03 19:00:52 +00:00
Howard Chu
a352bcaa16
Fix DN freeing in BDB_HIER case. (BDB_HIER is still broken, seems to have
...
a bad interaction with the entry cache.)
2002-05-03 14:47:29 +00:00
Howard Chu
203c410243
Fix dependency typo from 1.99
2002-05-03 14:42:14 +00:00
Howard Chu
640bc864fa
Use specific msg id instead of ANY to retrieve search results
2002-05-03 14:23:55 +00:00
Pierangelo Masarati
033631f30a
s/LDAP_UNWILLING_TO_PERFORM/LDAP_ADMINLIMIT_EXCEEDED/ when search candidates exceed unckecked limit
2002-05-03 10:27:37 +00:00
Kurt Zeilenga
8c152396b9
Matched Values implementation (ITS#1776) based upon submission
...
form Mikhail Sahalaev <M.Sahalayev@pgr.salford.ac.uk>.
Further work needed:
add testxxx-matchedvalues
rework ldapsearch(1) portion of patch to generalize use of options
---
Copyright 2001, Mikhail Sahalaev, All rights reserved.
This software is not subject to any license of University Of
Salford.
Redistribution and use in source and binary forms are permitted
without restriction or fee of any kind as long as this notice
is preserved.
2002-05-02 18:56:56 +00:00
Pierangelo Masarati
b9d74aba5f
broken berval after successful rewrite
2002-05-02 11:42:11 +00:00
Pierangelo Masarati
2ca323d2b5
Fixes ITS#1786: dynamically growing number of tokens in config line
...
for both slapd and slurpd
Copyright 2002, John Morrissey (jwm at horde dot net), All rights reserved.
This is free software; you can redistribute and use it under the same terms
as OpenLDAP itself.
Applied with changes
2002-05-02 08:48:14 +00:00
Howard Chu
b3d0ab87aa
More cleanups for suffixmassage DNs
2002-05-01 19:05:09 +00:00
Howard Chu
7fae7fe155
Changed be_[n]suffix, be_[n]suffixAlias to BerVarray. No more bvec's anywhere.
2002-05-01 18:50:14 +00:00
Kurt Zeilenga
5b06af70bb
Patch: Perl backend sends bind result twice (ITS#1783)
...
================
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
================
perl_back_bind() should not send LDAP_SUCCESS, the frontend does that.
Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>, April 2002.
2002-05-01 18:10:14 +00:00
Pierangelo Masarati
c030dbfefd
massage dn-valued attributes also when compiled without --enable-rewrite
2002-05-01 17:53:32 +00:00
Pierangelo Masarati
c1edf76e20
use BerVarray for suffix_massaging stuff
2002-05-01 17:45:03 +00:00
Pierangelo Masarati
1aa96af216
second round at ITS#1749
2002-05-01 16:38:30 +00:00
Pierangelo Masarati
6feec86e5d
- trim check for real naming context already defined as suffix
...
- improve automatic massaging (prettify once)
- add (optimistic) automatic filter massaging
- cleanup of massaging stuff
2002-05-01 11:41:57 +00:00
Howard Chu
48fb754cc0
Added RFC 2459 PKCS9 emailAddress
2002-05-01 06:34:49 +00:00
Kurt Zeilenga
af02eee0d5
Reworking backend_check_restrictions for extensions
...
Should resolve ITS#1781.
2002-05-01 01:04:57 +00:00
Howard Chu
0f966d2fdb
Changed ldap_pvt_tls_get_my_dn and ldap_pvt_tls_get_peer_dn to store result
...
in dn parameter and return a result code.
Changed dnX509peerNormalize as above. Added debug message on failure to
retrieve client DN.
2002-04-30 13:52:49 +00:00
Pierangelo Masarati
d019bff7b8
First commit of Hallvard's backend documentation effort
...
Backend documentation patch, version 1
================
Most of this text is taken from OpenLDAP. The work of rewriting it
to manual pages is done by by Hallvard B. Furuseth and placed into
the public domain. This software is not subject to any license of
the University of Oslo.
================
Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>, April 2002.
2002-04-29 20:24:29 +00:00
Pierangelo Masarati
6b8828ed28
handle trivial cases
2002-04-29 19:14:42 +00:00
Jong Hyuk Choi
5291b41336
pointer initialization
2002-04-29 16:42:41 +00:00
Pierangelo Masarati
d3058532c9
honor limits if below soft limit
2002-04-29 10:12:50 +00:00
Howard Chu
cef9fcf78b
Fix check for "anonymous" in sasl_getdn
2002-04-27 03:44:23 +00:00
Julius Enarusai
ed8f299245
ITS#1730: Misc typos in NEW_LOGGING code from Hallvard
2002-04-25 22:12:44 +00:00
Pierangelo Masarati
d2ee0b1758
fix off-by-one bug; use s/sprintf/snprintf/
2002-04-25 19:23:37 +00:00
Howard Chu
43167d0fa6
Fix ITS#1774, BDB keys need ulen and flags to be initialized because BDB
...
tries to retrieve both the key and the data.
2002-04-25 05:16:15 +00:00
Howard Chu
c7262c7599
Added rebind-as-user option; saves bind credentials and sets a rebind_proc
...
to allow chasing referrals using the same user's credentials.
2002-04-25 02:05:34 +00:00
Kurt Zeilenga
3e3911247b
Remove lint.
2002-04-22 23:03:33 +00:00
Kurt Zeilenga
0ca5d06f77
Re: PRIVATE: Patch: Passwords (ITS#1740)
...
================
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
2002-04-22 17:31:16 +00:00
Jong Hyuk Choi
60b1ee1ba9
Patch for ITS# 1643
2002-04-19 21:41:32 +00:00
Howard Chu
8c917b8d68
Put dnX509 normalizers behind #ifdef HAVE_TLS
2002-04-19 01:25:15 +00:00
Kurt Zeilenga
96eda541e9
Blind commit:
...
Re: Untested patch: back-tcl used wrong types (ITS#1719)
================
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
================
> I turned it into an automatic variable.
...and used a variable-length array. That's a gcc extension, it is not
in ANSI C89. (It is in C99 though.) You seem to be compiling without
-pedantic:-) Anyway, here is a patch to turn it back into ch_malloc(),
plus some README fixes
2002-04-18 19:28:26 +00:00
Howard Chu
0aa7c83a0e
Fix memory leak in previous commit
2002-04-18 15:55:05 +00:00
Howard Chu
8a5423ea8d
deleted sasl_external_x509dn_convert; X509 DNs are always converted to
...
normalized LDAP DNs now.
Changed dnDCEnormalize to dnX509normalize, added dnX509peerNormalize,
based on new ldap_X509dn2bv() etc.
2002-04-18 12:26:36 +00:00
Howard Chu
80f67ef11e
Fix slap_bv2ad initializing with wrong bv_len
2002-04-18 12:21:33 +00:00
Howard Chu
b3c7c9e3ce
Delete more unused code, no need to fetch REALM in slap_sasl_bind
2002-04-17 19:47:34 +00:00
Kurt Zeilenga
7ee5d2612b
Fix ssf declaration
2002-04-17 17:56:30 +00:00
Kurt Zeilenga
84f4acf124
NEW_LOGGING bugs (ITS#1730)
...
Here a patch for another: A spurious `"' in back-ldbm.
From Hallvard.
2002-04-17 17:54:52 +00:00
Howard Chu
1dea5905c6
More SASL DN simplification. No more "dn:" prefix used anywhere internally.
2002-04-17 07:56:46 +00:00
Julius Enarusai
98f3c3d43b
Added LDAP_LOG Messages
2002-04-16 20:11:09 +00:00
Julius Enarusai
4ab3ce1651
Added LDAP_LOG Messages
2002-04-16 19:23:49 +00:00
Jong Hyuk Choi
b7f0983efa
Hallvard B. Furuseth's patch for cache lock and mutex
2002-04-16 14:03:13 +00:00
Howard Chu
1bbd51da77
ITS#1712, rewritten dn_openssl2ldap(). Added dnDCEnormalize(), used by
...
dn_openssl2ldap() and sasl_external_x509dn_convert. Fixed realm handling
for foreign Kerberos realms embedded in usernames.
2002-04-16 08:46:25 +00:00
Luke Howard
03679b7ce5
correct sponsor name
2002-04-16 05:36:22 +00:00
Howard Chu
ababc07479
Add "nentries" to send_search_result() Statslog message. Suggested
...
by ITS#1360.
2002-04-16 04:58:41 +00:00
Luke Howard
dda2e4cee0
ITS#1646
2002-04-16 04:25:44 +00:00
Luke Howard
064319ae4e
ITS#1659 - forgot to define n_a
2002-04-16 04:04:40 +00:00
Luke Howard
c517c23853
ITS#1659: s/na/n_a/
2002-04-16 03:59:22 +00:00
Luke Howard
a045fc60a5
ITS#1729, #1659
2002-04-16 03:58:21 +00:00
Luke Howard
d2585491a0
ITS#1729
2002-04-16 03:56:23 +00:00
Luke Howard
9db008f08f
ITS#1676
2002-04-16 03:51:51 +00:00
Luke Howard
7127e0887c
ITS#1659
2002-04-16 03:47:39 +00:00
Kurt Zeilenga
8354160f8b
Patch: aclparse.c bugs (ITS#1752)
...
================
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
================
Bug fixes:
- acl_regex_normalized_dn(pattern):
* used pattern->bv_len even though it claimed not to,
* would walk past the end of strings that ended (incorrectly)
with a single '\'.
- style=regex checked for "^.*$$" twice but not for "^.*$".
- the code did not notice if dnNormalize2() failed, and would
(at least in one case) treat a bad DN as '*'.
Some cleanup:
- changed regtest() to return void, since the return value was unused.
- changed acl_regex_normalized_dn() to take a string input argument
instead of a half-filled berval, it looks saner that way.
Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>, April 2002.
2002-04-15 20:44:05 +00:00
Kurt Zeilenga
709ce4fa6c
Re: Patch: ctype functions require 'unsigned char' args (ITS#1678)
...
================
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
================
Here are fixes for more places where the argument to ctype.h functions
should be in the range of `unsigned char'.
Explanation of the last patch (to schema_init.c:bvcasechr()):
TOLOWER() and TOUPPER() return values in the range of `unsigned char',
but bvcasechr() then compares those values with a plain `char'. So I
convert the return values from TOLOWER()/TOUPPER() to `char' first.
Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>, April 2002.
2002-04-15 20:42:42 +00:00
Julius Enarusai
15fffedad7
Added LDAP_LOG Messages
2002-04-15 20:40:15 +00:00
Julius Enarusai
a1b4f71443
Added LDAP_LOG Messages
2002-04-15 20:28:16 +00:00
Julius Enarusai
7d162b6806
Added LDAP_LOG Messages
2002-04-15 20:18:47 +00:00
Julius Enarusai
714ec82ca0
Added LDAP_LOG Messages
2002-04-15 20:05:06 +00:00
Julius Enarusai
92d24de6e0
Added LDAP_LOG Messages
2002-04-15 19:37:49 +00:00
Julius Enarusai
ef4fe3fc4b
Added LDAP_LOG Messages
2002-04-15 19:16:32 +00:00
Julius Enarusai
34ef718be8
Added LDAP_LOG Messages
2002-04-15 18:59:20 +00:00
Kurt Zeilenga
02e8527248
Patch: Escape character troubles (ITS#1753)
...
================
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
================
maildap could address buf[-1] if len was < 2.
REWRITE_SUBMATCH_ESCAPE is '%', not '\'.
librewrite and saslautz could walk past the end of a string which
ended with an escape character.
Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>, April 2002.
2002-04-15 18:29:39 +00:00
Julius Enarusai
c7d183a19b
Added LDAP_LOG messages
2002-04-15 17:57:44 +00:00
Pierangelo Masarati
a9b521cef4
add '-t' switch for clean config check; cleanup usage() messages
2002-04-15 17:32:08 +00:00
Kurt Zeilenga
ab3b125d1e
Fix include order
2002-04-15 16:45:02 +00:00
Jong Hyuk Choi
efa7b93b23
concurrent cache access: separation of cache lock (reader/writer) and lru lock (mutex)
2002-04-15 16:40:04 +00:00
Howard Chu
66602e8faa
Fix name canonicalization and authorization for Cyrus SASL 2.x
2002-04-14 04:27:46 +00:00
Howard Chu
a73ffbe3cd
Previous commit included undesired changes.
2002-04-14 04:15:17 +00:00
Howard Chu
9b958147f8
Fix previous commit, == instead of !=
2002-04-13 17:27:02 +00:00
Howard Chu
bf6fccd7bb
ITS#1740
2002-04-13 10:56:16 +00:00
Jong Hyuk Choi
737aee17b0
fix: changing bdb_cache_return_entry_w() to bdb_cache_return_entry_r()
2002-04-11 23:17:36 +00:00
Howard Chu
17433a8412
Fix ITS#1722 - IPv4 addresses also need to be massaged for sasl_server_new.
2002-04-11 10:04:29 +00:00
Howard Chu
1dcbb23f5b
ITS#1727 return allids on unknown filters to allow extended filtering
2002-04-11 08:59:30 +00:00
Howard Chu
170de200f8
ITS#1734 return error on bad config file
2002-04-11 08:51:35 +00:00
Howard Chu
d4465e376f
ITS#1732 signed/unsigned integers
2002-04-11 08:46:34 +00:00
Howard Chu
98df4006b1
ITS#1733 eliminate o_abandonmutex
2002-04-11 08:08:42 +00:00
Howard Chu
efecf4e121
ITS#1733 eliminate o_abandonmutex
2002-04-11 08:03:40 +00:00
Howard Chu
0825e12b42
ITS#1570 - avoid overflowing array when dups are present in IDLs
2002-04-11 08:01:56 +00:00
Howard Chu
5c4a924f81
ITS#1735 unused conn.c_uthc_backend, include ldap_pvt.h
2002-04-11 07:42:57 +00:00
Howard Chu
98e3499b05
ITS#1736 slapd_shutdown can be unsigned
2002-04-11 07:28:30 +00:00
Howard Chu
14026284d0
ITS#1613, call ldap_pvt_tls_init after config file is read. ldap.conf doesn't
...
get read until much later, too late for TLS_RANDFILE to be useful.
2002-04-11 07:04:12 +00:00
Julius Enarusai
1649a3f832
Added/Updated LDAP_LOG messages
2002-04-10 22:17:09 +00:00
Julius Enarusai
0922553da2
Added/Updated LDAP_LOG messages
2002-04-10 22:10:22 +00:00
Kurt Zeilenga
63c9dd8280
SLAP_OP_LAST dependent code needs to be behind SLAP_MONITOR
2002-04-09 23:54:45 +00:00
Howard Chu
f516e34918
ITS#1681 - detect bad filter in slap_parseURI() - from Hallvard Furuseth
2002-04-09 10:41:15 +00:00
Pierangelo Masarati
c22f10f4ca
don't count operations per request if back-monitor is not built
2002-04-08 19:13:13 +00:00
Pierangelo Masarati
b772987712
... and log initiated/completed operations divided per request
2002-04-08 18:41:47 +00:00
Pierangelo Masarati
51e33154b3
count initiated/completed operations divided per request
2002-04-08 18:41:15 +00:00
Pierangelo Masarati
4a2b9b2195
ITS#1730
2002-04-08 18:39:23 +00:00
Pierangelo Masarati
4b9fa66188
use BVC() macro (changed in BER_BVC) to initialize constant bervals
2002-04-08 18:37:37 +00:00
Pierangelo Masarati
4ca97f4118
uniform temporary buf sizes; use automatic buffers instead of heap
2002-04-08 11:09:34 +00:00
Pierangelo Masarati
4a8ab5dbf2
Mostly based on patches provided by Hallvard B. Furuseth
...
ITS#1677 - cast away const warnings
ITS#1678 - unsigned char args to ctype funcs
ITS#1682 - don't redefine ldap_debug
ITS#1683 - uninitialized vars
ITS#1703 - ldo_debug initialization
ITS#1705 - unsigned testing
ITS#1706 - socklen_t args
ITS#1719 - back-tcl update (other cleanups/fixes/improvements; yet untested)
ITS#1724 - integerNormalize/integerFilter/integerIndexer bugs
ITS#1725 - libdes not required
Implement back-null (/dev/null style backend)
Cleanup some misc warnings ("%lu" format, unused/uninitialized vars,
ambiguous operator precedence)
Kurt, please regenerate configure
2002-04-08 09:43:22 +00:00
Julius Enarusai
f57d33f636
Added LDAP_LOG messages
2002-04-05 18:38:59 +00:00
Howard Chu
ca4cbc4a49
ITS#1709 j was logged uninitialized
2002-04-05 06:55:25 +00:00
Howard Chu
11bbd076a8
ITS#1711 txn was uninitialized
2002-04-05 06:54:39 +00:00
Howard Chu
5c70106657
ITS#1708 ldap_pvt_tls_sb_ctx() et al
2002-04-05 06:48:03 +00:00
Howard Chu
70d4ef9a85
ITS#1714 dn->bv_val malloc len+1
2002-04-05 06:34:15 +00:00
Howard Chu
ba5a584729
ITS#1716 is_entry_subentr/ies/y/
2002-04-05 06:28:52 +00:00
Howard Chu
380806eebe
ITS#1726, always use bdb_db_hash().
2002-04-05 05:59:04 +00:00
Howard Chu
1353ded30c
Change slap_parseURI to use ldap_parse_url. Other struct berval changes.
2002-04-05 05:37:01 +00:00
Stig Venaas
891f987928
Changed to use lower case for case folding
2002-04-04 12:50:46 +00:00
Pierangelo Masarati
dd4f10de57
use ber_bvcmp where appropriate
2002-04-03 15:43:41 +00:00
Pierangelo Masarati
82d1c77722
missing description in current cunnections number
2002-04-03 15:42:54 +00:00
Pierangelo Masarati
440637dde7
various acl improvements/cleanups/speedups (need to be documented, though)
2002-04-03 15:42:19 +00:00
Pierangelo Masarati
f4dba925ff
add a switch that enables/disables reverse lookups if configured with rlookups
2002-04-03 15:40:49 +00:00
Kurt Zeilenga
b0b8546f05
Patch: More format bugs (ITS#1702)
...
================
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
2002-04-02 18:56:26 +00:00
Kurt Zeilenga
26b99bc35d
ITS#1701. Fix ber_scanf() return tag handling.
...
Based upon patch submitted by Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>.
2002-04-02 18:40:04 +00:00
Pierangelo Masarati
32c2995ecc
fix last part of ITS#1710 (commented code, though)
2002-04-02 14:38:57 +00:00
Pierangelo Masarati
068c73b01f
appropriately detect the required conn
2002-04-02 14:25:01 +00:00
Pierangelo Masarati
6c589f2552
don't loop any more if connid is found :)
2002-04-02 13:44:30 +00:00
Pierangelo Masarati
090ef02589
partial fulfilment of ITS#1710
2002-04-02 12:27:06 +00:00
Pierangelo Masarati
49ab777bbb
minor improvement
2002-04-02 11:51:05 +00:00
Pierangelo Masarati
7b2f5f0da7
use ber_bvcmp() whenever possible
2002-04-02 11:41:56 +00:00
Pierangelo Masarati
e847d6fdf2
fix ITS#1704
2002-04-02 11:16:00 +00:00
Pierangelo Masarati
ab6ad34692
the logic of this check was completely reversed; in case '*' is used, on't test the regula expression
2002-04-02 08:18:30 +00:00
Pierangelo Masarati
1658aa0893
fix counting twice the substitution length (caused berval to have wrong length, rejected by subsequent dnNormalize)
2002-03-30 15:44:30 +00:00
Pierangelo Masarati
9bf3ccd0bf
allow attribute exclusion list in selective replica
2002-03-30 08:52:20 +00:00
Pierangelo Masarati
bcc486df2d
initialize temporaries
2002-03-30 08:47:13 +00:00
Pierangelo Masarati
af3a65b924
do not print -1 as %lu
2002-03-30 08:45:21 +00:00
Pierangelo Masarati
031991e0b4
do not return a pointer to an automatic variable in case of success
2002-03-30 08:44:29 +00:00
Kurt Zeilenga
f9766f684b
System loading can now be done in one place...
2002-03-30 01:28:34 +00:00
Kurt Zeilenga
e7523b1496
add si_syn_octetString to keep syntax load checks in one place.
2002-03-30 01:07:20 +00:00
Kurt Zeilenga
111b464642
move ldap_int_put_filter to ldap_pvt_put_filter
...
and other cleanup
2002-03-30 00:42:40 +00:00
Julius Enarusai
5f154f2e57
Added LDAP_LOG messages
2002-03-26 22:40:31 +00:00
Julius Enarusai
82cd035505
Added LDAP_LOG messages
2002-03-26 22:17:08 +00:00
Julius Enarusai
73fcfa6e59
Added LDAP_LOG messages to operational.c and fixed compile error in dn2id.c
2002-03-26 21:34:03 +00:00
Julius Enarusai
7b05699803
Added LDAP_LOG messages
2002-03-26 21:14:23 +00:00
Julius Enarusai
437bf1ba70
Added LDAP_LOG messages
2002-03-26 20:04:30 +00:00
Julius Enarusai
5f466ae128
Added LDAP_LOG messages
2002-03-26 18:52:36 +00:00
Julius Enarusai
bb38d574ac
Added LDAP_LOG messages
2002-03-26 18:01:58 +00:00
Julius Enarusai
d881efa172
Added LDAP_LOG messages
2002-03-26 17:47:52 +00:00
Julius Enarusai
2027e7322a
Added LDAP_LOG messages
2002-03-26 17:34:57 +00:00
Julius Enarusai
4d501cacd9
Added LDAP_LOG messages
2002-03-26 17:00:14 +00:00
Kurt Zeilenga
cf3f722c94
Now understand with Hallvard was commenting on in ITS#1669.
...
Removed "leading" comments and added a general caution statement.
This schema will be pulled from 2.1.
2002-03-25 17:13:11 +00:00
Kurt Zeilenga
9b26e48aa6
ITS#1674: integerOrderingMatch, integerFirstComponentMatch and then some.
2002-03-25 17:08:38 +00:00
Kurt Zeilenga
aa18b7a52e
ITS#1686: fix typo in usage
2002-03-25 16:30:06 +00:00
Howard Chu
f20a6a27b3
Fix ITS#1675, make sure search results are initialized
2002-03-25 11:52:39 +00:00
Kurt Zeilenga
6033aeb6cf
Fixup a few schema definitions
2002-03-24 17:37:27 +00:00
Kurt Zeilenga
0be4d842bc
Update control framework
...
Misc cleanup
NT updates
2002-03-24 02:17:21 +00:00
Kurt Zeilenga
41138a8ca7
cleanlup
2002-03-24 02:15:17 +00:00
Kurt Zeilenga
4216f19ed1
cleanup
2002-03-24 02:14:00 +00:00
Pierangelo Masarati
49f324a1fa
fix ITS#1671 and more
2002-03-23 16:53:44 +00:00
Pierangelo Masarati
724666c447
fix ITS#1667
2002-03-23 16:17:26 +00:00
Pierangelo Masarati
6174cb6529
improvement of permission handling of local sockets (ITS#1660, issue 2)
2002-03-23 16:07:19 +00:00
Pierangelo Masarati
fa654ae447
fix ITS#1660 (issue 1)
2002-03-23 16:06:22 +00:00
Pierangelo Masarati
50baa90139
port hasSubordinates handling to back-bdb
2002-03-23 11:04:09 +00:00
Howard Chu
f181388a5e
Fix ITS#1655, don't retrieve sd until we've checked for valid c_sb.
2002-03-20 23:47:08 +00:00
Howard Chu
6b0fb09e0d
Fix ITS#1607, longstanding bug in group and dnattr acls, gave access
...
to anonymous connections.
2002-03-20 13:11:37 +00:00
Howard Chu
780d427fa6
In bdb_idl_fetch_key, the DB_MULTIPLE buffer must be a multiple of 1024
...
bytes in size.
2002-03-20 01:27:08 +00:00
Howard Chu
9a154f89b0
Rewrote bdb_idl_insert_key and bdb_idl_delete_key for BDB_IDL_MULTI,
...
parses range IDLs directly to correctly handle changes to the range
boundaries. (bdb_idl_insert_key used to call bdb_idl_fetch_key to
handle ranges; bdb_idl_delete_key never handled ranges before.)
2002-03-20 00:51:34 +00:00
Julius Enarusai
5af8610ba0
Added LDAP_LOG messages
2002-03-19 17:44:11 +00:00
Howard Chu
cc21d814b3
Use a single malloc'd block for all the temporary IDL storage in the
...
filter processing, to avoid runtime stack blowout. Also removes the
need for gigantic thread stacks.
2002-03-18 11:40:58 +00:00
Howard Chu
bad62d2167
Fix backend_attribute trying to reference a NULL be. Neither backend_group
...
nor backend_attribute need to worry about the noSubs parameter of
select_backend().
2002-03-18 08:59:02 +00:00
Howard Chu
35554dadf3
use ber_str2bv() instead of ch_strdup/strlen.
2002-03-18 08:57:59 +00:00
Howard Chu
a1063a041d
Fix previous commit, lutil_passwd_scheme() returns boolean, not pointer.
2002-03-18 08:56:47 +00:00
Howard Chu
7e68108d4a
Fix previous commit, missing semicolon
2002-03-18 08:55:21 +00:00
Kurt Zeilenga
9fead9d2ce
fix compilation error
2002-03-17 23:39:45 +00:00
Julius Enarusai
a61d2b914d
Added LDAP_LOG messages
2002-03-15 18:57:12 +00:00
Julius Enarusai
e89c8b4f63
Added/Modified LDAP_LOG messages to match the existing Debug messages
2002-03-15 17:50:28 +00:00
Julius Enarusai
d8413fac32
Added LDAP_LOG messages to match existing Debug messages
2002-03-15 17:21:06 +00:00
Julius Enarusai
35bc1bf43c
Added LDAP_LOG messages to these files to match the existing Debug messages
2002-03-14 22:23:44 +00:00
Julius Enarusai
02412251f1
Added LDAP_LOG messages to the above files to match the existing Debug messages
2002-03-14 16:34:24 +00:00
Kurt Zeilenga
a1d757a038
Check components of extensible match filter sooner than later.
2002-03-12 23:07:07 +00:00
Kurt Zeilenga
dbfc18985a
Align with back-ldbm version
2002-03-12 22:46:13 +00:00
Kurt Zeilenga
9eac390e2f
Return inappropriate matching if the syntaxes don't line up for
...
extensible matching
2002-03-11 16:29:01 +00:00
Kurt Zeilenga
815e2ac717
Add a comment to the check which needs extending to support
...
new extensible matching rules.
2002-03-11 16:12:36 +00:00
Kurt Zeilenga
5ea0bf2f9b
Use put/get filter to convert string to filter
2002-03-11 05:21:49 +00:00
Kurt Zeilenga
b56f7c7222
Add no-op mru_schema_info()...
...
Not sure how best to populate matchingRuleUses...
2002-03-11 03:06:34 +00:00
Kurt Zeilenga
2f7858044e
ITS#1636 fix
2002-03-11 03:05:43 +00:00
Kurt Zeilenga
c02f448a16
Misc extensible match clean up.
2002-03-11 01:48:37 +00:00
Kurt Zeilenga
c9c3a68496
Deprecate filter_print in favor of filter2bv.
2002-03-10 17:41:14 +00:00
Kurt Zeilenga
902350f991
Fix up handling of extended operations with no request data
2002-03-10 17:40:22 +00:00
Pierangelo Masarati
a1b65bcdfe
detect unavailable hash algorithms at startup
2002-03-09 11:02:32 +00:00
Howard Chu
f0a453dfca
Fix ITS#1615
2002-03-07 20:23:48 +00:00
Julius Enarusai
08d0a48ac5
The following file fails compile when NEW_LOGGING is enabled.
2002-03-07 17:50:56 +00:00
Kurt Zeilenga
1880c23029
Replace get_filter generation of fstr with filter2bv().
2002-03-07 03:13:11 +00:00
Kurt Zeilenga
a4635f3ada
CLDAP fixes
2002-03-06 20:58:20 +00:00
Kurt Zeilenga
93a45a02aa
Update handling of AND/OR indexing where element is undefined.
2002-03-04 22:32:33 +00:00
Kurt Zeilenga
d9c93faac8
Fix typo
2002-03-04 22:26:47 +00:00
Kurt Zeilenga
3d89f398a9
Fix callback initializer.
2002-03-04 21:28:46 +00:00
Pierangelo Masarati
914d703714
backout previous change; validation has been added to dnNormalize functions
2002-03-02 17:28:19 +00:00
Kurt Zeilenga
ad0858dea4
Add validation.
2002-03-02 17:05:29 +00:00
Pierangelo Masarati
9dee603fdf
null length string is not allowed
2002-03-02 14:28:08 +00:00
Kurt Zeilenga
ef7883c028
Fix substring index error handling
2002-03-01 19:07:15 +00:00
Kurt Zeilenga
faa9956446
Validate filter and compare inputs
2002-03-01 18:52:45 +00:00
Kurt Zeilenga
a71cd15182
Add normalize_validate_normalize() to be use instead of value_normalize()
...
where value has not yet been validated.
2002-03-01 18:05:47 +00:00
Kurt Zeilenga
c0fdb1aaca
Add a value_validate() function to be used by prior to value_normalize
...
calls as needed (compare/filters).
2002-03-01 17:36:22 +00:00
Stig Venaas
c476878fde
Using new UTF8bv* all over, getting rid of UTF8normalize() and
...
UTF8normcmp().
2002-02-27 16:11:24 +00:00
Stig Venaas
94983da942
Added code for approximate matching in UTF8bvnormalize() and changed to use
...
this in approxMatch etc in schema_init.c
2002-02-26 18:38:40 +00:00
Kurt Zeilenga
5d347b6153
tool install should not be dependent on $(BUILD_LDBM)
2002-02-25 16:57:29 +00:00
Kurt Zeilenga
d50eb2e959
C translator portability changes (ITS#1609)
2002-02-23 23:47:37 +00:00
Kurt Zeilenga
cea1746182
Return proper result codes for usage errors
2002-02-21 19:29:32 +00:00
Kurt Zeilenga
75d97a43eb
Fix bug in unused function
2002-02-21 19:28:49 +00:00
Pierangelo Masarati
2d1eb56725
#ifdef local time hack
2002-02-19 09:11:55 +00:00
Kurt Zeilenga
33516fa9eb
#ifdef ACI/authpasswd schema
2002-02-18 20:06:50 +00:00
Kurt Zeilenga
348e489b35
#ifdef experimental controls
2002-02-18 19:48:27 +00:00
Howard Chu
f9902a32b4
Changed supportedFeatures to array of struct bervals
2002-02-15 16:33:44 +00:00
Howard Chu
81c3c311a8
Changed reqoid to struct berval
2002-02-15 16:27:31 +00:00
Howard Chu
a0bfd8b058
Add basic objectClass filtering to filtered replicas
2002-02-15 15:21:13 +00:00
Howard Chu
ce4466655e
Fix ad_inlist typo on oc->required
2002-02-15 14:48:01 +00:00
Pierangelo Masarati
2aec424646
use memchr in ber_bvchr
2002-02-14 21:10:13 +00:00
Pierangelo Masarati
215448ac83
substrings match works with NULs in UTF8 strings
2002-02-14 18:55:38 +00:00
Pierangelo Masarati
55993dc66a
don't free dangling pointers :(
2002-02-14 18:15:56 +00:00
Pierangelo Masarati
ef607e65d7
first round at replacing UTF8normalize with UTF8bvnormalize
2002-02-14 16:01:48 +00:00
Howard Chu
933f6a5fdd
For ITS#1601, add ber_init2() using given buffer in-place instead of
...
allocating a copy.
2002-02-14 13:32:40 +00:00
Pierangelo Masarati
39891e4e5b
make UTF8STringNormalize handle NUL
2002-02-13 21:25:57 +00:00
Pierangelo Masarati
6e88ea7108
fix dnValidate (leak and return SUCCESS)
2002-02-13 19:25:58 +00:00
Pierangelo Masarati
3cc674589d
DNs may include NULs
2002-02-13 19:18:31 +00:00
Kurt Zeilenga
6ebe49f1b6
Limit the length of [R]DNs on input to 8192. A lower limit,
...
especially for anonymous clients, might be even more reasonable.
2002-02-13 18:11:52 +00:00
Kurt Zeilenga
ee6d1a4d40
Check for NULs in DNs.
2002-02-13 16:41:41 +00:00
Pierangelo Masarati
33d5f0f8f8
honor the ber_len field to allow to exploit ldap_bv2[r]dn to handle DNs embedded in longer strings ...
2002-02-13 12:09:36 +00:00
Pierangelo Masarati
a117c5eee7
use ldap_bv2[r]dn and turn ldap_str2[r]dn into wrappers
2002-02-13 11:46:33 +00:00
Pierangelo Masarati
959edd88c0
prepare for ldap_bv2dn()
2002-02-13 10:05:22 +00:00
Kurt Zeilenga
2a2d6cc93e
Add embedded NUL checks, fix last commit
2002-02-13 09:26:25 +00:00
Kurt Zeilenga
7c962f3dd4
dnValidate needs to check for embedded NULs.
2002-02-13 09:20:07 +00:00
Kurt Zeilenga
275f3be363
Misc. DN fixes and cleanups, namely don't muck with AVA_BINARY values
...
Also, pass empty_bv when bv_val is NULL.
2002-02-13 06:35:27 +00:00
Kurt Zeilenga
b2d948f0e5
Quick (and expensive) fix to detect DNs with embedded NULs
2002-02-13 04:20:11 +00:00
Kurt Zeilenga
fcf835558e
improve log message
2002-02-12 22:55:36 +00:00
Kurt Zeilenga
9b18295f4f
Don't print unprintable keys
2002-02-12 19:29:27 +00:00
Kurt Zeilenga
d88f1757ef
Fix pointer initialization bug
2002-02-12 19:18:39 +00:00
Kurt Zeilenga
2f6e801ab1
Fix overly complex control management
2002-02-12 18:47:48 +00:00
Kurt Zeilenga
35d04ef121
Minor cleanup.
2002-02-12 04:51:23 +00:00
Kurt Zeilenga
20e46b27fc
no need to check escaping of normalized dn
2002-02-12 04:50:40 +00:00
Kurt Zeilenga
0006ec0a46
Revert most of last change
2002-02-12 01:30:35 +00:00
Kurt Zeilenga
ef63ce1441
Misc cleanup
2002-02-12 00:35:29 +00:00
Kurt Zeilenga
c912616590
Fix bug in last commit
2002-02-11 21:07:55 +00:00
Kurt Zeilenga
ec34550487
Note that we likely need to make some of this conditional.
2002-02-11 20:33:27 +00:00
Kurt Zeilenga
488862105f
Use UUID to generate a GID for txn_prepare. Based upon submission
...
from Jong Hyuk Choi <jongchoi@us.ibm.com> (ITS#1585 for ITS1575).
2002-02-11 17:45:39 +00:00
Kurt Zeilenga
4554557171
Move BDB backend initialization to bdb_open. bdb_initialize()
...
shouldn't do much more than register callbacks.
2002-02-11 17:31:09 +00:00
Howard Chu
fd810bb35e
Silence a warning about ldap_debug
2002-02-11 09:38:49 +00:00
Kurt Zeilenga
d23c559646
Don't use 'shtool mkln' as ln(1) replacement.
...
Allow both <sasl/sasl.h> and <sasl.h>
2002-02-11 08:28:51 +00:00
Kurt Zeilenga
f3548d371f
notes needs for future additions
2002-02-11 01:58:36 +00:00
Kurt Zeilenga
ce07fb958e
Update libtool usage
...
s/-L.../libraries -lldap/.../libraries/libldap/libldap.la/
2002-02-10 22:42:51 +00:00
Kurt Zeilenga
5e31e90c74
Fix compile error properly
2002-02-10 18:05:04 +00:00
Kurt Zeilenga
b315d8af34
Update Cyrus SASL detection to always look for <sasl.h> regardless
...
of version and then try -lsasl2 and -lsasl. Make SASL code
conditional on SASL_VERSION_MAJOR, not HAVE_CYRUS_SASL.
2002-02-10 17:51:19 +00:00
Howard Chu
8a4e92b259
Support for Cyrus SASLv2. Untested.
2002-02-10 14:27:23 +00:00
Kurt Zeilenga
2b71d70f2f
Reverse arguments of is_object_subclass and reverse backwards calls
2002-02-09 23:55:37 +00:00
Kurt Zeilenga
c1bf5ab485
Change structuralObjectClass to use objectClassMatch,
...
enabling objectclass subclass debugging
2002-02-09 23:13:59 +00:00
Pierangelo Masarati
53a0980348
fix for acl state
2002-02-09 17:31:49 +00:00
Pierangelo Masarati
1f7b880963
fix for acl state
2002-02-09 09:05:40 +00:00
Kurt Zeilenga
32fb8b0bff
Add ACL state recording to avoid multiple evaluation of
...
value-independent access controls.
2002-02-09 05:14:17 +00:00
Kurt Zeilenga
59857824ff
Treat access to dn="" as access to dn.base="". Avoid empty regex.
...
Note: by dn="" already treated as anonymous.
2002-02-08 18:32:12 +00:00
Kurt Zeilenga
357a2fba5b
Update comment
2002-02-08 18:26:53 +00:00
Howard Chu
f4989b6210
Some malloc tweaks for for print_vals
2002-02-08 06:54:04 +00:00
Howard Chu
f50b75f0c2
Added replica attr=<attribute list> support to filter replog content
2002-02-08 06:44:33 +00:00
Howard Chu
b2eec644fa
Minor IDL tweaks
2002-02-08 06:42:34 +00:00
Kurt Zeilenga
01c6a1946e
ITS#1587: s/2289/2589/
2002-02-07 18:41:59 +00:00
Pierangelo Masarati
cf5489ff00
fixes ITS#1582 (didn't trap SLAP_MOD_SOFTADD modification type)
2002-02-06 08:41:05 +00:00
Howard Chu
6f8cc0d72c
Finished compare implementation
2002-02-02 10:37:25 +00:00
Howard Chu
8755c4e067
Deleted unneeded unbind.c
2002-02-02 10:13:16 +00:00
Howard Chu
73c87065fb
API updates, some typo fixes
2002-02-02 10:10:35 +00:00
Kurt Zeilenga
6b29def1c8
switch to openldap-data directory
2002-02-02 06:26:06 +00:00
Kurt Zeilenga
6df9b54592
Switch to openldap-data directory
2002-02-02 06:25:05 +00:00
Kurt Zeilenga
544ae160b4
Switch to openldap-data
2002-02-02 06:24:47 +00:00
Kurt Zeilenga
29a5c97265
create openldap-data, not openldap-ldbm
2002-02-02 06:23:35 +00:00
Kurt Zeilenga
d4a940d55e
use BDB and other updates
2002-02-02 06:23:12 +00:00
Kurt Zeilenga
1bf1621efe
Add cache txn_prepare code based upon submission (ITS#1575) by
...
Jong Hyuk Choi <jongchoi@us.ibm.com>. Needs a bit more work
(GID should be globally unique).
2002-02-02 03:28:32 +00:00
Kurt Zeilenga
41e8195c2e
Fix binary v lang_range typo
2002-01-31 15:09:55 +00:00
Howard Chu
010e94d4de
Fix ITS#1573 spelling errors
2002-01-31 14:12:06 +00:00
Howard Chu
38d0af5399
Fix ITS#1572, check for NULL objectClass in is_entry_objectclass
2002-01-31 14:10:19 +00:00
Kurt Zeilenga
057dda50d3
remove deadwood, e.g. slap_index2prefix()
2002-01-31 00:11:44 +00:00
Kurt Zeilenga
c2b946549a
Adjust size offsets, needs work
2002-01-31 00:10:24 +00:00
Kurt Zeilenga
1116bf4f45
Misc WinNT build updates
2002-01-30 04:06:31 +00:00
Kurt Zeilenga
0eac91fcc7
Entry rwlock is no longer needed as concurrency is managed
...
by the giant rwlock.
2002-01-29 20:05:55 +00:00
Kurt Zeilenga
7c6afdf7d1
Fix giant lock handling on entry release
2002-01-29 19:43:17 +00:00
Kurt Zeilenga
b6de12f552
revert constification of slap_init_user()
2002-01-29 19:01:15 +00:00
Kurt Zeilenga
78fe3a311f
Add giant lock code back in... (it's my flakey devbox that needed work)
2002-01-29 17:58:36 +00:00
Kurt Zeilenga
77e8e46bdf
Back out giant lock code, needs more work
2002-01-29 17:49:37 +00:00
Kurt Zeilenga
634cca7f0d
Add GIANT rwlock! This should resolve nasty concurrency issues.
2002-01-29 17:27:20 +00:00
Kurt Zeilenga
3a10cc1e43
Add time.c
2002-01-29 17:25:04 +00:00
Pierangelo Masarati
702bdbf8f4
added local time under 'lang' (lang-x-local)
2002-01-29 17:23:26 +00:00
Pierangelo Masarati
8cd8053d5e
add Time subsystem
2002-01-29 12:15:13 +00:00
Pierangelo Masarati
9b8ffc30ed
fix uninitialized last (NULL) entry in BerVarray
2002-01-29 08:58:34 +00:00
Kurt Zeilenga
0a31400d63
Some misc cleanup
2002-01-29 06:06:20 +00:00
Kurt Zeilenga
d3c26b6772
disable debug checks
2002-01-29 05:05:25 +00:00
Kurt Zeilenga
b57c11f4bd
BDB_ALIASES and BDB_SUBENTRIES cleanup
2002-01-29 04:53:47 +00:00
Kurt Zeilenga
ffebea4a8b
Add search no-op support.
2002-01-29 04:33:19 +00:00
Kurt Zeilenga
48bf651459
Fix Debug() statement
2002-01-29 00:05:30 +00:00
Kurt Zeilenga
4f0e4f60bd
Add first cut BDB no-op control support.
2002-01-29 00:02:27 +00:00
Kurt Zeilenga
98a2c60c3a
Delete CDB (no transactions) support
2002-01-28 22:57:50 +00:00
Pierangelo Masarati
c775624c9f
Check the ldif file without actually creating the db (but inits the files;
...
maybe I should trim this also). Useful to check LARGE ldif files which
will require TONS on indices without failing at the very last entry for
a silly typo after 45 min. or more :)
2002-01-28 20:36:29 +00:00
Pierangelo Masarati
4f2ff1c108
uses URL extensions to set socket permissions other than default
...
URL Syntax:
ldapi://[<path>[/????[!]x-mod=<mod>]]
where <path> is the URL-encoded path of the socket (i.e. use %2F instead
of '/' for UNIX filenames!) and <mod> is 3*[w|-] (all we need is write
permission to the socket, read/execute permissions are ignored; however,
they're set when opening the listener). The critical flag (the optional
'!' if not used ignores the result of the chmod() operation.
2002-01-28 20:26:55 +00:00
Kurt Zeilenga
14662be692
Add whoami extended operation.
...
Add no-op control (needs backend implementation)
Updated modify password extended option API
Kludged control infrastructure to support frontend only controls
2002-01-28 20:25:30 +00:00
Kurt Zeilenga
97e29c023e
Remove lint
2002-01-28 20:22:57 +00:00
Pierangelo Masarati
eb14feac7e
provisions for user-supplied permissions
2002-01-28 17:57:53 +00:00
Pierangelo Masarati
f00f86bf22
another round at cleaning it up: better naming, more attributes and so
2002-01-28 17:21:52 +00:00
Pierangelo Masarati
79bf6eb80e
beautify listener monitor
2002-01-28 14:01:16 +00:00
Howard Chu
5e522ca882
Changed Access.a_sockurl_pat, Connection.c_listener_url etc.
...
to struct bervals
2002-01-28 11:41:07 +00:00
Howard Chu
b6b4d837e3
Some more struct berval conversions
2002-01-28 10:11:36 +00:00
Howard Chu
c3c85b4062
Extended TLS_REQCERT/TLSVerifyClient syntax to 4 states: never,allow,try,
...
and hard/demand.
2002-01-27 02:56:18 +00:00
Kurt Zeilenga
bf371dcce9
Don't free langbuf.
2002-01-26 23:44:53 +00:00
Kurt Zeilenga
c0daf2aac4
Back out unintended commit
2002-01-26 23:36:39 +00:00
Kurt Zeilenga
8057b1a0a8
Language Tag and Range Support <draft-zeilenga-ldap-rfc2596-xx.txt>
...
Based upon code submitted by Steve Omrani <somrani@us.ibm.com> (ITS#1525)
2002-01-26 23:14:51 +00:00
Howard Chu
80f404f247
Fix result
2002-01-26 15:06:53 +00:00
Howard Chu
d937237987
Eliminated dn_normalize. No more migration.
2002-01-26 14:51:45 +00:00
Pierangelo Masarati
563736859c
appropriately detect index delete failure
2002-01-26 14:33:31 +00:00
Howard Chu
4191f39037
Changed slap_authz_info.sai_mech to struct berval.
...
Changed sasl_* to use struct bervals.
2002-01-26 13:57:41 +00:00
Howard Chu
6bac96b0bd
Changed dnParent to void instead of int. (It always returned success...)
2002-01-26 08:44:59 +00:00
Kurt Zeilenga
309870fa9c
Remove deprecated routines and a little lint.
2002-01-26 07:32:13 +00:00
Howard Chu
278ccf828b
Changed be_issuffix and dnParent to struct bervals
2002-01-26 06:52:59 +00:00
Howard Chu
7e43108c31
Changed dnParent to struct bervals
2002-01-26 06:52:24 +00:00
Howard Chu
b907603b2d
Fix previous commit
2002-01-26 06:52:11 +00:00
Howard Chu
7f54a89f32
Changed be_issuffix and dnParent to struct bervals
2002-01-26 06:40:56 +00:00
Howard Chu
07d0f4e411
Changed be_issuffix and dnParent to take struct bervals.
...
Changed dn_rdnlen, assumes an already pretty/normalized DN.
Added slap_empty_bv, a zero-length non-NULL berval.
2002-01-26 05:27:28 +00:00
Kurt Zeilenga
a1987ae99b
Missed one db.bv_val in Debug statement
2002-01-26 01:04:20 +00:00
Kurt Zeilenga
4e1f534c96
Straighten out some argument passing... cache code need more cleanup,
...
uses deprecated routines...
2002-01-26 01:01:10 +00:00
Kurt Zeilenga
b4df227d94
Initialize backend ssf set from global.
2002-01-25 21:35:40 +00:00
Howard Chu
713e6beb8d
Entry caching. Based on ITS#1545 from Jong Hyuk Choi, jongchoi@us.ibm.com
2002-01-25 07:19:01 +00:00
Howard Chu
1226d620e0
Added Entry->e_bv for entry_decode
2002-01-25 07:11:52 +00:00
Howard Chu
2367a31872
Minor cleanup, no need to zero fields in calloc'd memory
2002-01-25 07:07:55 +00:00
Pierangelo Masarati
cb8299d124
allow trailing '\' to continue a config line (ITS#1551)
2002-01-23 16:28:48 +00:00
Pierangelo Masarati
f74e81aa99
check on escaped rdn separator not needed any more
2002-01-22 08:30:32 +00:00
Pierangelo Masarati
5fc7217f1b
final dn_parent elimination in back-bdb
2002-01-22 08:18:12 +00:00
Pierangelo Masarati
f83fd25872
as a temporary hack, return result without rewriting match
2002-01-22 08:17:02 +00:00
Kurt Zeilenga
dc0f90d36d
Set lock detector to DEFAULT, not NORUN.
...
Clean up some error handling
2002-01-21 08:19:28 +00:00
Kurt Zeilenga
f868e4b34e
ITS#1541 fix.
2002-01-20 17:27:53 +00:00
Kurt Zeilenga
3d8c269f2e
Update collective attribute schema
2002-01-19 22:33:07 +00:00
Kurt Zeilenga
ba8da68f94
Add mods.c
2002-01-19 19:58:47 +00:00
Kurt Zeilenga
8eaaa67db0
Move {add,replace,delete}_value() routines to frontend and share.
...
Add error detail reporting.
2002-01-19 19:54:48 +00:00
Pierangelo Masarati
48d40fb6c3
fix ad_cmp
2002-01-19 15:42:59 +00:00
Kurt Zeilenga
2c94c7915a
Modify ad_cmp() macro to support use as an ordering function.
2002-01-19 06:42:59 +00:00
Kurt Zeilenga
c043a9c0cf
Fix modify/replace.
2002-01-19 05:55:18 +00:00
Kurt Zeilenga
b713f42650
Cleanup prototypes
2002-01-19 05:13:14 +00:00
Howard Chu
9cd630d507
Fix previous commit
2002-01-19 04:59:39 +00:00
Howard Chu
a8658a8163
Reset Entry->e_ocflags to 0 if objectClass attr is modified.
...
(Only an issue with entry caching...)
2002-01-19 04:51:42 +00:00
Howard Chu
eab49fe5da
Cleanup lint
2002-01-19 04:50:26 +00:00
Howard Chu
e040c2dee0
Fix previous commit
2002-01-19 04:32:43 +00:00
Howard Chu
d9a9899937
Don't free bv_vals that were passed to ber_bvarray_add.
2002-01-19 04:28:45 +00:00
Howard Chu
306e15d3bd
Use calloc for new Entries, take care of new e_ocflags field
2002-01-19 04:28:07 +00:00
Howard Chu
480d50d883
Fix previous commit
2002-01-19 03:50:37 +00:00
Howard Chu
44f0efb44f
Defined some ObjectClass->soc_flags values, changed is_entry_*objectclass
...
macros to use flags
2002-01-19 02:58:00 +00:00
Kurt Zeilenga
ccc4e64f0a
Fix up duplicate error reporting
2002-01-19 02:20:46 +00:00
Kurt Zeilenga
960fa831a6
Add checks for duplicate values.
2002-01-19 01:56:57 +00:00
Kurt Zeilenga
014ea5f486
Add checks for duplicate values
2002-01-19 01:56:35 +00:00
Kurt Zeilenga
4468ffa9e0
Remove some lint.
2002-01-19 01:54:56 +00:00
Kurt Zeilenga
819ffa1c37
Limit slurpd friendly code to replication user.
2002-01-18 22:01:29 +00:00
Kurt Zeilenga
9ff7e0d263
Fix compilation error
2002-01-18 17:04:29 +00:00
Howard Chu
5ab0d4af84
Added ldap_pvt_thread_yield() after txn_abort
2002-01-18 13:34:50 +00:00
Howard Chu
cf8349f895
Added "fewest" lockdetect keyword, to abort txn with fewest locks
2002-01-18 13:32:01 +00:00
Howard Chu
9f1591d5e9
Use DB_RMW in idl_fetch_key if called as part of a txn.
2002-01-18 13:29:10 +00:00
Howard Chu
7db33f87a9
Do deadlock detection on any conflict, instead of in a separate thread
2002-01-18 13:28:07 +00:00
Howard Chu
6d58126c34
Added compatibility macros for BDB3/4 lock_get, txn_id.
2002-01-18 13:27:25 +00:00
Howard Chu
32cafeb525
Add missing newline at EOF
2002-01-18 04:50:34 +00:00
Howard Chu
6bfe37bdf5
In UTF8StringValidate, 1-byte chars are already validated
2002-01-18 04:49:55 +00:00
Howard Chu
89abf8bbb0
Change to use dn_match
2002-01-18 04:48:58 +00:00
Howard Chu
26d0410de0
Cleanup while loops in dn2id_add/delete
2002-01-17 23:45:40 +00:00
Pierangelo Masarati
9b4f933649
dn_parent => dnParent
2002-01-17 22:47:55 +00:00
Pierangelo Masarati
e6332812e0
another round replacing dn_parent ...
2002-01-17 22:37:38 +00:00
Pierangelo Masarati
3894bd332b
fix dnParent to return '' if the dn is a rdn
2002-01-17 22:36:53 +00:00
Pierangelo Masarati
4624bbafba
another round replacing dn_parent ...
2002-01-17 19:58:19 +00:00
Pierangelo Masarati
861e9a66b5
fix uninitialized pointer (ITS#1538)
2002-01-17 19:33:48 +00:00
Pierangelo Masarati
d70f117b69
first round at eliminating dn_parent ...
2002-01-17 19:05:21 +00:00
Kurt Zeilenga
e25f6ef0cd
Add a safety check to bvcasechr
2002-01-17 17:19:20 +00:00
Pierangelo Masarati
1ea0d20e82
publish dnParent()
2002-01-17 17:04:11 +00:00
Howard Chu
5c2bc277b8
In db_destroy, cannot checkpoint a NULL dbenv.
2002-01-17 10:05:04 +00:00
Howard Chu
f2f6c516ab
DB_NODUPDATA is not a valid open flag
2002-01-17 09:48:44 +00:00
Kurt Zeilenga
492762f1c5
Don't use BDB group/attribute callbacks as they may cause deadlock.
...
Add code to bdb_attribute and bdb_group where use TXN id and to
provide error, but need to rework callers (and their callers) to
ensure error is properly bubbled up to the backend operation routine
handling the transaction. Ugh.
2002-01-17 03:58:52 +00:00
Kurt Zeilenga
32b955cfc5
replace strcasechr with bvcasechr
2002-01-17 00:18:57 +00:00
Pierangelo Masarati
52b05a5b06
more ber_*cmp optimizations
2002-01-16 19:18:41 +00:00
Kurt Zeilenga
b48c355934
Fix up last commit
2002-01-16 19:03:31 +00:00
Pierangelo Masarati
1092fcfed8
remark for future (questionable) optimization
2002-01-16 18:51:20 +00:00
Pierangelo Masarati
0842db2a8b
fix ber_*str renaming
2002-01-16 18:50:45 +00:00
Kurt Zeilenga
7f0289a390
Move most of the new ber_*cmp routines to lber_pvt.h to keep them private,
...
rework them slightly to avoid computations which might result in underflow.
Rename them for consistency with other berval routines.
Remove some utf8 lint.
2002-01-16 18:16:15 +00:00
Howard Chu
356a98a363
Fix bdb_idl_fetch/insert_key. Still fails test011.
2002-01-16 15:22:08 +00:00
Pierangelo Masarati
8f29c5e1e4
use dn_match
2002-01-16 12:15:27 +00:00
Pierangelo Masarati
3d9377f764
compare attribute type, not value
2002-01-16 12:06:42 +00:00
Pierangelo Masarati
af54eed042
added ber_[mem|case]cmp() macros for fast berval comparison; extensively used in acl and in dn_match macro at present
2002-01-16 11:36:47 +00:00
Howard Chu
457b00bf0f
Fix idl_insert_key with USE_INDIRECT_NIDS, wasn't setting NIDS...
2002-01-16 09:58:11 +00:00
Howard Chu
913c321a7e
Fix misplaced #if USE_INDIRECT_NIDS/cont_alloc in idl_delete_key
2002-01-16 07:39:00 +00:00
Kurt Zeilenga
21c8846e64
Fix last commit
2002-01-16 05:44:21 +00:00
Kurt Zeilenga
20af643fc4
more cleanup
2002-01-16 04:40:41 +00:00
Kurt Zeilenga
3bfab4699e
Remove last uses of dn_validate()
2002-01-16 03:01:19 +00:00
Kurt Zeilenga
d2f5d75885
Remove unused deprecated DN routines.
...
Only dn_validate, dn_normalize, and dn_parent remain (for now).
2002-01-16 00:16:51 +00:00
Kurt Zeilenga
e154da3a09
Remove some asserts. Need to re-valid logic
2002-01-15 19:54:21 +00:00
Kurt Zeilenga
beaf090bbb
remove lint
2002-01-15 17:18:18 +00:00
Kurt Zeilenga
5e6e27078c
Change replace ACL semantics from U-Mich historical behavior.
...
U-Mich allows someone with selfwrite to use replace all values
of an attribute with a value containing their DN. Which, of course,
could than be deleted. This behavior was carried forward in all
versions of OpenLDAP.
The new semantics separate checks for deleting all existing values
and adding new values. It is more logical and more inline with
the common use of selfwrite.
2002-01-15 16:23:11 +00:00
Howard Chu
e21e900392
Use LDAP_UTF8_CHARLEN2 to check shortest possible encoding
2002-01-15 08:27:19 +00:00
Kurt Zeilenga
13af7fb073
Misc. cleanup, remove lint, remove unused deprecated functions, etc.
2002-01-15 07:29:15 +00:00
Kurt Zeilenga
5a378a5ce8
A very basic UTF-8 check
2002-01-15 04:38:05 +00:00
Howard Chu
6981960be0
Deleted autosubtypes support.
2002-01-15 01:50:09 +00:00
Howard Chu
d70498f0f2
Revert previous commit again. autosubtypes are gone for good.
2002-01-15 01:49:53 +00:00
Howard Chu
fde56a188c
More fixes for autosubtype index generation
2002-01-14 20:49:06 +00:00
Howard Chu
f4cfb13f2c
Fix previous commit
2002-01-14 20:26:51 +00:00
Howard Chu
1180279104
Revert previous commit
2002-01-14 20:13:25 +00:00
Kurt Zeilenga
f89308915a
Add a default case with assert() just in case.
2002-01-14 17:25:13 +00:00
Kurt Zeilenga
9d307b4242
ITS#1530 no value replace ACL fix
2002-01-14 17:19:05 +00:00
Howard Chu
f91d5f484a
In DN_SUBTREE use idl_allids instead of explicit malloc.
2002-01-14 11:52:53 +00:00
Howard Chu
2e8a98e3a1
Fix subtype indexing. Really really made it the default.
2002-01-14 10:37:08 +00:00
Howard Chu
ac1332cdb8
Renamed BVarray to BerVarray. Moved slapd:bvarray_{add,free} to
...
liblber:ber_bvarray_{add,free}.
2002-01-14 01:43:17 +00:00
Howard Chu
92481f7057
Modify performance patch from Gertjan van Wingerde <gwingerde@home.nl>
2002-01-13 23:23:23 +00:00
Howard Chu
ec8fc19566
Modify performance patch from Gertjan van Wingerde <gwingerde@home.nl>
...
with minor adjustments.
2002-01-13 23:21:03 +00:00
Howard Chu
8b969479f4
Turn on BDB_IDL_MULTI by default
2002-01-13 22:26:29 +00:00
Howard Chu
22120f4930
Turn on USE_INDIRECT_NIDS by default
2002-01-13 22:25:51 +00:00
Kurt Zeilenga
de6700d3b1
Really fix previous commit
2002-01-13 20:30:17 +00:00
Kurt Zeilenga
7826020e97
Fix compile error
2002-01-13 20:19:40 +00:00
Kurt Zeilenga
ff23cd0f7f
Clean up last patch
2002-01-13 20:06:53 +00:00
Kurt Zeilenga
64619bed94
Install system schema checks
2002-01-13 19:38:12 +00:00
Kurt Zeilenga
9a3dcc376c
Zap connection_internal_*
2002-01-13 18:05:16 +00:00
Howard Chu
d0724c769e
Fix mutex leak in previous commit
2002-01-13 17:17:29 +00:00
Howard Chu
f20991dea7
Changed to use search callbacks instead of connection_internal_open
2002-01-13 17:12:43 +00:00
Howard Chu
af862f8c6b
Reworked callback layout, added send_search_entry callback
2002-01-13 16:40:37 +00:00
Kurt Zeilenga
ce2d8ebc7e
Misc cleanup, lint removal, and minor optimizations
2002-01-13 05:00:59 +00:00
Pierangelo Masarati
fafce1601e
consistently use dn_match macro throughout slapd
2002-01-12 18:17:13 +00:00
Kurt Zeilenga
bcf37b4463
Fix SASL leak and clobber bug
...
Fix TLS critical rev logic bug
Suggested fixes reported by Roman.Kagan@itep.ru
2002-01-12 17:46:27 +00:00
Pierangelo Masarati
3bddc61a2a
clarify macro name: dn_match = 1 if match, 0 otherwise
2002-01-12 17:42:44 +00:00
Pierangelo Masarati
e89d7b1280
some memory handling cleanup: check that memory is freed by who allocated it, or at least put a FIXME where not
2002-01-12 17:35:01 +00:00
Pierangelo Masarati
39a652d2de
cleanup and better dn handling
2002-01-12 16:04:15 +00:00
Pierangelo Masarati
725e13dade
slap_strncopy function
2002-01-12 16:02:51 +00:00
Pierangelo Masarati
f8fb4aca76
error message from be_entry_put tool backend function
2002-01-12 16:00:51 +00:00
Pierangelo Masarati
ea86a19460
monitor objectclass definition
2002-01-12 11:36:23 +00:00
Kurt Zeilenga
7e9c78fbc6
Add ITS#1508 fix to allow ACIs to grant anonymous users access.
2002-01-11 23:48:22 +00:00
Kurt Zeilenga
d30ab4c113
Additional system schema checks
2002-01-11 20:47:24 +00:00
Kurt Zeilenga
2d09d18de5
Add collective attribute system schema support.
2002-01-11 20:28:05 +00:00
Kurt Zeilenga
70d6f39459
More system schema checks
2002-01-11 19:11:46 +00:00
Kurt Zeilenga
19f2925ab1
Add some basic system schema checks.
2002-01-11 18:56:01 +00:00
Kurt Zeilenga
f57057ee01
Add system schema flags to backends supporting system schema.
2002-01-11 18:26:17 +00:00
Kurt Zeilenga
f402762f9a
Remove lint.
2002-01-11 18:03:28 +00:00
Kurt Zeilenga
20dd3c1273
Add Backend to system schema check routines
2002-01-11 18:00:22 +00:00
Pierangelo Masarati
6c76b2c55d
of course this is required by listener monitor
2002-01-11 11:48:46 +00:00
Pierangelo Masarati
619f772459
listener monitor
2002-01-11 11:43:35 +00:00
Pierangelo Masarati
5dfbf93687
need this outside for back monitor ...
2002-01-11 10:46:58 +00:00
Pierangelo Masarati
75f1addd76
added structural objectclass; reworked obejctclasses to use 'monitor' and 'extensibleObject'; minor cleanup
2002-01-11 10:27:58 +00:00
Howard Chu
340d288db3
Fix loop in glue_tool_sync
2002-01-11 09:04:34 +00:00
Kurt Zeilenga
504404725a
Flip some bits in the backend flags mask
2002-01-11 02:31:47 +00:00
Kurt Zeilenga
c3b62aae91
Fix the bits
2002-01-10 22:54:24 +00:00
Jon Leichter
80a214aef0
Added a missing attribute: tokenGroupsGlobalAndUniversal. It exists
...
in Active Directory.
2002-01-10 22:38:17 +00:00
Kurt Zeilenga
55501e886f
Rework backend (lastmod + glue + system schema) flags
2002-01-10 22:34:11 +00:00
Howard Chu
f0cd9956ed
readahead is only needed on UDP, don't use it on TCP. (Save unneeded memcpy)
2002-01-10 22:00:17 +00:00
Howard Chu
54dae3d3d3
Fix str2anlist declaration, str is not const. (gets overwritten if
...
there is an error.)
2002-01-10 20:25:23 +00:00
Pierangelo Masarati
f757db004c
fix for backend-dependent schema check
2002-01-10 20:12:25 +00:00
Kurt Zeilenga
27a26905b7
Use NULL for be parameter to entry_schema_check() for now.
2002-01-10 19:48:43 +00:00
Kurt Zeilenga
c816ebc225
Add Backend argument to entry_schema_check() to support system schema
...
checks (in addition to user application schema checks).
2002-01-10 19:37:03 +00:00
Howard Chu
f5bfb64f07
Fix lint in previous commit
2002-01-10 18:55:13 +00:00
Kurt Zeilenga
f662a39d41
Add start of subentry support... still need to sort out
...
administrativeRole restricts.
2002-01-10 18:18:37 +00:00
Howard Chu
8067107ed2
Added an_oc to AttributeName for caching ObjectClass lookups.
...
Added error checking to str2anlist; if the attr name doesn't match
any attribute or objectclass the offending attr name is displayed.
2002-01-10 09:54:14 +00:00
Kurt Zeilenga
bf5b4405fe
More clean up of system schema changes
2002-01-10 06:58:57 +00:00
Kurt Zeilenga
aa9612f051
add system schema checks
2002-01-10 06:30:26 +00:00
Kurt Zeilenga
b4bb3b5bf8
Fix up last commit
2002-01-10 05:54:50 +00:00
Kurt Zeilenga
58a72b915a
More operational attribute infrastructure...
2002-01-10 05:31:49 +00:00
Kurt Zeilenga
cadecfaae1
Finish building in operational attributes
2002-01-10 04:10:54 +00:00
Kurt Zeilenga
f4336c8953
More builtin operational attributes
2002-01-10 03:31:11 +00:00
Kurt Zeilenga
7fcf4e011c
Cleanup last commit. Need to add more internal schema....
2002-01-10 02:01:00 +00:00
Kurt Zeilenga
6ed15e3350
Another round of operational attribute changes... more to follow.
2002-01-10 01:46:08 +00:00
Kurt Zeilenga
91644affd9
Minor cleanup
2002-01-10 00:54:31 +00:00
Kurt Zeilenga
c80d93f2bb
Start of new operational attribute framework
2002-01-10 00:17:21 +00:00
Kurt Zeilenga
74421a28ec
Round 2 of subentry changes
2002-01-09 19:43:15 +00:00
Kurt Zeilenga
9b0585f393
Add very basic subentry search support.
2002-01-09 19:21:07 +00:00
Kurt Zeilenga
39c02506de
Fix problems caused by lint removal
2002-01-09 18:18:36 +00:00
Kurt Zeilenga
22f993f89b
Remove some lint caused by the changes in const'ification
2002-01-09 06:30:23 +00:00
Kurt Zeilenga
bc1cd95149
Rework control infrastructure a bit. Add subentries visibility control.
2002-01-09 06:29:54 +00:00
Kurt Zeilenga
e19fdf58c0
Add some comments
2002-01-09 00:19:56 +00:00
Kurt Zeilenga
053251ee88
Bring nadf back from attic, but note that it is obsolete
2002-01-09 00:19:20 +00:00
Kurt Zeilenga
2958cb4dd0
A subentries control framework
2002-01-09 00:05:49 +00:00
Kurt Zeilenga
2a0bb35194
Move nadf to attic
2002-01-08 23:54:53 +00:00
Kurt Zeilenga
5a6f77e92b
comment out pilotObject as it depends on lastModifiedBy
...
move nadf.schema as it depends on lastModifiedBy
2002-01-08 23:54:24 +00:00
Kurt Zeilenga
205f1bd71b
Clarify comment.
2002-01-08 21:14:00 +00:00
Kurt Zeilenga
c9700526e1
Use iplanet OID (with typo fixed) for inetLocalMailRecipient
2002-01-08 21:09:52 +00:00
Kurt Zeilenga
180a37268e
comment out obsolete operational schema
2002-01-08 21:08:03 +00:00
Kurt Zeilenga
587d36e18b
A few changes to the handling of operational attributes.
...
Small preparation for applying tighter semantics to operational attributes.
2002-01-08 20:22:41 +00:00
Kurt Zeilenga
319b92202b
Fix ACL logic for non-regex peername, sockname, etc.
2002-01-08 02:55:03 +00:00
Kurt Zeilenga
962e351271
Minor cleanup
2002-01-07 21:22:38 +00:00
Kurt Zeilenga
e9342bc7a9
Don't use 'void *' unnecessarily.
2002-01-07 20:28:02 +00:00
Pierangelo Masarati
a8697827c8
fix questionable behavior in case of bind errors
2002-01-07 10:15:05 +00:00
Pierangelo Masarati
ed5f670ac1
fix c_cdn migration
2002-01-07 09:25:20 +00:00
Kurt Zeilenga
89e60eda54
Lachman laser is expired.
2002-01-07 07:41:45 +00:00
Kurt Zeilenga
3dd36b0e0a
Add collective schema (not yet implemented)
2002-01-07 04:45:06 +00:00
Kurt Zeilenga
95c6eae74a
Clarify DESC
2002-01-07 04:44:50 +00:00
Howard Chu
26e327f32e
Fix some debug statements
2002-01-06 07:21:06 +00:00
Howard Chu
50277c6abe
Added LDAP_FILTER_EXT case to filter_free()
2002-01-06 06:21:30 +00:00
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