Commit Graph

145 Commits

Author SHA1 Message Date
Kurt Zeilenga
695508813d Fix --disable-crypt and --disable-cleartext
mutex declaration should be moved from slapd/main.c to slapd/init.c
so we don't have ripple changes through slapd/tools.
1998-12-29 21:45:08 +00:00
Kurt Zeilenga
9171892bd9 Should have left 'scope' alone. 1998-12-29 05:44:18 +00:00
Kurt Zeilenga
8d1523c503 Make ldap_set_option options optional. 1998-12-29 05:33:34 +00:00
Dave Storey
61b430be33 Add support for -P protocol_version. 1998-12-27 14:08:46 +00:00
Hallvard Furuseth
77edee0260 Don't use initializers for auto arrays 1998-12-27 09:04:06 +00:00
Hallvard Furuseth
8d5bcf056d Change overlapping strcpy( x, y )' to SAFEMEMCPY( x, y, strlen( y ) + 1 )' 1998-12-27 06:29:45 +00:00
Hallvard Furuseth
521f6cfda9 Change overlapping strcpy( x, y )' to SAFEMEMCPY( x, y, strlen( y ) + 1 )' 1998-12-27 02:15:08 +00:00
Dave Storey
13457efbbc Code cleanups. MD5 and SHA1 routines should be a little faster and easier to read. 1998-12-22 14:31:31 +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
8dbbc93769 Gopher gw needs friendly fix. 1998-12-21 02:14:47 +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
Dave Storey
9697ad210a Added support for password prompting. (-W switch) 1998-12-15 02:00:09 +00:00
Kurt Zeilenga
9bd0b8f789 Import mail500 change from rel eng 1.1. 1998-12-14 20:55:59 +00:00
Dave Storey
d8090dea55 Streamlined Kerberos Code. 1998-12-14 20:39:02 +00:00
Dave Storey
10cbeba936 Added Kerberos support.
Added Password auto-generation.
Added salts for md5 and sha.
Rewrote make_salt().
Made ldap-devel conformity changes.
1998-12-14 18:36:51 +00:00
Kurt Zeilenga
65e4923d75 Backout previous changes made by Dave as they excessive reformatting,
reindentation, and use of spaces instead of tab.  Diffs will be reviewed
to identify and commit only functional changes as time permits.
Note: this is more my fault than Dave's.   I should have provided
clearer guidance.   Live and learn.
1998-12-14 10:10:41 +00:00
Dave Storey
648f2e2f12 Added support for salted passwords.
Added password auto-generation capability.
Added Kerberos code.
Updated salt generator to be much more random().
1998-12-12 06:12:03 +00:00
Dave Storey
50dbc7d03b Updated Kerberos code, added password prompting. <dave@tamos.net> 1998-12-12 06:08:59 +00:00
Dave Storey
d50231be14 Updated Kerberos code, added password prompting, more detailed usage(). <dave@tamos.net> 1998-12-12 06:08:23 +00:00
Dave Storey
f32bb04ee1 Updated Kerberos code, password prompting, added detailed usage(). <dave@tamos.net> 1998-12-12 06:07:41 +00:00
Dave Storey
84c774854f Updated Kerberos code, password prompting, detailed usage(). <dave@tamos.net> 1998-12-12 06:05:44 +00:00
Kurt Zeilenga
6d113f53a0 Apply update from Dave with password prompting. 1998-12-06 20:07:29 +00:00
Kurt Zeilenga
74394bfb2d Fix ^I to \t in usage printf 1998-12-06 19:49:14 +00:00
Kurt Zeilenga
f0a32aed71 Add ldappasswd program contributed by David E. Storey <dave@tamos.net> 1998-12-06 03:44:28 +00:00
Kurt Zeilenga
ff559f551a Remove LDAP_PORT dependencies so that ldap.conf defaults take over. 1998-11-30 03:55:49 +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
dbb981f96e Remove lint. 1998-11-23 00:00:48 +00:00
Hallvard Furuseth
e97950dd45 Include ac/ctype.h 1998-11-22 06:41:26 +00:00
Kurt Zeilenga
475fd6dc45 "make veryclean" now lives up to its name. 1998-11-22 06:24:59 +00:00
Kurt Zeilenga
3baad5c27a update termios: HAVE_TERMIOS -> HAVE_TERMIOS_H -> HAVE_POSIX_TERMIOS 1998-11-22 05:20:19 +00:00
Hallvard Furuseth
627b5ef64d Do not use struct winsize or declare chwinsz unless defined(TIOCGWINSZ) 1998-11-22 05:14:41 +00:00
Hallvard Furuseth
45834c2ddb "handler" should return RETSIGTYPE, not void 1998-11-22 05:10:33 +00:00
Kurt Zeilenga
6f92e197dc Add libtool support based upon patch by Bart Hartgers <Hartgers@kfm1.phys.tue.nl>
Updated to use libtool 1.2 (with FreeBSD3.0 a.out v. elf detection).
  Updated autoconf to 1.12 with sed patch (don't use stock 1.12).
  aclocal.m4 is built using automake's aclocal, v1.3.
  Updated mkdep to support libtool .lo files.
Updated automake provided macros for TERMIOS, STRTOD, MKTIME, PTRDIFF_T
Autoconf now checks to ensure C compiler supports ANSI C prototypes.
Updated make files templates.
1998-11-22 04:22:28 +00:00
Kurt Zeilenga
8111fb612e $BINDIR should be $bindir 1998-11-20 18:12:31 +00:00
Hallvard Furuseth
71ad63f926 Don't use the `return value' from void free() 1998-11-20 11:40:06 +00:00
Hallvard Furuseth
00bdddf4cc Needed stdio.h 1998-11-20 11:38:45 +00:00
Hallvard Furuseth
990f15d15d pass struct in_addr.s_addr*, not long*, to gethostbyaddr 1998-11-19 03:02:33 +00:00
Kurt Zeilenga
9f55887315 wrap include fcntl.h with HAVE_FCNTL_H 1998-11-18 20:11:15 +00:00
Kurt Zeilenga
2a0715d947 Remove lint in UserDirectory found on NT 1998-11-18 20:08:02 +00:00
Kurt Zeilenga
8be224a80e Add headers to resolve implicit declaration warnings. 1998-11-18 18:11:55 +00:00
Kurt Zeilenga
b5494457d8 Remove extern declarations of library functions from source.c.
This could cause problems on odd systems.  The generic
  headers should be extended as needed to include necessary
  system headers or, if necessary, make explicit declarations.
Extended ac/string.h header to look for string.h/strings.h if
  STDC_HEADERS is not defined.  Also provide basic declarations for
  str*() functions.  This could cause problems on odd systems.
Extended ac/unistd.h header to define basic declaration for misc
  functions that might be missing from headers.   This includes
  externs for getenv(), getopt(), mktemp(), tempname().
Protect fax500.h from multiple inclusion.  Moved includes of
  system/generic headers back to source files.
Made mail500 helper functions static.
Fixed includes of ctype.h, signal.h, etc. to use generics.
lutil/tempname.c: was including stdlib.h twice, one should stdio.h.
Wrapped <sys/resource.h> with HAVE_SYS_RESOURCE_H.
lber/io.c/ber_get_next(): Changed noctets back to signed.
  Used with BerRead which expects signed int as second arg and
  returns signed int.
1998-11-16 05:07:27 +00:00
Hallvard Furuseth
7e6ad5100c Protoized, moved extern definitions to .h files, fixed related bugs.
Most function and variable definitions are now preceded by its extern
definition, for error checking.  Retyped a number of functions, usually
to return void.  Fixed a number of printf format errors.

API changes (in ldap/include):
  Added avl_dup_ok, avl_prefixapply, removed ber_fatten (probably typo
  for ber_flatten), retyped ldap_sort_strcasecmp, grew lutil.h.

A number of `extern' declarations are left (some added by protoize), to
be cleaned away later.  Mostly strdup(), strcasecmp(), mktemp(), optind,
optarg, errno.
1998-11-15 22:40:11 +00:00
Kurt Zeilenga
e4a210b017 fix typo in previous commit. 1998-11-15 15:05:22 +00:00
Kurt Zeilenga
5310070b38 don't assume NULL is zero. 1998-11-15 06:55:20 +00:00
Kurt Zeilenga
a8f7f0b3c7 Use "generic" ac headers. 1998-11-15 06:54:30 +00:00
Kurt Zeilenga
3206b1b794 Eliminate #ifdef DOS 1998-11-12 23:28:47 +00:00
Kurt Zeilenga
5c2334c8a4 Updates based upon latest NT UserDirectory changes:
configure checks for getpwuid(), sys/resource.h, and pwd.h
	Fix !TERMIOS && !SGTTY ifdef in ud/util.c
1998-11-12 23:25:53 +00:00
Kurt Zeilenga
8f11966bff Modified UD as necessary to compile and link under NT. 1998-11-12 23:19:16 +00:00
Hallvard Furuseth
523fd2c891 Fix most `wider type truncated to int' bugs on OSF1 due to implicit decls:
#include <stdlib.h>    to get malloc & co various places,
 #include <ac/string.h> to get strlen & co in (liblutil/setproctitle.c),
 declare ch_malloc & co (slurp.h), avl_find_lin (avl.h), Malloc (ud/edit.c).
Also changed ch_malloc & co from char* to void* functions.
1998-11-11 23:37:38 +00:00
Hallvard Furuseth
5a14af5f84 Memory leaks: Values from ldap_get_dn were not freed. 1998-11-11 22:10:05 +00:00
Kurt Zeilenga
d6e05ecbd7 Update NT4 port. 1998-11-11 05:50:51 +00:00
Kurt Zeilenga
e03d88fcc4 Don't include portable.h. Headers can and should assume portable.h
has been included.
1998-11-11 01:38:02 +00:00
Kurt Zeilenga
1fc810bfe5 Added support for ldap.conf file. See ldap.conf(5) for details.
Modified clients to reduce use of ldapconfig.h.edit.
ldap_{get,set}_option support is relatively complete.  Needs
to be extended to support other "features" of OpenLDAP.
1998-11-10 23:37:30 +00:00
Kurt Zeilenga
a48b606a2f Initial LDAP_API_FEATURE_X_OPENLDAP commit:
configure generates ldap_features.h based from ldap_features.h.in
  LDAP_REFERRALS -> LDAP_API_FEATURE_OPENLDAP_V2_REFERRALS
  LDAP_DNS -> LDAP_API_FEATURE_OPENLDAP_V2_DNS
1998-11-09 19:41:09 +00:00
Kurt Zeilenga
3551c882c7 Don't try to use TIOCGWINSZ unless it's defined.
initialize_client() should return void.  Fix and forward declaration.
1998-11-08 17:26:23 +00:00
Hallvard Furuseth
214d545db9 Removed bad LDAP* argument to disambiguate() 1998-11-08 05:01:17 +00:00
Hallvard Furuseth
c7010a3ca0 Undo last change (I commited the wrong version) 1998-11-08 04:59:11 +00:00
Hallvard Furuseth
177c37a43c ld could be used uninitialized 1998-11-08 03:01:51 +00:00
Hallvard Furuseth
745dfd0298 missing 2nd argument to faxtotpc() 1998-11-08 02:08:18 +00:00
Hallvard Furuseth
3bc58b5eec Removed bad LDAP* argument to disambiguate() 1998-11-08 01:16:36 +00:00
Kurt Zeilenga
9c3fa68fa5 mail500 changes from wesley.craig@umich.edu 1998-11-06 20:39:22 +00:00
Kurt Zeilenga
36378ea411 Updated MSVC5 workspaces and projects.
Added ac/stdarg.h and updated liblber encode/decode to use it.
1998-11-06 01:18:49 +00:00
Kurt Zeilenga
4646b76608 define _REENTRANT & _THREAD_SAFE to pull in reentrant/threadsafe prototypes.
modify apps to use TOLOWER/TOUPPER macros to ensure isupper/islower is
called when approprate.
1998-11-05 06:11:47 +00:00
Hallvard Furuseth
f3db3e0a8f replace detach.c with lutil_detach() 1998-11-05 01:56:41 +00:00
Hallvard Furuseth
d171cd4f42 Some gcc -W cleanup 1998-11-04 13:15:18 +00:00
Kurt Zeilenga
500351993c Replaced #ifdef'ed ldap_lderrno() call with ldap_get_option() call. 1998-11-04 01:44:41 +00:00
Kurt Zeilenga
8333a03346 struct ldap is now opaque to clients.
updated clients to use ldap_get/set_options
ld_options is renamed ld_booleans.  ldap-int.h has accessor macros.
updated libldap to use new accessor macros.
1998-11-04 01:41:00 +00:00
Kurt Zeilenga
f634a0d40f Fix install-local typo 1998-11-03 17:03:02 +00:00
Kurt Zeilenga
43f29c3cb8 More header work toward draft-ietf-ldapext-ldap-c-api-01. 1998-10-26 01:49:56 +00:00
Kurt Zeilenga
702109706b update ldap/lber headers towards ldapext-ldap-c-api-01 1998-10-26 01:18:41 +00:00
Kurt Zeilenga
adb49a3daf Working LDAP search on NT4! 1998-10-25 17:40:01 +00:00
Kurt Zeilenga
2a869f5a99 merged with autoconf branch 1998-10-25 01:41:42 +00:00
Kurt Zeilenga
12346ab42f Remove lint reported have Hallvard 1998-10-23 21:59:32 +00:00
Kurt Zeilenga
ecc1417e4a Remove rcs id. 1998-09-16 04:43:37 +00:00
Kurt Zeilenga
94e5282de9 Replaced "X.500" with "LDAP", seems more relevant these days.
Suggested by Jauder Ho <jauderho@transmeta.com>.
1998-09-16 00:12:37 +00:00
Kurt Zeilenga
4d845ef221 Resolves UD crash when binding with incorrect passwords.
Fix suggested by Hallvard Furuseth <h.b.furuseth@usit.uio.no>.
1998-09-16 00:01:11 +00:00
Kurt Zeilenga
58a295d838 Import missing mkdir in install rule from stable branch. 1998-09-12 04:18:49 +00:00
Kurt Zeilenga
a9ea01584a K5 patch from Pele <pele@artewisdom.com> 1998-09-09 02:06:17 +00:00
Kurt Zeilenga
2fb96905d2 Add Kerberos V5 support from Predrag Balorda <pele@artewisdom.com> 1998-09-08 02:26:56 +00:00
Kurt Zeilenga
b015c8db24 Add support for OpenBSD. Provided by djg@gregor.com. 1998-08-31 20:49:27 +00:00
Kurt Zeilenga
a65dd0488c Added include of <time.h> to get time_t 1998-08-22 17:38:29 +00:00
Kurt Zeilenga
d2ef362f99 Removed use of paths not defined in ldapconfig.h.edit.
Fixed Dependency Generation not to mess with Make-templates.
	side effect: depends are not carried forward after "make makefiles"
1998-08-20 03:56:19 +00:00
Kurt Zeilenga
b3ac184962 Fixed ldapconfig.h.edit/Make-template to generate ldapconfig.h correctly.
ldif2ldbm.c defaults moved to ldapconfig.h, sed no longer needed.
Changed type of lconn_lastused to time_t.
Added include <time.h> were needed.
1998-08-20 02:18:28 +00:00
Kurt Zeilenga
adc2134f03 Modified build environment to correctly support bin,sbin,libexec,etc
and setting of variables from Make-platform with defaults in Make-common.
1998-08-19 18:19:39 +00:00
Kurt Zeilenga
079f21c3ac Added LIBEXECDIR, SBINDIR and patched install rules and files as needed. 1998-08-19 02:38:35 +00:00
Kurt Zeilenga
f51765eead Changed FD_SETSIZE checks for consistency. Added checks where needed. 1998-08-18 18:19:49 +00:00
Kurt Zeilenga
fa2da63ca4 Merge from LAMBERT branch 1998-08-17 23:26:25 +00:00
Kurt Zeilenga
f3e9bc606c integrated changed from rage.net glibc.patch 1998-08-13 19:32:43 +00:00
Kurt Zeilenga
daeb0284b1 LDAPworld P8: UD does not compile when NO_CACHE defined 1998-08-09 02:50:17 +00:00
Kurt Zeilenga
8d5c2b41e6 LDAPworld P3: SLAPD LDBM Generation with Multiple Backends 1998-08-09 02:33:01 +00:00
Kurt Zeilenga
860038cff1 LDAPworld P1: DEC and other portability issues 1998-08-09 02:28:45 +00:00
Kurt Zeilenga
f6c2f2e6ab Merge FreeBSD Make-templates into LDAPworld branch 1998-08-09 02:24:07 +00:00
Kurt Zeilenga
42e0d83cb3 Initial revision 1998-08-09 00:43:13 +00:00