Kurt Zeilenga
472484725f
Update dn2domain() to use str2dn() instead of explode_dn()
2002-08-17 19:42:59 +00:00
Kurt Zeilenga
22ec2b9e19
cleanup
2002-08-17 02:52:39 +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
76e936e274
reflect recent additions to backend configuration
2002-08-13 17:13:57 +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
1c0c6cee80
backout last change... too tired to make this work right now.
2002-08-12 22:33:43 +00:00
Kurt Zeilenga
233b0fd1dc
This *should* work
2002-08-12 22:27:24 +00:00
Kurt Zeilenga
ea4996046c
cleanup
2002-08-12 22:15:25 +00:00
Kurt Zeilenga
11838eb57b
Partially back out last commit
2002-08-12 22:14:10 +00:00
Kurt Zeilenga
c9565e7530
Rewrite master/slave ports
2002-08-12 21:49:27 +00:00
Kurt Zeilenga
f8f1321760
Add support for response controls
2002-08-12 20:50:20 +00:00
Kurt Zeilenga
f4e66b9420
paged results uses one OID for both request and response
2002-08-12 19:49:20 +00:00
Kurt Zeilenga
d945a5aed9
minor updates
2002-08-12 18:07:24 +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
Howard Chu
771974f99d
ITS#2019 Initialize utils properly
2002-08-10 23:34:55 +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
1be4ab9d07
ITS#1893 Add (terse) schemadn description
2002-08-10 04:09:28 +00:00
Kurt Zeilenga
ca5aa3b615
Some more sockaddr_in v sockaddr_storage cleanup
2002-08-10 03:48:09 +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
Howard Chu
4c69827b15
ITS#2016 possibly better macro test for this fix
2002-08-10 00:32:25 +00:00
Howard Chu
66d9bf404b
ITS#2016 Don't include <openssl/des.h> if we're also including <krb.h>.
2002-08-10 00:22:52 +00:00
Kurt Zeilenga
9acb78c708
Update
2002-08-10 00:21:25 +00:00
Kurt Zeilenga
b3bbe586b6
ITS#2018: use sockaddr_storage
...
based upon patch provided by <thorild@Update.UU.SE>
2002-08-09 22:14:43 +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
Pierangelo Masarati
3996936bf7
remove warnings
2002-08-09 13:50:29 +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
e2b8a3b139
Remove reference to getfilter(3)
2002-08-08 03:03:48 +00:00
Kurt Zeilenga
9c28c9b361
Zap LDAPv2-only stuff
2002-08-08 03:01:14 +00:00
Kurt Zeilenga
e69c9067c2
Fix saslregex init bug
2002-08-07 19:17:22 +00:00
Kurt Zeilenga
7bc35541e4
Add simple CN v cn test case for ITS#1997
2002-08-07 19:12:59 +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