]> git.sur5r.net Git - openldap/log
openldap
22 years agoAdded thread-pool getkey/setkey functions
Howard Chu [Sat, 24 Aug 2002 05:39:43 +0000 (05:39 +0000)]
Added thread-pool getkey/setkey functions

22 years agoZap
Kurt Zeilenga [Sat, 24 Aug 2002 00:55:56 +0000 (00:55 +0000)]
Zap

22 years agouse ldap_charray_*() instead of charray_*()
Kurt Zeilenga [Sat, 24 Aug 2002 00:55:24 +0000 (00:55 +0000)]
use ldap_charray_*() instead of charray_*()

22 years agouse ldap_charray_free() instead of slapd's charray_free()
Kurt Zeilenga [Sat, 24 Aug 2002 00:40:25 +0000 (00:40 +0000)]
use ldap_charray_free() instead of slapd's charray_free()

22 years agoNT port fixes
Kurt Zeilenga [Sat, 24 Aug 2002 00:37:59 +0000 (00:37 +0000)]
NT port fixes

22 years agoFix typo in previous commit. (Benign, code was #if'd out anyway.)
Howard Chu [Fri, 23 Aug 2002 22:29:08 +0000 (22:29 +0000)]
Fix typo in previous commit. (Benign, code was #if'd out anyway.)

22 years agoFinal run of changes to back-sql; IBM db2 support has been tested.
Pierangelo Masarati [Fri, 23 Aug 2002 08:54:08 +0000 (08:54 +0000)]
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 ?)

22 years agofixed bug in reading size/time limits without style, in the form 'size=number', ...
Pierangelo Masarati [Fri, 23 Aug 2002 08:50:34 +0000 (08:50 +0000)]
fixed bug in reading size/time limits without style, in the form 'size=number', 'time=number'

22 years agoadded attr_merge/value_add functions that dela with single attribute; bervals for...
Pierangelo Masarati [Fri, 23 Aug 2002 08:49:19 +0000 (08:49 +0000)]
added attr_merge/value_add functions that dela with single attribute; bervals for '*', '+' and '1.1' made available

22 years agoadded assertions to catch helper function misuse
Pierangelo Masarati [Fri, 23 Aug 2002 08:46:45 +0000 (08:46 +0000)]
added assertions to catch helper function misuse

22 years agoadd upper/lower funcs that also compute the length of the string (not used yet)
Pierangelo Masarati [Fri, 23 Aug 2002 08:45:17 +0000 (08:45 +0000)]
add upper/lower funcs that also compute the length of the string (not used yet)

22 years agoFix indexing bug in splitting indirect blocks
Howard Chu [Fri, 23 Aug 2002 03:07:33 +0000 (03:07 +0000)]
Fix indexing bug in splitting indirect blocks

22 years agoFix errors in replica directive
Howard Chu [Thu, 22 Aug 2002 20:32:09 +0000 (20:32 +0000)]
Fix errors in replica directive

22 years agoinclude actual ucdata.h, not the symlink. liblutil/passwd.c needs this
Howard Chu [Thu, 22 Aug 2002 11:44:27 +0000 (11:44 +0000)]
include actual ucdata.h, not the symlink. liblutil/passwd.c needs this
header file, and we now build liblutil before liblunicode.

22 years agoOS/390 EBCDIC support
Howard Chu [Thu, 22 Aug 2002 04:39:59 +0000 (04:39 +0000)]
OS/390 EBCDIC support

22 years agoAdded support for BDB 4.1.17
Howard Chu [Thu, 22 Aug 2002 04:00:06 +0000 (04:00 +0000)]
Added support for BDB 4.1.17

22 years agoFix abstract schema check
Kurt Zeilenga [Thu, 22 Aug 2002 02:27:42 +0000 (02:27 +0000)]
Fix abstract schema check

22 years agoAdd dumpasn1 logging to TODO.
Kurt Zeilenga [Wed, 21 Aug 2002 18:45:08 +0000 (18:45 +0000)]
Add dumpasn1 logging to TODO.

22 years agofix previous commit
Pierangelo Masarati [Wed, 21 Aug 2002 18:11:30 +0000 (18:11 +0000)]
fix previous commit

22 years agoSlapadd is changed to include Operational Attributes (entryUUID, entryCSN,
Jong Hyuk Choi [Wed, 21 Aug 2002 00:11:32 +0000 (00:11 +0000)]
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.

22 years agoITS#2004 AD lang bug fix
Kurt Zeilenga [Tue, 20 Aug 2002 19:08:18 +0000 (19:08 +0000)]
ITS#2004 AD lang bug fix

22 years agoUse search callbacks in slap_sasl_checkpass and slap_auxprop_lookup,
Howard Chu [Tue, 20 Aug 2002 05:32:54 +0000 (05:32 +0000)]
Use search callbacks in slap_sasl_checkpass and slap_auxprop_lookup,
use ACL_AUTH for acl checks.

22 years agoQuick check of LOCK_ID() return. Likely should retry... but not forever.
Kurt Zeilenga [Tue, 20 Aug 2002 03:10:08 +0000 (03:10 +0000)]
Quick check of LOCK_ID() return.  Likely should retry... but not forever.

22 years agoMore places where LOCK_ID() calls need to be checked.
Kurt Zeilenga [Tue, 20 Aug 2002 02:57:06 +0000 (02:57 +0000)]
More places where LOCK_ID() calls need to be checked.

22 years agofix typo in last commit
Kurt Zeilenga [Mon, 19 Aug 2002 07:08:59 +0000 (07:08 +0000)]
fix typo in last commit

22 years agoNormalized form should be pretty.
Kurt Zeilenga [Mon, 19 Aug 2002 07:07:25 +0000 (07:07 +0000)]
Normalized form should be pretty.

22 years agomake dc const
Kurt Zeilenga [Sat, 17 Aug 2002 19:59:35 +0000 (19:59 +0000)]
make dc const

22 years agoUpdate dn2domain() to use str2dn() instead of explode_dn()
Kurt Zeilenga [Sat, 17 Aug 2002 19:42:59 +0000 (19:42 +0000)]
Update dn2domain() to use str2dn() instead of explode_dn()

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