Commit Graph

142 Commits

Author SHA1 Message Date
Kurt Zeilenga
cb31c7aa9a Update check for res_search. If not available in $LIBS, check
in -lbind then in -lresolv.
1999-01-13 01:11:28 +00:00
Kurt Zeilenga
318531a437 Use pthread_detach() to detach connection threads instead of
creating them detached.  This hopefully will reduce problems on
draft4 pthread implementations related to creating detached
threads (which is _np under draft4) on some platforms without
causing problems with other thread implementations.
1999-01-11 19:04:34 +00:00
Kurt Zeilenga
82b94e2258 Change SLAPD shutdown to do a cond wait on active threads instead
of a busy wait and allow the pthread_yield within the loop to be
removed.  This was the only pthread_yield which was necessary
when usng non-preemptive threads.  As such, the configure.in
sched_yield/pthread_yield missing error can be removed from
configure.in.  If explicit yield function is missing, just provide
a no-op replacement.
Moved declaration of various slapd globals from main.c to init.c
so they can be shared with ldbm tools.
1999-01-11 18:36:40 +00:00
Kurt Zeilenga
334768c1bb Update build environment to fix VPATH support.
make depend, make tests, and make install all work when build directory
  is not the $srcdir.
Also modified library handling such that -lpthread more likely to be last.
WARNING: new orderring requires use of LDFLAGS to set global loader options
  such as -L/usr/local/lib.  If you put this in LIBS, some libraries
  may not be found a link time.
Likely broke Kerberos/LDAPD support.  Don't have those in my testbed.
1999-01-10 02:25:41 +00:00
Kurt Zeilenga
de8c07c62c Updated SLAPD args/pid file codes to use DEFAULT_RUNDIR and DEFAULT_DIRSEP.
Removed old defines.
1999-01-07 18:16:40 +00:00
Kurt Spanier
9c6d384b9a - Make install creates $(RUNDIR)/var for pid and args files of slapd.
- slapd's pid/args file names are based on the servers binary file names,
  providing for multiple servers beeing run on one host.
- slapd supports the -l command line parameter for selection of a
  syslog LOCAL user (-lLOCAL0 .. -lLOCAL7)
- db_appinit() is called during first ldbm_open() in DB 2.x to initialize
  DB debugging features (good to find bugs in the DB code :-)
