]> git.sur5r.net Git - openldap/log
openldap
22 years agocleanup
Kurt Zeilenga [Sat, 17 Aug 2002 02:52:39 +0000 (02:52 +0000)]
cleanup

22 years agoUpdated register_syntax, register_matching_rule for more convenient
Howard Chu [Sat, 17 Aug 2002 01:29:18 +0000 (01:29 +0000)]
Updated register_syntax, register_matching_rule for more convenient
calling from other modules

22 years agoRemove #if 0 code
Kurt Zeilenga [Fri, 16 Aug 2002 18:58:39 +0000 (18:58 +0000)]
Remove #if 0 code

22 years agoCHANGES:
Pierangelo Masarati [Fri, 16 Aug 2002 16:45:24 +0000 (16:45 +0000)]
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

22 years agoadd function slap_modrdn2mods that prepares modifications list for delete/add old...
Pierangelo Masarati [Fri, 16 Aug 2002 16:35:16 +0000 (16:35 +0000)]
add function slap_modrdn2mods that prepares modifications list for delete/add old/new rdn values

22 years agosilence warnings
Pierangelo Masarati [Fri, 16 Aug 2002 16:33:22 +0000 (16:33 +0000)]
silence warnings

22 years agofix printableStringValidate return value bug
Pierangelo Masarati [Fri, 16 Aug 2002 16:32:42 +0000 (16:32 +0000)]
fix printableStringValidate return value bug

22 years agoreflect recent additions to backend configuration
Pierangelo Masarati [Tue, 13 Aug 2002 17:13:57 +0000 (17:13 +0000)]
reflect recent additions to backend configuration

22 years agochanges:
Pierangelo Masarati [Tue, 13 Aug 2002 17:12:27 +0000 (17:12 +0000)]
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
- ...

22 years agoVERY PRELIMINARY support for PostgreSQL and IBM db2
Pierangelo Masarati [Tue, 13 Aug 2002 17:07:40 +0000 (17:07 +0000)]
VERY PRELIMINARY support for PostgreSQL and IBM db2

22 years agobetter error handling when returning results
Pierangelo Masarati [Tue, 13 Aug 2002 17:00:33 +0000 (17:00 +0000)]
better error handling when returning results

