Julio Sánchez Fernández
d26a527996
Much as we would like to, we have to live for the time being with
...
broken objectclass and attributetype definitions where the OID is
missing. The implementation of OIDmacros was making this impossible.
This change tries to restore the old behaviour, while preserving the
new feature. Note that part of the restored behaviour lets OIDs that
are not in the numericoid format get through. We may lose this, but
then we need to fix some of the sample provided schemas, notably
pilot.schema.
1999-09-22 18:32:48 +00:00
Julio Sánchez Fernández
9f4cbeb916
Add JPEG syntax to those known.
1999-09-22 18:15:22 +00:00
Ben Collins
7a0523b53d
* configure.in: Added better check for libwrap (the old way failed when
...
libwrap was a dynamic library). Added -lwrap to new subst var WRAP_LIBS
so we have more control over where it get's linked (dynamic libwrap
causes problems when we link to programs that don't define certains
globals that libwrap expects).
* build/top.mk: Added placeholder for WRAP_LIBS subst
* servers/slapd/Makefile.in: Added $(WRAP_LIBS) to the slapd and sslapd
link command line specifically so it doesn't get thrown in with the rest
of the LIBS.
* configure: rebuilt
1999-09-22 15:00:51 +00:00
Howard Chu
5757ffc5d3
Fix typo in previous commit
1999-09-22 06:41:12 +00:00
Howard Chu
c40583a2f1
Fix memory leak if duplicate attr name in at_insert
1999-09-22 05:18:15 +00:00
Kurt Zeilenga
b78e463065
jpegPhoto: correct syntax and add reference to inetorgperson draft
1999-09-22 03:08:14 +00:00
Kurt Zeilenga
8d295978e5
Add inetOrgPerson from Smith's I-D 3. Update jpegPhoto with DESC.
1999-09-22 03:06:12 +00:00
Kurt Zeilenga
6b0ccd4a5d
Add experimental detection of BerkeleyDB2 DB_THREAD.
...
If not available, LDBM uses big mutex and BDB2 is disabled.
Should add BerkeleyDB version detection...
1999-09-20 20:55:54 +00:00
Howard Chu
b070303a6b
Fix previous dn checkin
1999-09-19 01:29:45 +00:00
Howard Chu
10ad231cac
Undo previous commit
1999-09-19 01:04:38 +00:00
Howard Chu
f991ef04e6
Added mixed-case as well as up-cased DN argument. The behavior of back-bdb2
...
and back-ldbm are preserved, they only use the up-cased DNs. back-passwd
uses the mixed-case DN. All others are using mixed-case DN, may need more
fixing.
1999-09-18 23:40:03 +00:00
Julio Sánchez Fernández
0ab1eeae39
Let oc_check_allowed grok things like userCertificate;binary
...
oc_check_required should be fixed too.
1999-09-17 15:51:44 +00:00
Julio Sánchez Fernández
c7a7829c00
Let at_find find the AttributeType that matches a given AttributeDescription.
...
Useful to deal with things like userCertificate;binary.
1999-09-17 15:48:23 +00:00
Julio Sánchez Fernández
654fefc74a
Add missing paren.
1999-09-17 15:38:39 +00:00
Kurt Zeilenga
f130d6c47f
changes based upon draft-lachman-laser-ldap-mail-routing-00.txt
1999-09-16 02:52:28 +00:00
Kurt Zeilenga
ccfba5f2c0
Misc. cleanup
1999-09-16 02:31:29 +00:00
Kurt Zeilenga
cb99b10783
Added lachman mail at/oc to misc.schema.
1999-09-16 02:31:03 +00:00
Kurt Zeilenga
202dbd1b1f
Use ptrdiff_t for pointer offset.
1999-09-15 03:26:23 +00:00
Kurt Zeilenga
fc10815fc8
config should return error if backend or database initialization fail.
1999-09-13 18:47:05 +00:00
Hallvard Furuseth
04a5418db0
Add missing ')' when HAVE_TCPD
1999-09-11 06:17:37 +00:00
Kurt Zeilenga
9d6c0aa00a
Allow replace with no values
...
dn: cn=foo
changetype: modify
replace: bar
-
1999-09-10 01:55:46 +00:00
Kurt Zeilenga
e642a1b9cd
Add OpenLDAP RCSid
1999-09-08 22:52:19 +00:00
Kurt Zeilenga
403f4479bc
Add OpenLDAP RCSid to *.[ch] in clients, libraries, and servers.
...
Replace old Id as needed (back-tcl).
Leave updating of contribWare to contributors (for now).
1999-09-08 19:06:24 +00:00
Kurt Zeilenga
1cfeeaade0
db2 flags should be u_int32_t, not int.
1999-09-08 17:28:02 +00:00
Hallvard Furuseth
f3880e5633
Remove lint
1999-09-06 04:42:20 +00:00
Kurt Zeilenga
b660f54bb4
Further trim_refs_url fixes from Hallvard. Need additional testing.
1999-09-05 22:32:01 +00:00
Kurt Zeilenga
e25287a90f
Fix = vs == bug
1999-09-05 22:13:22 +00:00
Hallvard Furuseth
07b9eb68a3
Kill //-style comments
1999-09-05 20:53:13 +00:00
Hallvard Furuseth
38cbda07f3
Handle unknown syntaxes as binary
1999-09-04 22:19:09 +00:00
Hallvard Furuseth
19d82f676d
Accept unknown object classes
1999-09-04 21:41:27 +00:00
Hallvard Furuseth
4a5e2febed
Some constification & lint removal
1999-09-04 21:15:49 +00:00
Hallvard Furuseth
203f5b058f
Change -d option to not detach even with -d 0 or compiled with --disable-debug.
1999-09-04 20:24:40 +00:00
Kurt Zeilenga
2e86c0516b
Remove #if 0 used to hide dn subtree index problem. Fixed
...
by Hallvard's IDL changes!
1999-09-04 01:19:58 +00:00
Hallvard Furuseth
1cde481298
Move `#include "ldap_defaults.h"' into slap.h, which #ifdefs on it.
1999-09-03 23:10:05 +00:00
Hallvard Furuseth
33cc7d4cf1
Introduce and use LDAP_GCCATTR() = __attributes__() in gcc
1999-09-03 21:06:33 +00:00
Hallvard Furuseth
dc6754c781
Remove incorrect use of <matched> entry
1999-09-03 20:25:58 +00:00
Hallvard Furuseth
2363640b33
Copy back-ldbm patches 1.37 (idl_insert_key returncodes) & 1.38 (SAFEMEMCPY bug)
1999-09-03 11:17:21 +00:00
Hallvard Furuseth
5b6c6b5855
Fix SAFEMEMCPY bug from revision 1.32 in idl_insert()
1999-09-03 11:01:18 +00:00
Kurt Zeilenga
5bb08cba85
Backout rev 1.37 change which was committed by mistake.
1999-09-03 05:31:43 +00:00
Hallvard Furuseth
5c9f3b6755
Plug memory leaks when modrdn failure. Fix Typo in debug message.
1999-09-03 05:12:24 +00:00
Howard Chu
0963a783b0
Fix extraneous call to ldap_msgfree.
1999-09-02 12:08:43 +00:00
Hallvard Furuseth
76a94de251
Fix: obey be->be_readonly. Also add & obey global_readonly.
1999-09-02 10:39:51 +00:00
Hallvard Furuseth
7cb866642d
Fix Debug printf format
1999-09-02 08:11:54 +00:00
Hallvard Furuseth
c09a2c63e7
Cleanup:
...
Fix printf formats, remove unused variables, add missing prototypes in slapd,
add static/const, add some return types or change to void return type.
1999-09-02 08:05:17 +00:00
Hallvard Furuseth
1886192447
Fix str2lower() -> ldap_pvt_str2lower()
1999-09-02 07:43:31 +00:00
Hallvard Furuseth
06c3e9a0d2
Fix ber_pvt_sb_udp_set_dst() argument
1999-09-02 07:41:58 +00:00
Hallvard Furuseth
b290faf0db
Remove unused vars/function
1999-09-02 07:36:17 +00:00
Hallvard Furuseth
cc2278b36a
Axe <varargs.h> support: Don't use LDAP_P() on varargs prototype.
...
Also fix debug_printf macro when !LDAP_DEBUG: It did not take arguments.
1999-09-02 06:19:21 +00:00
Hallvard Furuseth
85e79b1348
Axe <varargs.h> support. Assume STDC C translator is available
...
to build OpenLDAP.
1999-09-02 06:14:23 +00:00
Kurt Zeilenga
41e57c041f
Add OpenLDAP RCS id
1999-09-02 00:52:43 +00:00
Kurt Zeilenga
6b80f345a4
Fix idl_insert_key() return codes.
1999-09-01 18:30:13 +00:00
Kurt Zeilenga
f252bde681
if/else clause was reversed and attr->values used where values
...
should have been.
1999-09-01 07:29:07 +00:00
Hallvard Furuseth
8bbaca258f
Fix uninitialized variable
1999-09-01 06:54:33 +00:00
Kurt Zeilenga
5b8d286d40
Fix idle timeout code.
1999-09-01 06:37:46 +00:00
Hallvard Furuseth
7b88ccd954
Fix uninitialized variables
1999-09-01 05:44:16 +00:00
Hallvard Furuseth
aa516d3e80
include ac/string.h
1999-09-01 05:28:52 +00:00
Kurt Zeilenga
ac8b5468aa
Clean up soctpair for NT. Add USE_PAIR to allow pair(2) use.
1999-08-31 16:47:42 +00:00
Kurt Zeilenga
b509dd4d8c
sockpair cleanup including:
...
provide prototype in lutil.h
use LBER_SOCKET_T instead of int in prototype. (didn't use
ber_socket_t so all of lber.h wouldn't have be dragged in)
rename signal handlers, use RETSIGTYPE, and make SIGHUP wake
rename fd to sd to reflect descriptor must be usable as a socket.
renamed sel_exit_fds to wake_sds to reflect current use
improve readability of sockpeer.c including removing obtuse goto.
1999-08-31 05:18:06 +00:00
Howard Chu
0319dcad17
Use lutil_pair(), WAKE_LISTENER now uses this socket.
1999-08-31 03:26:35 +00:00
Kurt Zeilenga
85a3baa8ff
Shouldn't need to restall signal handler outside of handler.
1999-08-31 01:44:33 +00:00
Kurt Zeilenga
188ad48057
do_admin should reinstall handler on called signal number and
...
not assume LDAP_SIGUSR2
1999-08-31 01:41:52 +00:00
Hallvard Furuseth
6632e41ee8
Export ldap_pvt_<find_wildcard,filter_value_unescape>() from libldap.
...
Use them in slapd/str2filter.c.
1999-08-31 00:44:49 +00:00
Hallvard Furuseth
10bbb7c9ff
Typo in debug message
1999-08-31 00:40:07 +00:00
Gary Williams
6db0228171
validate object class before checking required and allowed
1999-08-30 14:19:53 +00:00
Kurt Zeilenga
9826f704b5
Back out to simple sock_errno sock_errstr macros and use WSAGetErrorString
...
instead of WSAGetLastErrorString to preserve errno like semantics.
1999-08-29 23:33:35 +00:00
Howard Chu
3925d53ccd
Replaced sock_errno()/sock_errstr() macros with SOCK_ERR(num,str)
1999-08-29 23:09:27 +00:00
Kurt Zeilenga
32aa582abe
Make sock_errstr expect an error value instead of relying on current
...
errno.
1999-08-29 20:32:34 +00:00
Kurt Zeilenga
580447be5b
Fix Debug() with too few arguments.
1999-08-29 20:13:33 +00:00
Howard Chu
74543e6c68
Defined tcp_read and tcp_write. Use them in daemon.c
1999-08-29 04:01:16 +00:00
Howard Chu
193d30bf84
In previous commit - change strerror() to STRERROR().
...
Use strerror() if available.
1999-08-29 02:59:29 +00:00
Howard Chu
801bac51c9
per Hallvard's advice: fixed definition of sock_errstr().
1999-08-29 02:54:58 +00:00
Howard Chu
d75975edf8
Use sock_errno() and sock_errstr() in socket debug messages.
...
Use a UDP socket connected to itself to allow signals to terminate the
select() in slapd_daemon_task().
1999-08-29 01:51:45 +00:00
Howard Chu
a60406860f
Use strerror()
1999-08-29 01:50:12 +00:00
Hallvard Furuseth
ac09c64f5c
Fix fprintf format args
1999-08-29 00:26:44 +00:00
Kurt Zeilenga
0afcadc4dd
Remove misplaced asserts. connection_resched changes connection state
...
to UNUSED without holding connections mutex. It's not safe for
connection_init to check connection state until after acquires the
c_mutex.
1999-08-27 19:31:42 +00:00
Kurt Zeilenga
9bf50242c3
Plug ber leakage:
...
result was leaking ber's in some error cases. ber_flush now called
with no freeing so that caller of send_ldap_ber() can free its own ber.
c->c_currentber was also being leaked if connection was destory
current when a PDU input was outstanding.
Fixed ber_flush to free ber upon write only to file.
1999-08-27 05:45:53 +00:00
Hallvard Furuseth
2330f1466d
Plug memory leaks (free output from ldif_parse_line)
1999-08-27 03:21:43 +00:00
Kurt Zeilenga
03ea068193
Disable removal of subtree indices upon delete. This allows
...
modrdn to run, but masks the underlying subtree index bug (which
I haven't found yet).
Apply modrdn/dn2id changes to BDB2.
1999-08-26 22:43:08 +00:00
Kurt Zeilenga
4c19272651
Assert ID != NOID when fetching from the datastore.
...
Add additional abandon point to modrdn.
test005-modrdn still shows error. Likely in dn2id, index, or idl codes.
1999-08-26 21:00:22 +00:00
Kurt Zeilenga
60033b38ac
Use NULL pointer to indicate values need not be freed instead of
...
relying on developer selecting the right goto label.
1999-08-26 19:12:15 +00:00
Kurt Zeilenga
c71fcf58fa
Remove use of uninitialized variable.
1999-08-26 19:10:28 +00:00
Kurt Zeilenga
bc1186bfb1
Fix "database fubar" crash
1999-08-26 19:09:40 +00:00
Kurt Zeilenga
a40b1f3126
Backout delete before add rdn index change.
1999-08-26 01:48:47 +00:00
Kurt Zeilenga
e455a7d486
Defer updating dn2id until after rdn checks... (test005 still broken)
1999-08-26 01:33:57 +00:00
Kurt Zeilenga
ed3df0a729
Delete old rdn before adding new rdn.
1999-08-26 01:07:24 +00:00
Kurt Zeilenga
68744ced8d
fix dn2id delete bug... breaks modrdn.
1999-08-26 00:51:27 +00:00
Kurt Zeilenga
406f33eb12
This fixes dn2id delete bug... but breaks modrdn.
1999-08-26 00:48:24 +00:00
Kurt Zeilenga
5c63fd55b5
Implement ldap_dn_normalize and friends. Should be used by clients
...
to validate input dn's BEFORE sending dn's to server.
Also fixed getfilter to use REG_EXTENDED|REG_NOSUB. (and fixed one
case where REG_BASIC was still used).
s/strdup/LDAP_STRDUP/
Added ldap_pvt_str2lower/upper
1999-08-25 06:44:08 +00:00
Kurt Zeilenga
46802eee03
Add REG_NOSUB as we only need matched results.
1999-08-24 04:33:34 +00:00
Kurt Zeilenga
2d2719123d
Rename filter entry's strcpy_special() to strcpy_regex() to better
...
reflect its purpose. Modify switch to support REG_EXTENDED expressions.
Use REG_EXTENDED instead of REG_BASIC everywhere.
Modify <ac/regex.h> to support <gnuregex.h> for testing purposes.
Requires: env CPPFLAGS="-DHAVE_GNUREGEX_H=1" LIBS=-lgnuregex ./configure
1999-08-24 01:13:30 +00:00
Hallvard Furuseth
85c0f926fe
Plug minor memory leak
1999-08-22 03:36:19 +00:00
Hallvard Furuseth
d08a8cbbd6
Initialize lineno
1999-08-22 03:32:13 +00:00
Hallvard Furuseth
1a16766b3c
Always compile acl_dn_pat when it is set, otherwise acl.c breaks
1999-08-22 03:30:45 +00:00
Kurt Zeilenga
387186fc33
Stop mergers if dup returns NULL.
1999-08-20 22:59:00 +00:00
Kurt Zeilenga
87675a953d
ACIs from Mark Valence <kurash@sassafras.com> (ITS#261)
1999-08-20 22:42:04 +00:00
Kurt Zeilenga
255e36df0b
Backout fetch_one copy change
1999-08-20 22:37:30 +00:00
Kurt Zeilenga
6677c7ad1d
Fix slurpd constification where dependent upon slap.h
1999-08-20 22:24:58 +00:00
Kurt Zeilenga
546262acb8
complete this round of constification
1999-08-20 19:50:11 +00:00
Kurt Zeilenga
8ac21b67a1
more const'ification
1999-08-20 19:29:43 +00:00
Kurt Zeilenga
3f85d6b2ac
const'ification
1999-08-20 19:12:41 +00:00