Commit Graph

111 Commits

Author SHA1 Message Date
Kurt Zeilenga
66f145da21 Use ldap_memfree() instead of free(). 1999-03-01 21:17:48 +00:00
Hallvard Furuseth
73db912500 Cast char' arguments to ctype.h functions to unsigned char'.
These functions require their arguments to be in the range of `unsigned char'.
1999-02-22 17:57:22 +00:00
Hallvard Furuseth
14705241f6 cast pw_in to const unsigned char * 1999-02-20 08:13:35 +00:00
Kurt Zeilenga
e4a589d99e Updates for MSVC 5.0. Fix libraries names to be ol{ber,dap,..}32.lib.
Fix library/include paths for building "Release".
Create getpass() from ud's mygetpass().
1999-02-11 21:16:03 +00:00
Kurt Zeilenga
50fc6b18d5 Drop the _s from the ldap_perror argument to be consistent with other
ldap commands.
1999-02-08 04:07:49 +00:00
Kurt Zeilenga
f4dd466315 Build environment changes including:
Kerberos detection of des_debug
	detection of resolv.h and arpa/nameserv.h
Updated affected codes.
1999-02-04 21:54:38 +00:00
Kurt Zeilenga
9f96ab2fb0 Add ac/sysexits.h for GNU win32 environments.
Fix LDAP_API_VENDOR_VERSION -> LDAP_VENDOR_VERSION bug
1999-02-01 02:47:39 +00:00
Kurt Zeilenga
ba0c0e022c Fix ldap_send_initial_request() to open connection if not already
openned (by ldap_open()).  This allows ldap_init() to function
properly!
1999-01-31 01:09:00 +00:00
Kurt Zeilenga
4863d98084 Remove configure's wait3 test as we don't care about the rusage.
Rewrite all child waits to use wait4 (for consistency only).
1999-01-23 04:03:43 +00:00
Kurt Zeilenga
52ca931b70 ignore SIGPIPE 1999-01-20 22:01:14 +00:00
Kurt Zeilenga
eed7408e7e Update ldap_first_attribute/ldap_next_attribute to handle
BerElement argument per latest IETF ldapext draft c api spec.
That is, caller is solely responsible for freeing the BerElement
allocated and returned by ldap_first_attribute.
Update man pages accordingly.
Update applications accordingly.
1999-01-20 20:21:38 +00:00
Kurt Zeilenga
ed0ae4ef14 Don't use initializers for auto vars. 1999-01-20 01:00:12 +00:00
Kurt Zeilenga
e2a15115b0 Update slap_conn to maintain client provided dn and bound dn.
Update slap_op to maintain dn and ndn (derived from conn->c_dn).
Update ldbm_back_bind to return actual bound dn (including rootdn)
	for use in slapd_conn.  Other backends use client dn.
Modify other codes to use ndn (normalized uppercase dn) most everywhere.
Aliasing, Suffixing and modrdn could use more work.
Applied suffixing to compare and modrdn.
1999-01-19 05:10:50 +00:00
Kurt Zeilenga
28a671d10d Revamp build system yet again to move all external libraries to
end of link.    Basic order is:
	$LDFLAGS internal-libs external-libs $LIBS $LTHREAD_LIBS

LTHREAD_LIBS is last as -lpthread (or equiv) must be last on many systems.
LIBS is next to last as some user might have put -lpthread (or equiv)
in $LIBS.
1999-01-14 01:31:43 +00:00
Kurt Zeilenga
c3ba1704e6 Remove bogus ldap_msgfree() call. 1999-01-13 18:20:33 +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
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