- a patch for a non-initialized variable in DB's 2.x db_open is provided.
1999-01-05 15:40:58 +00:00
Kurt Zeilenga
114a0cd339 Update ctime_r() argument macro to cache results and to produce
one preprocessor macro instead of two.  Ran aclocal, autoconf,
autoheader to update derived files.  Modify util-int.c to use
CTIME_R_NARGS define and fallback to ctime() if not set.
Made LDAP_API_FEATURE_X_OPENLDAP_REENTRANT dependent upon result.
1999-01-02 23:40:31 +00:00
Bart Hartgers
f9d26dacd4 Teached autoconf to figure out how may arguments ctime_r expects.
Updated util-int.c to use this information.
1999-01-02 00:56:45 +00:00
Kurt Spanier
bfb27120be Patch for Berkeley DB 2.6.4 (beta) (DB)->cursor() call.
Introduction of ldbm_datum_init().
Patch for non-NULL pointer test befor call to ldbm_datum_free().
1998-12-29 17:28:45 +00:00
Kurt Zeilenga
cfa450d078 Fix schema check bug... actually charray needs to dup strings on
add/merge as we now free strings agressively.  Improved debug
message to include name of missing required attribute and added
check for 'operational attributes'.  This check should be used
everywhere we need to test for operational attributes (add/modify).
Also, enabled schema checking for tests (and fixed resulting
problems by adjusting oc.conf).
1998-12-28 23:43:04 +00:00
Kurt Zeilenga
7fc7988b8e Add OpenLDAP Copyright to headers 1998-12-28 19:51:35 +00:00
Kurt Zeilenga
cafa0e5ac1 Add more C-API prototypes (not yet implemented). 1998-12-28 19:37:02 +00:00
Kurt Zeilenga
f08b68992b Apply NT fixes from Release Engineering. 1998-12-26 18:52:45 +00:00
Kurt Zeilenga
2eb55b91ff We'll put ldap_x_message() functions in messages.c
We'll put ldap_x_reference() functions in references.c
1998-12-24 04:41:27 +00:00
Kurt Zeilenga
578fae946b Add prototypes for C-API _ext routines (coming soon). 1998-12-24 03:55:41 +00:00
Randy Kunkee
a451ccc50b Fix line 62 of bprint.c "#elif" line with no expression.
Add check for to configure.in vsprintf, since HAVE_VSPRINTF is presumably
what was intended there.  Finally, also protected a bunch of if test
expressions with double quotes, as they were producing illegal test
commands.
1998-12-24 01:31:40 +00:00
Kurt Zeilenga
7fe153acaa Add LDAP_DEBUG_DEPRECIATED to enable warnings when 'depreciated'
interfaces are used.  Added comments to ldap_cdefs.h
1998-12-23 20:01:15 +00:00
Kurt Zeilenga
bd6e10aea0 Fix --disable-debug compiling problems. New -llber (and -lldap when
implemented) logging requires LDAP_DEBUG_XXX levels always be defined.
1998-12-23 04:18:50 +00:00
Kurt Zeilenga
52d7a2d8b2 Add client/server control free/dup functions and
ldap_set/get_option support for controls.
1998-12-23 02:30:44 +00:00
Kurt Zeilenga
a36412440c Update error codes based upon draft-ietf-ldapext-ldap-c-api-01
Remove ldap_get_lderrno().
1998-12-22 04:45:14 +00:00
Kurt Zeilenga
2d39f617b8 Add LDAP_OPT_API_FEATURE_INFO to obtain feature info (ie: version)
at runtime.
1998-12-22 03:17:25 +00:00
Kurt Zeilenga
811cfab91f Move LDAPServer, LDAPConn, LDAPRequest, and LDAPCache
from ldap.h to ldap-int.
1998-12-22 02:39:24 +00:00
Kurt Zeilenga
a3ac3be6a7 Added lber_get/set_option. Removed lber_debug/ldap_debug.
Updated other codes as needed.
1998-12-22 01:34:01 +00:00
Kurt Zeilenga
e5a5f44fb8 That second abandon should have been an extended. 1998-12-21 02:12:08 +00:00
Kurt Zeilenga
b1869acd5b Remove internal strings 1998-12-21 02:09:44 +00:00
Kurt Zeilenga
40d08ee8aa Add LDAP v3 protocol defines 1998-12-21 01:44:58 +00:00
Kurt Zeilenga
2d15a94d16 LDAP C-API changes
struct friendly (Friendly) changed to ldap_friendly (LDAPFriendly)
	  ldap_friendly friend prefix changed to 'lf_' from 'f_'
	removed mod_next field from LDAPMod (struct ldapmod)
	modified slapd to use new LDAPModList (struct ldapmodlist) struct.
