Mark Valence
463cc5479f
Update some prototype macros to build on NT.
2000-06-19 22:40:42 +00:00
Kurt Zeilenga
3b42f9ce2e
Make that LDAP_NEEDS_PROTOTYPES... might as well use proper English
2000-06-19 22:20:36 +00:00
Kurt Zeilenga
52569170cc
NEEDS_PROTOTYPE fix
2000-06-19 22:17:47 +00:00
Kurt Zeilenga
3532ba04b2
Fix NEEDS_PROTOTYPES
2000-06-19 21:48:10 +00:00
Kurt Zeilenga
ed761bec2f
Remove SCHEMA_NOT_COMPAT #ifdef
2000-06-19 21:30:48 +00:00
Kurt Zeilenga
9ef1a740c2
Round one of LDAP_F() macro changes. In this round we rename
...
macros into our namespace and limit use to headers. A subsequent
round will add macros to separately handle forward declarations
of variables from declaration of function prototypes. The last
round will add additional macros for declaring actual variables and
functions.
2000-06-18 19:48:07 +00:00
Kurt Zeilenga
e393afaeec
Kill LinuxThreads clones
2000-06-17 18:49:25 +00:00
Kurt Zeilenga
12ffb6eeb8
Change cn=schema to cn=subschema to reflect subentry contains
...
subschema information. subschema, monitor, config should be
per-backend subentries.
2000-06-14 01:29:51 +00:00
Kurt Zeilenga
5417fdfea7
Rename ldap_start_tls() to ldap_start_tls_s() for consistency sake.
...
Misc other header changes.
2000-06-13 20:45:30 +00:00
Kurt Zeilenga
ec426532b2
Reworked thread code to better support thread-library specific
...
r/w locks and thread pools. Hide internal structures (using
pthread'ish technics). Place common code in threads.c. Move
no-thread code to thr_stub.c. Move thread pool code to tpool.c.
Removed setconcurrency call from initializer, added 'concurrency'
directive to slapd. Tested code under pthreads, pth, and no-threads.
2000-06-13 02:42:13 +00:00
Kurt Zeilenga
1ef14875db
Thought I fixed these errors previously... oh well.
2000-06-10 23:06:08 +00:00
Kurt Zeilenga
1d841d49d5
Fix LDAP_END_DECL bug, add LDAP_P() to rebind proc prototype, and
...
other minor changes.
2000-06-10 17:31:56 +00:00
Kurt Zeilenga
55dba4395f
Update PF_INET6 and PF_UNIX detection, both default to auto
2000-06-09 23:09:51 +00:00
Kurt Zeilenga
70a7656d7f
Detect getaddrinfo
2000-06-09 17:01:05 +00:00
Kurt Zeilenga
dc1e5a9392
remove IA64 lint
2000-06-09 06:24:10 +00:00
Kurt Zeilenga
e68b429d45
Really disable pthread rw locks
2000-06-08 00:29:32 +00:00
Kurt Zeilenga
e8b360eefd
Disable pthread rwlock use til we sort out pool issues
2000-06-08 00:26:00 +00:00
Kurt Zeilenga
22b8b60e49
Add VLV and SortList Control API and related (and other) I-Ds
2000-06-07 19:39:49 +00:00
Mark Valence
33f4955c07
Add thread pool routines.
2000-06-07 19:21:45 +00:00
Kurt Zeilenga
6ad1c45bd3
Use LDAP_VFREE and friends. Other misc code cleanup.
2000-06-07 05:17:29 +00:00
Kurt Zeilenga
107e99e302
Add Pth specific r/w lock implementation.
2000-06-07 01:34:00 +00:00
Kurt Zeilenga
e5ebc553ac
Rework URI parser to provide true scheme not proto/properties.
...
Plus more pthread rwlock code
2000-06-07 01:09:40 +00:00
Kurt Zeilenga
f192014c1a
Use pthread rwlocks, if available
2000-06-07 00:28:35 +00:00
Kurt Zeilenga
e14261edf2
Additional unifdef'ing
2000-06-06 20:00:14 +00:00
Mark Valence
72bf2552eb
In preparation for thread pools
2000-06-06 19:59:34 +00:00
Kurt Zeilenga
693fb9424a
unifdef -DSLAPD_SCHEMA_NOT_COMPAT -USLAPD_SCHEMA_COMPAT
2000-06-06 19:43:18 +00:00
Kurt Zeilenga
4a1f646682
Move experimental Back-BDB2 to Attic
2000-06-06 01:23:17 +00:00
Kurt Zeilenga
1af849c720
DNSSRV use res_query, not res_search
...
Update configure and depend --enable-dnssrv upon finding res_query
Update back-dnssrv to better handle ManageDSAit control
2000-06-05 23:56:26 +00:00
Kurt Zeilenga
1aa4b07c98
Remove support for DNS DNs (not to be confused with X.500 DN using
...
domainComponents (DC)).
2000-06-05 20:07:02 +00:00
Kurt Zeilenga
c1117666b1
remove old STR_TRANSLATION feature. The use of this feature
...
was only of limited use with LDAPv2 (worked okay if no non-T.61
values existed) but downright dangerous in the face of LDAPv3.
Any translation must be schema aware and the BER isn't.
2000-06-05 19:22:19 +00:00
Kurt Zeilenga
7dc76e7139
move --enable-dns (LDAP_API_FEATURE_X_OPENLDAP_V2_DNS) to Attic
2000-06-05 07:19:09 +00:00
Kurt Zeilenga
ea069cb7c2
New indexer/filter codes (test suite works) with cheats
...
Updated NT Project files (with Cyrus SASL library depend)
2000-06-04 22:59:38 +00:00
Kurt Zeilenga
45c6324a9d
Move ldapd into the Attic, quipu tools remain for now.
2000-06-01 23:00:22 +00:00
Kurt Zeilenga
2e0912622b
ITS#537: lber io rewrite from Gambor Gombas.
...
Copyright 2000 Gábor Gombás. All rights reserved.
This is free software. You may redistribute and use it under the same
terms as OpenLDAP itself.
2000-06-01 20:59:21 +00:00
Kurt Zeilenga
ea67f4f758
Fix up referral commit.
2000-05-31 18:01:59 +00:00
Kurt Zeilenga
a26cef7fc8
LDAPv3 referrals changes by Steve Sonntag @ Novell
2000-05-31 17:34:43 +00:00
Kurt Zeilenga
a584fe9dc0
Move -DSLAPD_SCHEMA_COMPAT to acconfig.h...
2000-05-30 21:36:27 +00:00
Kurt Zeilenga
ea68f474fc
rebuild after removal of dmalloc detection
2000-05-30 20:17:10 +00:00
Kurt Zeilenga
8ff6a39d9f
Mark most of RFC 1823 API as deprecated.
2000-05-29 17:42:49 +00:00
Kurt Zeilenga
64f028a6ab
New schema code is now the default.
...
Use -DSLAPD_SCHEMA_COMPAT to use 1.x compatible schema (deprecated).
2000-05-29 16:39:16 +00:00
Julio Sánchez Fernández
3e3acf87c8
Let the caller decide how liberal the schema parsing routines will be.
...
Most flags do nothing yet.
2000-05-28 22:45:56 +00:00
Kurt Zeilenga
dcee0a76d4
Rework DB_VERSION kludging
2000-05-25 23:14:53 +00:00
Kurt Zeilenga
2a4d69d70e
Define HAVE_BERKELEY_DB not HAVE_BERKELEY_DB2 per new detection.
2000-05-25 23:07:09 +00:00
Kurt Zeilenga
8411a5319a
New Berkeley DB detection
2000-05-25 20:44:07 +00:00
Gary Williams
780d4737af
use HAVE_BERKELEY_DB and check DB_VERSION_MAJOR for differences
2000-05-25 20:41:55 +00:00
Gary Williams
862e624254
Added support for Berkeley DB3. Hidden behind
...
HAVE_BERKELEY_DB3. Configuration support
hopefully coming soon.
2000-05-25 15:21:30 +00:00
Julio Sánchez Fernández
f84c43a43b
Parsing and printing of extensions in schema definitions.
2000-05-21 23:32:39 +00:00
Kurt Zeilenga
9c00cb1b51
before including <pth.h>:
...
#define PTH_SYSCALL_SOFT 1
2000-05-19 20:47:32 +00:00
Kurt Zeilenga
8045b54124
Use getpassphrase() instead of getpass() if available.
2000-05-19 18:41:26 +00:00
Kurt Zeilenga
3c227e10b4
Map getopt symbols to new names to avoid conflicts
2000-05-18 16:13:02 +00:00
Kurt Zeilenga
d408824ce8
SLAPD_SCHEMA_NOT_COMPAT: Disable cn=Monitor & cn=Config
2000-05-15 23:39:27 +00:00
Kurt Zeilenga
49f4a7026d
s/CN=SCHEMA/cn=Schema/
2000-05-15 23:37:16 +00:00
Kurt Zeilenga
e9d0b98a10
Update lber-encode/decode man pages
...
Add ber_get_enum() for symmetry
2000-05-13 23:08:25 +00:00
Kurt Zeilenga
0bb431d3b3
Y2k copyright update
2000-05-13 02:25:54 +00:00
Howard Chu
3dc83998c0
Moved nt_err from liblutil to liblber, renamed WSAGetErrorString to
...
ber_pvt_wsa_err2string.
2000-05-12 21:16:15 +00:00
Howard Chu
605832eaa5
Added support for AIX security database:
...
configure.in: check for AIX security library, set in AUTH_LIBS macro
top.mk: add AUTH_LIBS macro to SECURITY_LIBS
portable.h.in: added HAVE_AIX_SECURITY macro (via autoheader)
passwd.c: use AIX getuserpw in chk_unix. Also fix logic in chk_unix:
getpwnam must always succeed for the given user. It is not a
fatal error if getspnam returns no result for the user: On
systems that support /etc/shadow, its usage is optional. The
same logic applies for AIX, SCO/HP SecureWare, etc.
2000-05-11 10:10:53 +00:00
Howard Chu
65d7521be1
Added LBER_OPT_LOG_PRINT_FILE to redirect the output of ber_error_print.
...
Used mainly on NT since stderr doesn't exist when slapd runs as a service.
2000-05-11 09:39:33 +00:00
Kurt Zeilenga
1dc3e3c408
Add basic and EXPERIMENTAL chroot() support.
2000-05-10 23:30:52 +00:00
Kurt Zeilenga
2c2a54d6d7
Add DNS SRV backend framework (a work in progress).
2000-05-10 18:17:38 +00:00
Howard Chu
f0c4f83ea2
libldap/tls.c: change tls_verify_cb to no longer ignore verification errors.
...
This means a ldaps connection may drop before any LDAP protocol exchange
occurs (due to expired cert, unrecognized CAs, etc.).
Change ldap_pvt_tls_connect to copy any TLS error string to ld_error upon
connection failure, otherwise client just sees "can't contact LDAP server."
slapd/connection.c: add flush/delay when SSL_accept fails, to allow any
TLS alerts we generated to propagate back to the client. (Which will then
be picked up by ldap_pvt_tls_connect on the client...)
2000-05-10 17:07:09 +00:00
Howard Chu
9842b8fa87
Remove MINGW32 declarations of snprintf and vsnprintf, the new mingw32
...
distributions define them now.
2000-05-10 16:12:38 +00:00
Howard Chu
8a3100e636
Remove declaration of strerror_r, it clashes on AIX and we never use it
...
anyway.
2000-05-10 16:11:38 +00:00
Kurt Zeilenga
f224e69558
Add experimental code to check simple bind passwords
...
against Cyrus SASLdb. Like other cleartext mechanisms,
should be protected from eavesdropping.
2000-05-10 04:29:51 +00:00
Kurt Zeilenga
d0555fffe6
Error handling changes including separation of client v. server
...
SASL to LDAP translation. plus comments and other minor changes
2000-05-03 18:59:58 +00:00
Kurt Zeilenga
802ee714e4
Framework for authpasswd. Needs work. Behind #ifdef
2000-04-25 13:28:03 +00:00
Kurt Zeilenga
274bf59441
replace ldap_dnssrv_init() with lower level calls
...
ldap_domain2dn()
ldap_domain2hostlist()
and provide prototype to soon-to-be-implemented
ldap_dn2domain().
ldap_dnssrv_init(), if needed, can easily be implemented
using ldap_create(), ldap_set_option() and the above
commands.
2000-04-25 10:38:03 +00:00
Kurt Zeilenga
c02d7e2cb6
ITS#503: Extend ldap tools to support SASL/TLS
...
Submitted by Gabor Gombas <gombasg@inf.elte.hu>
2000-04-20 09:23:51 +00:00
Kurt Zeilenga
177279176c
Chage DEFAULT_DB_PAGE_SIZE to 4096 and allow external define to
...
override ldbm.h setting.
2000-03-17 20:28:36 +00:00
Kurt Zeilenga
d14c7ad7c2
Depend HAVE_NT_THREADS on _WINNT
2000-03-17 19:35:20 +00:00
Kurt Zeilenga
1aae2ffb46
Remove discrete right macro (not used)
2000-03-17 01:48:44 +00:00
Dmitry Kovalev
f28e0c1967
update Win32 build environment to support back-sql
2000-03-16 19:58:36 +00:00
Kurt Zeilenga
91f292bc00
Delete SLAPD_DISCRETE_ACI
2000-03-16 19:15:21 +00:00
Kurt Zeilenga
6141b1eebe
Delete (again) unneeded discrete-aci flag and regenerate...
2000-03-16 19:14:48 +00:00
Dmitry Kovalev
8dc136ddd6
update Unix build environment to support back-sql
...
2 more steps left: add back-sql directory itself, and update Win32 build environment.
2000-03-16 18:54:11 +00:00
Kurt Zeilenga
17527368d1
work args of ldap_negotiated_sasl_bind_s() and provide examples
...
with authentication id and authorization ids. Note: this routine
doesn't actually negotiate anything. It likely should be renamed
ldap_sasl_auth_s() or ldap_sasl_bind_multistep() or something.
2000-03-14 02:54:08 +00:00
Kurt Zeilenga
8e6ba5831a
tempnam() is available in MSVC5
2000-02-25 19:30:28 +00:00
Kurt Zeilenga
0dbaf87730
Another round of changes behind -DSLAPD_SCHEMA_NOT_COMPAT
...
plus these changes unhidden changes:
remove now meaning --enable-discreteaci configure option
fix ITS#451, slapd filters
Add ber_bvecadd() to support above
constify ldap_pvt_find_wildcard() and misc slapd routines
renamed some slap.h macros
likely broken something
2000-02-14 20:57:34 +00:00
Kurt Zeilenga
6968ede534
ITS#450: teach LDBM/GDBM about cursors
2000-02-11 02:05:14 +00:00
Kurt Zeilenga
9dde98577d
Move ldap_unicode_t to ldap_pvt.h, typedef to ldap_ucs2_t for now.
...
ldap_ucs2_t is a short. The unicode routines may break if
sizeof(short) != 2...
2000-01-27 05:27:36 +00:00
Kurt Zeilenga
4eb13130a9
typedef ber_int_t ldap_ucs4_t
2000-01-27 01:04:17 +00:00
Kurt Zeilenga
ed9969b1c4
Make ldap_utf8_bytes() act like strlen() not sizeof()
2000-01-23 23:33:01 +00:00
Kurt Zeilenga
42cc5e5333
Fix bugs in UTF-8 code. Apply to getdn and charray.
2000-01-23 23:07:24 +00:00
Kurt Zeilenga
61b509d881
Add some robustness to UTF-8 routines.
2000-01-23 18:43:30 +00:00
Kurt Zeilenga
16c903909c
Add comments to UTF-8 declarations.
...
Add US ASCII optimizations macros.
#ifdef out unused routines
Ready to hack getdn.c and others to support UTF-8
2000-01-23 05:35:38 +00:00
Kurt Zeilenga
22ba55371e
Move ldap_utf8_*() declarations from ldap-int.h to ldap_pvt.h.
...
We may likely want to expose the routines at a later date (ldap_utf8.h?).
2000-01-22 21:09:24 +00:00
Kurt Zeilenga
9ac0eab126
remove UNSPECIFIED_TLS... HOST implies ldap://
2000-01-14 01:08:15 +00:00
Kurt Zeilenga
9c4c8e8c1f
Regenerate using proper tools.
2000-01-13 23:02:51 +00:00
Kurt Zeilenga
0426431639
Fix --enabel-kbind=auto --without-kerberos detection
2000-01-11 04:20:59 +00:00
Kurt Zeilenga
fb49e2771e
--disable-kbind --disable-kpasswd should imply --without-kerberos
...
under "auto" selection. If not auto, just warn.
Rebuild configure using appropriate tools.
2000-01-08 19:23:26 +00:00
Kurt Zeilenga
6437785a82
Initial implementation of Kerberos password verification for
...
simple bind via:
{KERBEROS}principal
Code is disabled by default (for security reasons). Use
--enable-kpasswd to enable. Behind SLAPD_KPASSWD.
Reworked Kerberos detection and split out KBIND as independent
feature (--disable-kbind) (LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND).
KBIND depends upon detection of KRB4 (or KRB425) support. Detection,
building with eBones (as distributed with FreeBSD 3.4) okay, but
wasn't able to test as I don't have a K4 KDC handy.
--with-kerberos has a number of detection options... most likely
don't work properly.
2000-01-08 18:42:11 +00:00
Luke Howard
5a0bbd7eed
Imported <ldap.h> in <ldap_pvt.h> so ldap_pvt_sasl_bind() has necessary
...
types. Changed const sasl_callback_t * to LDAP_CONST sasl_callback_t *.
2000-01-05 12:56:17 +00:00
Luke Howard
a466a64318
Added support for connecting to LDAP servers located using DNS
...
SRV records. Added lock around resolver library which is shared
by the DNS SRV code and the getdxbyname() code.
2000-01-03 02:33:22 +00:00
Luke Howard
57b62dc7d4
Added ldap_pvt_sasl_bind() prototype to ldap_pvt.h. This
...
required importing sasl.h into ldap_pvt.h, thus that import
was removed from ldap-int.h.
2000-01-03 00:15:30 +00:00
Luke Howard
9b4e3b2234
Merged in preliminary support for Cyrus SASL library;
...
support for DCE slash-delimited, left-to-right DNs;
support for a domain socket transport (enable with
--enable-ldapi); and extensions to URL parsing to
support the latter transport.
2000-01-02 01:21:25 +00:00
Kurt Zeilenga
33e50afb6b
Don't reference draft
1999-12-18 19:50:38 +00:00
Kurt Zeilenga
a3d0b9d667
Fix 2 vs 4 typo
1999-12-18 19:49:39 +00:00
Kurt Zeilenga
e56a2a8d78
Remove old DLL IMPORT/EXPORT macros
1999-12-18 19:49:13 +00:00
Kurt Zeilenga
c061aaa81c
Temporary fix for BEOS.
...
tcp_read/write should not be used.
1999-12-17 21:31:44 +00:00
Kurt Zeilenga
e808aa49cb
Add #ifndef GDBM_NOLOCK clause to LDBM_NOLOCKING
1999-12-17 18:43:02 +00:00
Kurt Zeilenga
37d28e7d0d
Add ber_bvstr and ber_bvstrdup string to berval allocators.
1999-12-17 05:37:33 +00:00