22 years agoLog successful SASL bind (ITS#2017)
Kurt Zeilenga [Tue, 13 Aug 2002 03:49:21 +0000 (03:49 +0000)]
Log successful SASL bind (ITS#2017)

22 years agoPatch: lutil_progname() and lutil_strcopy() are not declared (ITS#2021)
Kurt Zeilenga [Tue, 13 Aug 2002 02:33:20 +0000 (02:33 +0000)]
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.

22 years agoFix IRIX sc_mask conflict
Kurt Zeilenga [Tue, 13 Aug 2002 02:32:57 +0000 (02:32 +0000)]
Fix IRIX sc_mask conflict

22 years agobackout last change... too tired to make this work right now.
Kurt Zeilenga [Mon, 12 Aug 2002 22:33:43 +0000 (22:33 +0000)]
backout last change... too tired to make this work right now.

22 years agoThis *should* work
Kurt Zeilenga [Mon, 12 Aug 2002 22:27:24 +0000 (22:27 +0000)]
This *should* work

22 years agocleanup
Kurt Zeilenga [Mon, 12 Aug 2002 22:15:25 +0000 (22:15 +0000)]
cleanup

22 years agoPartially back out last commit
Kurt Zeilenga [Mon, 12 Aug 2002 22:14:10 +0000 (22:14 +0000)]
Partially back out last commit

22 years agoRewrite master/slave ports
Kurt Zeilenga [Mon, 12 Aug 2002 21:49:27 +0000 (21:49 +0000)]
Rewrite master/slave ports

22 years agoAdd support for response controls
Kurt Zeilenga [Mon, 12 Aug 2002 20:50:20 +0000 (20:50 +0000)]
Add support for response controls

22 years agopaged results uses one OID for both request and response
Kurt Zeilenga [Mon, 12 Aug 2002 19:49:20 +0000 (19:49 +0000)]
paged results uses one OID for both request and response

22 years agominor updates
Kurt Zeilenga [Mon, 12 Aug 2002 18:07:24 +0000 (18:07 +0000)]
minor updates

22 years agoFix inverted bvmatch logic in modrdn
Kurt Zeilenga [Mon, 12 Aug 2002 08:45:20 +0000 (08:45 +0000)]
Fix inverted bvmatch logic in modrdn

22 years agoAdd back_bdb to modules
Kurt Zeilenga [Sun, 11 Aug 2002 21:06:03 +0000 (21:06 +0000)]
Add back_bdb to modules

22 years agoconsistently reduce string_expand bv_len by 1
Kurt Zeilenga [Sun, 11 Aug 2002 20:26:01 +0000 (20:26 +0000)]
consistently reduce string_expand bv_len by 1

22 years agoNever use DB_RECOVER flag when opening DB_ENV. Recovery must be done
Howard Chu [Sun, 11 Aug 2002 00:30:46 +0000 (00:30 +0000)]
Never use DB_RECOVER flag when opening DB_ENV. Recovery must be done
manually. Automatic recovery would interfere with gentlehup restarts.

22 years agoITS#2019 Initialize utils properly
Howard Chu [Sat, 10 Aug 2002 23:34:55 +0000 (23:34 +0000)]
ITS#2019 Initialize utils properly

22 years agosame as for back-meta
Pierangelo Masarati [Sat, 10 Aug 2002 14:25:41 +0000 (14:25 +0000)]
same as for back-meta

22 years agoinitialize struct timeval (fixes ITS#2014);
Pierangelo Masarati [Sat, 10 Aug 2002 14:13:46 +0000 (14:13 +0000)]
initialize struct timeval (fixes ITS#2014);
also, check for return value of dnNormalize2: if the returned
DN contains undefined attributes, the normalization fails.

22 years agoITS#1893 Add (terse) schemadn description
Howard Chu [Sat, 10 Aug 2002 04:09:28 +0000 (04:09 +0000)]
ITS#1893 Add (terse) schemadn description

22 years agoSome more sockaddr_in v sockaddr_storage cleanup
Kurt Zeilenga [Sat, 10 Aug 2002 03:48:09 +0000 (03:48 +0000)]
Some more sockaddr_in v sockaddr_storage cleanup

22 years agoITS#1893, use "schemadn" to configure subschemasubentry DN. (diff was
Howard Chu [Sat, 10 Aug 2002 03:10:52 +0000 (03:10 +0000)]
ITS#1893, use "schemadn" to configure subschemasubentry DN. (diff was
inaccessible, this is original code, not contributed.)

22 years agoITS#2016 possibly better macro test for this fix
Howard Chu [Sat, 10 Aug 2002 00:32:25 +0000 (00:32 +0000)]
ITS#2016 possibly better macro test for this fix

22 years agoITS#2016 Don't include <openssl/des.h> if we're also including <krb.h>.
Howard Chu [Sat, 10 Aug 2002 00:22:52 +0000 (00:22 +0000)]
ITS#2016 Don't include <openssl/des.h> if we're also including <krb.h>.

22 years agoUpdate
Kurt Zeilenga [Sat, 10 Aug 2002 00:21:25 +0000 (00:21 +0000)]
Update

22 years agoITS#2018: use sockaddr_storage
Kurt Zeilenga [Fri, 9 Aug 2002 22:14:43 +0000 (22:14 +0000)]
ITS#2018: use sockaddr_storage
based upon patch provided by <thorild@Update.UU.SE>

22 years agorework connection pool handling (reduce amount of malloc)
Pierangelo Masarati [Fri, 9 Aug 2002 17:15:10 +0000 (17:15 +0000)]
rework connection pool handling (reduce amount of malloc)

22 years agoremove dependency from LDAP_FILT_MAXSIZ (and handle arbitrary size filters)
Pierangelo Masarati [Fri, 9 Aug 2002 13:51:35 +0000 (13:51 +0000)]
remove dependency from LDAP_FILT_MAXSIZ (and handle arbitrary size filters)

22 years agoremove warnings
Pierangelo Masarati [Fri, 9 Aug 2002 13:50:29 +0000 (13:50 +0000)]
remove warnings

22 years agoITS#2015 give correct index key back to presence_candidates
Howard Chu [Thu, 8 Aug 2002 17:27:50 +0000 (17:27 +0000)]
ITS#2015 give correct index key back to presence_candidates

22 years agoRemove reference to getfilter(3)
Kurt Zeilenga [Thu, 8 Aug 2002 03:03:48 +0000 (03:03 +0000)]
Remove reference to getfilter(3)

22 years agoZap LDAPv2-only stuff
Kurt Zeilenga [Thu, 8 Aug 2002 03:01:14 +0000 (03:01 +0000)]
Zap LDAPv2-only stuff

22 years agoFix saslregex init bug
Kurt Zeilenga [Wed, 7 Aug 2002 19:17:22 +0000 (19:17 +0000)]
Fix saslregex init bug

22 years agoAdd simple CN v cn test case for ITS#1997
Kurt Zeilenga [Wed, 7 Aug 2002 19:12:59 +0000 (19:12 +0000)]
Add simple CN v cn test case for ITS#1997

22 years agoPlug config leaks
Howard Chu [Wed, 7 Aug 2002 08:43:52 +0000 (08:43 +0000)]
Plug config leaks

22 years agoFix cargv leak in recursive read_config()
Howard Chu [Wed, 7 Aug 2002 08:22:43 +0000 (08:22 +0000)]
Fix cargv leak in recursive read_config()

22 years agoMove large string comment to just above UTF8StringValidate().
Kurt Zeilenga [Wed, 7 Aug 2002 08:19:11 +0000 (08:19 +0000)]
Move large string comment to just above UTF8StringValidate().

22 years agoRevert previous commit
Howard Chu [Wed, 7 Aug 2002 06:37:11 +0000 (06:37 +0000)]
Revert previous commit

22 years agoIn backend_operational don't add subschemaSubentry unless it was
Howard Chu [Wed, 7 Aug 2002 05:31:03 +0000 (05:31 +0000)]
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.

22 years agoDon't strdup conn->authz into op, just reference directly. (Conn cannot
Howard Chu [Wed, 7 Aug 2002 05:19:55 +0000 (05:19 +0000)]
Don't strdup conn->authz into op, just reference directly. (Conn cannot
be freed until after all associated ops are freed.)

22 years agoFix typo
Howard Chu [Wed, 7 Aug 2002 03:12:47 +0000 (03:12 +0000)]
Fix typo

22 years agoITS#1958 from Andrew Findlay with minor adjustments
Howard Chu [Wed, 7 Aug 2002 03:00:00 +0000 (03:00 +0000)]
ITS#1958 from Andrew Findlay with minor adjustments

22 years agoEliminate an unnecessary malloc/free
Howard Chu [Wed, 7 Aug 2002 00:47:57 +0000 (00:47 +0000)]
Eliminate an unnecessary malloc/free

22 years agoITS#2010: use snprintf instead of strcpy to prevent buffer overflow
Kurt Zeilenga [Tue, 6 Aug 2002 19:31:00 +0000 (19:31 +0000)]
ITS#2010: use snprintf instead of strcpy to prevent buffer overflow

22 years agoother->invalid
Kurt Zeilenga [Tue, 6 Aug 2002 05:38:49 +0000 (05:38 +0000)]
other->invalid

22 years agoFor IA5, printable, telephone:
Kurt Zeilenga [Tue, 6 Aug 2002 05:35:59 +0000 (05:35 +0000)]
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).

22 years agoAdd a summary to strings comment
Kurt Zeilenga [Tue, 6 Aug 2002 04:25:54 +0000 (04:25 +0000)]
Add a summary to strings comment

22 years agoUpdate string commment with examples.
Kurt Zeilenga [Tue, 6 Aug 2002 04:03:13 +0000 (04:03 +0000)]
Update string commment with examples.

22 years agoAdd start of discussion of strings in LDAP/X.500 and OpenLDAP.
Kurt Zeilenga [Tue, 6 Aug 2002 03:52:02 +0000 (03:52 +0000)]
Add start of discussion of strings in LDAP/X.500 and OpenLDAP.

22 years agoFix nameAndOptionalUUID normalization,
Kurt Zeilenga [Tue, 6 Aug 2002 03:18:02 +0000 (03:18 +0000)]
Fix nameAndOptionalUUID normalization,
now uses bitStringNormalize().

22 years agoRemove lint
Kurt Zeilenga [Tue, 6 Aug 2002 03:08:12 +0000 (03:08 +0000)]
Remove lint

22 years agoAdd #include "lutil.h" for lutil_str* functions
Howard Chu [Tue, 6 Aug 2002 02:36:34 +0000 (02:36 +0000)]
Add #include "lutil.h" for lutil_str* functions

22 years agoITS#1998 ber_mem2bv should accept 0-length calls, just like ber_strdup.
Howard Chu [Tue, 6 Aug 2002 02:35:51 +0000 (02:35 +0000)]
ITS#1998 ber_mem2bv should accept 0-length calls, just like ber_strdup.

22 years agoITS#1998 UTF8StringNormalize should accept all-space vals
Howard Chu [Tue, 6 Aug 2002 02:35:24 +0000 (02:35 +0000)]
ITS#1998 UTF8StringNormalize should accept all-space vals

22 years agoMisc clean up of last commit.
Kurt Zeilenga [Mon, 5 Aug 2002 23:40:08 +0000 (23:40 +0000)]
Misc clean up of last commit.
Still need to fix my devbox so I can test this....

22 years agoRework saslRegex code (not yet tested)
Kurt Zeilenga [Mon, 5 Aug 2002 23:16:28 +0000 (23:16 +0000)]
Rework saslRegex code (not yet tested)

22 years agoMinor updates
Kurt Zeilenga [Mon, 5 Aug 2002 20:05:25 +0000 (20:05 +0000)]
Minor updates

22 years agoSet O_EXCL
Kurt Zeilenga [Mon, 5 Aug 2002 19:49:27 +0000 (19:49 +0000)]
Set O_EXCL

22 years agoFix LDIF LF / CRLF handling.
Kurt Zeilenga [Mon, 5 Aug 2002 19:48:50 +0000 (19:48 +0000)]
Fix LDIF LF / CRLF handling.
Patch suggested by Matthew Backes <lucca@csun.edu>

22 years agoPrevent overflow in .rej creation (ITS#2007)
Kurt Zeilenga [Mon, 5 Aug 2002 19:44:24 +0000 (19:44 +0000)]
Prevent overflow in .rej creation (ITS#2007)

22 years agoSet O_EXCL (ITS#2009)
Kurt Zeilenga [Mon, 5 Aug 2002 19:43:01 +0000 (19:43 +0000)]
Set O_EXCL (ITS#2009)

22 years agoFix lutil_str*() warnings
Kurt Zeilenga [Mon, 5 Aug 2002 17:56:13 +0000 (17:56 +0000)]
Fix lutil_str*() warnings

22 years agoForced commit:
Kurt Zeilenga [Mon, 5 Aug 2002 17:54:35 +0000 (17:54 +0000)]
Forced commit:
The log entries for the previous two commits were swapped by mistake.

22 years agoPatch: add OpenLDAPaci #public# access (ITS#2005)
Kurt Zeilenga [Mon, 5 Aug 2002 17:53:39 +0000 (17:53 +0000)]
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.

22 years agoPatch: ACL #access-id#<invalid-DN> granted access to everyone (ITS#2006)
Kurt Zeilenga [Mon, 5 Aug 2002 17:52:16 +0000 (17:52 +0000)]
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.

22 years agoITS#1956, bvalp declaration
Howard Chu [Sat, 3 Aug 2002 09:15:17 +0000 (09:15 +0000)]
ITS#1956, bvalp declaration

22 years agoFix ITS#1994, Windows heap consistency
Howard Chu [Sat, 3 Aug 2002 02:57:52 +0000 (02:57 +0000)]
Fix ITS#1994, Windows heap consistency

22 years agoneed <lutil.h> for lutil_gentime
Pierangelo Masarati [Fri, 2 Aug 2002 10:24:03 +0000 (10:24 +0000)]
need <lutil.h> for lutil_gentime

22 years agofix previous commit
Pierangelo Masarati [Fri, 2 Aug 2002 10:00:44 +0000 (10:00 +0000)]
fix previous commit

22 years agoAdd note regarding user/system checks and operational attributes.
Kurt Zeilenga [Fri, 2 Aug 2002 00:55:50 +0000 (00:55 +0000)]
Add note regarding user/system checks and operational attributes.

22 years agoRevert previous commit. Fix needs more design.
Howard Chu [Thu, 1 Aug 2002 07:09:11 +0000 (07:09 +0000)]
Revert previous commit. Fix needs more design.

22 years agoITS#1995 return error text when ldap_pvt_tls_check_hostname fails
Howard Chu [Thu, 1 Aug 2002 03:23:29 +0000 (03:23 +0000)]
ITS#1995 return error text when ldap_pvt_tls_check_hostname fails

22 years agoITS#910, ITS#1983 retry partial writes in ber_pvt_sb_do_write
Howard Chu [Thu, 1 Aug 2002 03:03:52 +0000 (03:03 +0000)]
ITS#910, ITS#1983 retry partial writes in ber_pvt_sb_do_write
blind fix, needs testing

22 years agoITS#1951: saslRegexp limits syntax of regular expressions
Kurt Zeilenga [Thu, 1 Aug 2002 01:10:55 +0000 (01:10 +0000)]
ITS#1951: saslRegexp limits syntax of regular expressions
Don't normalize regex.
Also, s/LDAP_OPERATIONS_ERROR/LDAP_OTHER/

22 years agoFix bdb_idl_union of range and list (related to ITS#1969
Howard Chu [Wed, 31 Jul 2002 23:43:56 +0000 (23:43 +0000)]
Fix bdb_idl_union of range and list (related to ITS#1969

22 years agooperationsError != Internal Error
Kurt Zeilenga [Wed, 31 Jul 2002 22:49:02 +0000 (22:49 +0000)]
operationsError != Internal Error
hence, s/LDAP_OPERATIONS_ERROR/LDAP_OTHER/

22 years agoAdd member filter components to groupOfName assertions
Kurt Zeilenga [Tue, 30 Jul 2002 04:14:58 +0000 (04:14 +0000)]
Add member filter components to groupOfName assertions

22 years agoclean up curly matching
Kurt Zeilenga [Sun, 28 Jul 2002 07:37:46 +0000 (07:37 +0000)]
clean up curly matching

22 years agoFix for:
Kurt Zeilenga [Sun, 28 Jul 2002 07:27:55 +0000 (07:27 +0000)]
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>.

22 years agoFix up restart code for EINTR
Kurt Zeilenga [Sun, 28 Jul 2002 05:30:39 +0000 (05:30 +0000)]
Fix up restart code for EINTR

22 years agoFix pkiUser
Kurt Zeilenga [Sat, 27 Jul 2002 10:25:42 +0000 (10:25 +0000)]
Fix pkiUser

22 years agoITS#1965: use snprintf
Kurt Zeilenga [Sat, 27 Jul 2002 07:39:50 +0000 (07:39 +0000)]
ITS#1965: use snprintf

22 years agoITS#1985 fix: blind commit
Kurt Zeilenga [Sat, 27 Jul 2002 07:37:04 +0000 (07:37 +0000)]
ITS#1985 fix: blind commit

22 years agoImprove schema error messages
Kurt Zeilenga [Sat, 27 Jul 2002 06:08:51 +0000 (06:08 +0000)]
Improve schema error messages

22 years agoIf HAVE_EBCDIC, translate dbname from ASCII to EBCDIC in ldbm_open.
Howard Chu [Sat, 27 Jul 2002 04:43:48 +0000 (04:43 +0000)]
If HAVE_EBCDIC, translate dbname from ASCII to EBCDIC in ldbm_open.

22 years agotest progs need -llutil
Howard Chu [Sat, 27 Jul 2002 03:34:23 +0000 (03:34 +0000)]
test progs need -llutil

22 years agotest programs need -llutil
Howard Chu [Sat, 27 Jul 2002 03:20:47 +0000 (03:20 +0000)]
test programs need -llutil

22 years agotest programs need -llutil
Howard Chu [Sat, 27 Jul 2002 03:06:15 +0000 (03:06 +0000)]
test programs need -llutil

22 years agoFix segfault from ITS#1960 hacks
Howard Chu [Sat, 27 Jul 2002 02:19:44 +0000 (02:19 +0000)]
Fix segfault from ITS#1960 hacks

22 years agoUse lutil_gentime
Howard Chu [Sat, 27 Jul 2002 02:10:43 +0000 (02:10 +0000)]
Use lutil_gentime