Added LDAPv3 result codes to ldap.h
1998-12-21 00:21:58 +00:00
Kurt Zeilenga
5c6ad6c5b1 ldif'ize ldif library (ie: everything is now in the ldif_ namespace) 1998-12-20 22:28:33 +00:00
Kurt Zeilenga
362d6cbf2a Add configure code for setting LDAP_SYSLOG but actually use hardcoded
LDAP_SYSLOG in slap.h/slurp.h.
1998-12-20 21:56:44 +00:00
Kurt Zeilenga
a5eee14f72 Add detection of dmalloc library. 1998-12-20 19:12:20 +00:00
Kurt Zeilenga
b5973eba5d Minor change to signal handler. Changed _shutdown flag to
type 'sig_atomic_t' and marked it volatile.  Add detection to
configure to ensure sig_atomic_t and volatile are supported.
1998-12-20 18:16:03 +00:00
Kurt Zeilenga
8aba5c5059 Provide framework for ldap_r and reentrant/thread safety levels.
-lldap_r can now be implemented...
1998-12-20 00:58:55 +00:00
Kurt Zeilenga
0024cf2f4b -lldap reentrantancy improvements from Bart Hartgers <A.Hartgers@phys.tue.nl>
including use of ctime_r, gethostby*_r, etc..  Also reworked ldap_sort_entries
to be reentrant.
Need to add code to properly set LDAP_API_FEATURE_THREAD_SAFE.
1998-12-19 01:27:20 +00:00
Kurt Zeilenga
3a5e383dbd Add draft-ietf-ldapext-ldap-c-api-01 routines ber_init()
and ber_flatten() to the -llber.
1998-12-18 21:08:28 +00:00
Kurt Zeilenga
9db062bb71 Update pthread checks:
Add plain -lpthread check.
	Move *_r() checks so that they are checked for regradless
		of thread libs used.  Before they were only being checked
		when using threads.
	Fix yields test such that compile/link/odd runtime failures results in
		'yes' instead of 'no'.
1998-12-14 00:23:22 +00:00
Kurt Zeilenga
76dc7b2673 Add checks for gethostby{name,addr}_r. Only should be used if
linking with $LTHREAD_LIBS.
1998-12-04 04:21:19 +00:00
Kurt Zeilenga
514c44a5c8 Add checks for reentrant functions when LTHREAD_LIBS is used.
Don't use new HAVE_FUNC_R on the client side (apps or libs).
1998-12-04 02:31:41 +00:00
Kurt Zeilenga
c1cef27bda Update slapd to use lutil_passwd() for both user and root passwords.
Remove MD5 and SHA1 options (both are now always on).  Rename
functions to be lutil_ instead of ldap_.
Create --enable-cleartext option.  Default is currently 'on'.
1998-12-01 03:36:37 +00:00
Kurt Zeilenga
febafbdf28 Add varients of REENTRANT... 1998-11-30 20:40:42 +00:00
Kurt Zeilenga
edd464ee8f Update build environment:
default sysconfdir subdirectory is openldap instead of ldap.
    This removes conflicts with other ldap subsystems.  Should
    be configure option.
  *.conf files are now preserved.  A *.conf.default are always
    created with the latest conf.
  *.help and ldapfriendly are now placed in $(datadir)/$(ldap_subdir)
  updated man pages to reflect changes.
1998-11-29 19:48:28 +00:00
Kurt Zeilenga
30cefc46de Add KRB_LIBS to makefiles. 1998-11-25 23:49:12 +00:00
Kurt Zeilenga
0e2a772173 Fix ldap_sigusr2 vs 1 typo for Linux on alpha & sparc. 1998-11-25 23:35:04 +00:00
Hallvard Furuseth
ee2a3e7871 Add crypt() declaration 1998-11-23 08:14:40 +00:00
Kurt Zeilenga
e020da90c1 Need to add unistd.h and sys/time.h checks back in now that
now that the mktime check is commented out.
1998-11-23 06:02:47 +00:00
Hallvard Furuseth
abfcf15d48 Cast memcpy #defined as bcopy to void, to avoid use of unspecified values.
Clarify a few comments.
1998-11-23 04:29:01 +00:00
Kurt Zeilenga
1650f15d9d Remove mktime/stdtod checks. They are not currently needed. 1998-11-23 03:08:26 +00:00
Kurt Zeilenga
61e8984d7a Add basic NT thread support. 1998-11-23 00:14:12 +00:00
Kurt Zeilenga
53100db1a5 Update portable.h for NT 1998-11-22 23:29:51 +00:00
Kurt Zeilenga
baf8e2f010 Axe the SunOS 5.6 define and use Pthreads. 1998-11-22 23:18:46 +00:00
Kurt Zeilenga
0f518857f0 Update configure with new yielding select test. 1998-11-22 20:25:52 +00:00