Kurt Zeilenga [Sun, 4 Jul 1999 18:46:24 +0000 (18:46 +0000)]
HEADS UP: connections are forced to "anonymous" status upon receiving
of a bind request and, upon failure, are left "anonymous."
Rework ACL code to hide access testing within macros to facilate additions
and eventual redesign.
Addition of #ifdef SLAPD_ACLAUTH to conditional include EXPERIMENTAL
"auth" access controls. Adds ACL_AUTH "auth" access level (above none,
below "compare"). bind requires anonymous access at this level or above access
to "entry"/"userPassword"/"krbName". This allows administrators to restrict
which entries can be bound to. (This will likely become default behavior
after testing has completed).
Kurt Zeilenga [Fri, 2 Jul 1999 19:48:07 +0000 (19:48 +0000)]
More bind changes to support SASL/DIGEST.
Added configuration support for "digest-realm <realm>" configure directive.
Added connection state and bind_in_progress fields to cn=monitor connection
attribute.
Removed numerous memory leaks detected by Mark Meredith.
Make sure the token_val argument to get_token is always initialized
to something, either newly allocated memory or NULL.
Kurt Zeilenga [Thu, 1 Jul 1999 21:20:45 +0000 (21:20 +0000)]
Add macros to support testing of error categories to ldap.h
Modify ldap_result to assert returned error is not an one reserved
for API use.
Modify frontend LDAP operation routines to return an error code.
The returned value will be used to determine if an unsolicited notification
should be sent to the client.
Need to review returned error codes. Namely some LDAP_PROTOCOL_ERROR
will like need to be changed (as they will cause unsolicited notifications).
Kurt Zeilenga [Tue, 29 Jun 1999 22:24:53 +0000 (22:24 +0000)]
Modify lutil_passwd to accept a third argument char** methods to
specific which methods may be used. This will facilate development
of a slapd config directive "passwordMethod ..." to specify which
methods should be allowed.
Kurt Zeilenga [Tue, 29 Jun 1999 04:52:55 +0000 (04:52 +0000)]
expose oc_check_operational from schema.c
Use everywhere.
Apply search ACLs to operational attributes.
Only provide operational attributes when explicitly requested.
Kurt Zeilenga [Sat, 26 Jun 1999 20:52:59 +0000 (20:52 +0000)]
Added support for "userPassword: {UNIX}uid". getpwnam("uid") is
used to fetch the pw_passwd which is than passwd to crypt().
getspnam() is used instead of getpwnam() when available.
Added configration detection of pw_passwd, shadow.h, getpwnam()
and getspnam().
Bastiaan Bakker [Wed, 23 Jun 1999 12:31:35 +0000 (12:31 +0000)]
Added connection initialisation and destruction notification. Now backends can register functions in backend_info.bi_connection_init and backend_info.bi_connection_destroy that will be called when a connection is initialized or destroyed.
Kurt Zeilenga [Fri, 18 Jun 1999 23:53:05 +0000 (23:53 +0000)]
ber_int_t, ber_tag_t, ber_socket_t, ber_len_t
added lber_types.h.nt, lber_types.h.in
removal of NULLxxx internal macros (in favor of NULL).
ch_free added to slapd,slurpd/ch_malloc.c
#define free ch_free (should be removed after s/free/ch_free/g) in proto-slap.h
ch_malloc and friends use ber_memalloc and friends
Some sample routines for implementing matching rules.
Some matching rule definitions modified to use said routines.
Default appropriately all other matching rules.
Fix handling of SYNTAX_CES by making use of some matching rules in
X.520 that were not inherited by RFC2252.
Fill in properly the matching rule oids when converting an attribute
type definition in the old format.
Defined 3 new matching rules taken from X.520 that were necessary to
do properly SYNTAX_CES. Documented all other matching rules from
X.520 that we do not use.