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
Howard Chu
d92d403a76
NT requires $(SECURITY_LIBS) at link time.
1999-12-26 00:11:14 +00:00
Kurt Zeilenga
4c7739e6e5
ITS#408: add missing LDAP_END_DECL
1999-12-22 00:42:05 +00:00
Kurt Zeilenga
f3a650b8af
Add comment about removing HANDSOFF may case alignment problems
1999-12-18 19:51:49 +00:00
Kurt Zeilenga
37d28e7d0d
Add ber_bvstr and ber_bvstrdup string to berval allocators.
1999-12-17 05:37:33 +00:00
Kurt Zeilenga
ab7c490960
Add BINDDN user-only directive to .ldaprc
...
Used only for simple bind when dn == NULL and password != NULL.
1999-12-17 03:27:16 +00:00
Kurt Zeilenga
30411f8402
Add slappasswd to generate rootpw.
1999-12-16 02:18:50 +00:00
Kurt Zeilenga
30ffb54064
ITS#399: timelimit/timeout handling
...
ITS#400: LDAP_TIMEOUT handling
1999-12-16 00:41:18 +00:00
Kurt Zeilenga
096dcdc580
Add support for useronly configuration attributes.
1999-12-14 02:26:37 +00:00
Kurt Zeilenga
b1639dadd6
Remove lint
...
Add copyrights
1999-12-13 04:53:59 +00:00
Kurt Zeilenga
d331d4c1f3
Remove lint.
1999-12-12 05:07:17 +00:00
Kurt Zeilenga
cda19446ef
s/generate/hash/
1999-12-12 05:06:36 +00:00
Kurt Zeilenga
18fad04e69
Fix == != typo
1999-12-12 05:02:03 +00:00
Kurt Zeilenga
c1a31ac9a2
Fix decoding of sasl bind and extended operation responses.
1999-12-12 03:16:46 +00:00
Mark Valence
7ee49bc676
Fix mem leak in ldap_start_tls(), treat empty host name as localhost when opening a connection.
1999-12-11 03:50:33 +00:00
Mark Valence
c0faf75a90
Unescape host:port when parsing a host list.
1999-12-11 03:46:07 +00:00
Mark Valence
a76c9f18a9
Start TLS extension: check that TLS was inited successfully, return default referral on failure as appropriate.
1999-12-10 19:18:33 +00:00
Mark Valence
e0e7e9842e
client/server controls added to ldap_start_tls().
1999-12-10 18:26:12 +00:00
Mark Valence
268dd9beaf
Condition ldap_start_tls on HAVE_TLS.
1999-12-10 17:18:59 +00:00
Kurt Zeilenga
431dad371c
Fix slapd SASL/ExternalOps encoding
...
Add controls to extended ops API signatures, need impl.
Update password to support optional server side generation of
new password, verification of old password, and changing of
non-bound user's passwords.
1999-12-10 04:52:32 +00:00
Mark Valence
454284f1ea
Adds for Start TLS functionality on slapd and LDAP C API.
1999-12-09 22:33:22 +00:00
Mark Valence
ccb9e1e9e3
Changed URL to URI for conf/env setting.
1999-12-09 22:17:08 +00:00
Kurt Zeilenga
354d0d5b50
Modify password code such that backend end routine calls into
...
frontend to complete parsing of extended op reqdata.
Modify password extended operation to allow optional id (DN)
entry to change (not tested). Also, provide room to allow
server side password generation (not implemented). Added optional old
password field to support proxying (not implemented).
Need to implement replog() support.
1999-12-09 21:30:32 +00:00
Kurt Zeilenga
b973e61dda
Fix {CRYPT} and {UNIX} passwords
1999-12-09 01:24:38 +00:00
Kurt Zeilenga
5e12c84a6f
Add simple password test program.
...
Rework lutil_passwd routines to use struct berval instead of strings.
1999-12-09 01:11:16 +00:00
Kurt Zeilenga
fd9f76f911
Fix reader/writer bug that allowed 2 writers! Yiks.
...
Reported by tsarna@endicor.com
1999-12-08 23:54:33 +00:00
Howard Chu
6a26e68a02
Backout fix in r1.38
1999-12-08 23:50:59 +00:00
Howard Chu
3c5848a71e
Fix ldap_chase_referrals to treat "ldap://host/" referrals the same as
...
"ldap://host".
1999-12-08 21:37:55 +00:00
Kurt Zeilenga
aeb2de33d7
Found and fixed stupid bug in seeded hash generation.
1999-12-08 19:23:32 +00:00
Kurt Zeilenga
96a126e36a
Need to adjust len by saltlen
1999-12-08 07:07:18 +00:00
Kurt Zeilenga
26c7d69e8c
Update for new password codes for MSVC5
1999-12-08 06:44:22 +00:00
Kurt Zeilenga
d5edb4bff6
Reengineered ldappasswd(1). Uses extended operation to set
...
user password. Likely to be modified to use bind control
instead. Use of modify deprecated in favor mechanisms that
support passwords stored externally to the directory (such
as in a SASL service).
Modified slapd extended operation infrastructure to support
backend provided extended operations.
1999-12-08 04:37:59 +00:00
Mark Valence
601c1530a8
Changes for URI spport: New routines ldap_initialize and ldap_create; LDAPURLDesc replaces LDAPServer, LDAPURLDesc list used instead of ldo_defhost.
1999-12-07 19:47:00 +00:00
Mark Valence
83e2f38543
Changes for URI spport: New routines ldap_initialize and ldap_create; LDAPURLDesc replaces LDAPServer, LDAPURLDesc list used instead of ldo_defhost.
1999-12-07 18:52:05 +00:00
Mark Valence
5f86e47aa8
Changes for URI spport: New routines ldap_initialize and ldap_create; LDAPURLDesc replaces LDAPServer, LDAPURLDesc list used instead of ldo_defhost.
1999-12-07 18:42:25 +00:00
Kurt Zeilenga
942d37afc5
Set ber_errno here and there.
1999-12-06 06:33:26 +00:00
Mark Valence
15c83bef9d
Changed ldap_pvt_tls_init_def_ctx() to not fail if there is no cacertfile/dir specified. This lets LDAP_OPT_X_TLS_REQUIRE_CERT=0 work. If LDAP_OPT_X_TLS_REQUIRE_CERT=1, connection will fail as appropriate since there is no CA list.
1999-12-06 04:44:22 +00:00
Mark Valence
402c511534
Removed some unused vars.
1999-12-06 04:11:50 +00:00
Mark Valence
aa8c95a24a
Bug fix. == NULL changed to != NULL before freeing mem.
1999-12-05 22:22:37 +00:00
Mark Valence
7d98b59dfa
Removed unused local var.
1999-12-05 22:19:08 +00:00
Kurt Zeilenga
fe591cf679
Remove istty test otherwise we may not detach.
1999-12-05 05:25:02 +00:00
Kurt Zeilenga
5d5588836f
Fix ldap_rename parameter order (ITS#387)
1999-12-04 17:19:11 +00:00
Kurt Zeilenga
482b1d7152
Remove lint.
1999-12-03 06:26:41 +00:00
Howard Chu
ed05ed8025
Fix memory losses, ITS#379
1999-12-03 00:21:32 +00:00
Howard Chu
568e25a7a9
ldap_result was losing messages when multiple msgids were queued,
...
and results were being returned one-at-a-time. Ugh, this cost me two
days, loss of hair, sleep, etc.....!
1999-11-30 13:32:06 +00:00
Howard Chu
5279265f2e
Added missing ldap_pvt_thread_mutex_trylock function.
1999-11-28 04:07:11 +00:00
Howard Chu
eaaea51b53
Fixes for NT dynamic linking.
1999-11-27 23:40:08 +00:00
Kurt Zeilenga
8b99e6cdbd
Remove LBER_{TAG,INT,LEN}_{NTOH,HTON} macros. Rewrite code to
...
manual push bytes about. Allows ber_*_t to be any 32-bit or
larger type. Reworked AC_{HTON,NTOH}{L,S} macros to care only
about 32-bit (netlong) and 16-bit (netshort) reordering as
needed for BSD socket interface.
1999-11-26 23:32:18 +00:00
Kurt Zeilenga
c59d1a34db
Use 'long' for LBER_INT_T.
1999-11-25 17:45:21 +00:00
Kurt Zeilenga
62a06eda3e
Don't use 'int' for LBER_*_T types as we only have hton{s,l}.
...
Select appropriopriate hton{s,l} function to use in lber-int.h.
1999-11-25 17:10:45 +00:00
Kurt Zeilenga
53ee6b01b9
Fix typo in ldap_compare_ext. Found by dspeck@novell.com.
1999-11-19 02:01:50 +00:00
Kurt Zeilenga
357101793b
Use lber types instead of uint32 for md5. sha1 still requires
...
an integer type of exactly 32 bits.
1999-11-17 02:04:06 +00:00
Kurt Zeilenga
5f3ec33b0c
Backout premature commit.
1999-11-08 19:36:30 +00:00
Mark Valence
84be63096b
Minor bug fix in ldap_parse_extended_result.
1999-11-08 18:47:47 +00:00
Kurt Zeilenga
f4856214fb
*** empty log message ***
1999-11-08 15:38:59 +00:00
Kurt Zeilenga
14f107e9ed
Changes to support NT single debug
1999-11-01 22:17:06 +00:00
Kurt Zeilenga
b7af076fee
Use centralized output directories.
...
Update single debug/release not to use service manager nor event manager.
Likely breaks MINGW32 port.
1999-11-01 21:25:22 +00:00
Kurt Zeilenga
4cc712db53
Add <ac/param.h> to wrap <sys/param.h>
1999-11-01 17:21:24 +00:00
Howard Chu
17e1877a12
Fix broken MSVC builds. The previous round of Mingw32 patches changed some
...
ifdefs to depend on _WINNT, which is bogus. Added _WIN32 back on these ifs,
and fixed some other include problems.
1999-10-31 02:26:41 +00:00
Mark Valence
e20d6dfb8b
bug fixes for ldap_msgtype and ldap_msgid
1999-10-30 18:33:37 +00:00
Kurt Zeilenga
baa34f752b
Do not attempt to obtain sizeof(sin_addr.s_addr) or &sin_addr.s_addr
...
as s_addr member of in_addr may be a bitfield.
1999-10-30 04:58:06 +00:00
Kurt Zeilenga
ebc4a8f149
Use uint32 not u_int as code requires 32 bit unsigned integers.
1999-10-30 03:30:10 +00:00
Kurt Zeilenga
5bb1546867
Refine comments.
1999-10-28 17:42:46 +00:00
Howard Chu
e99eab787f
Use new macros from configure.in to accomodate NT/Mingw32 environment.
...
See README 1.27 log
1999-10-28 07:31:59 +00:00
Howard Chu
5438e045af
Fixed use of LDAP_F macro
...
See README 1.27 log
1999-10-28 07:29:25 +00:00
Howard Chu
a57a9abe6d
New files added for Mingw32 support.
...
See README 1.27 log
1999-10-28 07:22:10 +00:00
Howard Chu
dd89498e85
Fix misc syntax warnings and/or bugs.
...
See README 1.27 log
1999-10-28 07:18:48 +00:00
Howard Chu
74d93ac2f8
Fix Winsock-related warning and/or bugs.
...
See README 1.27 log
1999-10-28 07:17:08 +00:00
Mark Valence
a50cd075db
Changes to make TLS work on Windows
1999-10-27 22:40:05 +00:00
Kurt Zeilenga
554f5b7aea
Fix up comments.
1999-10-27 22:00:29 +00:00
Kurt Zeilenga
8d821f3904
Really fix gettimeofday usage.
1999-10-27 21:53:41 +00:00
Kurt Zeilenga
68a569c738
Don't use sig_atomic_t.
...
Comment upon synchronization issue.
Fix gettimeofday usage.
1999-10-27 21:50:49 +00:00
Kurt Zeilenga
c52dc059e6
In fallback mode, use value of buffer to improve quality of hash.
1999-10-27 19:42:27 +00:00
Kurt Zeilenga
f804da9bef
Port to NT.
1999-10-27 04:41:38 +00:00
Kurt Zeilenga
491dc61df6
Didn't mean to commit #undef URANDOM_DEVICE
1999-10-27 00:29:10 +00:00
Kurt Zeilenga
241799c9e3
Make sure rdata differs for each program.
1999-10-27 00:08:31 +00:00
Kurt Zeilenga
9e0958d5bc
Rework counter code in fallback.
1999-10-26 23:54:39 +00:00
Kurt Zeilenga
58e10c7417
Add a fallback based upon Phil Karn's "practical randomness" idea.
1999-10-26 23:41:09 +00:00
Kurt Zeilenga
d0ad0cf228
Minor cleanup.
1999-10-26 23:04:44 +00:00
Kurt Zeilenga
3d064b73c5
Fix compilation errors.
1999-10-26 23:00:30 +00:00
Kurt Zeilenga
bdca662249
Add lutil_entropy(). Currently only supports /dev/urandom or
...
Linux equivs. Should be extended to support other quality
sources of entropy. Should be extended to support a reasonable fallback.
1999-10-26 22:57:39 +00:00
Kurt Zeilenga
f4a0699311
Add macros to compute base64 encode/decode lengths.
1999-10-25 01:44:47 +00:00
Kurt Zeilenga
10e886a601
Hack to free seqorset when ber_free(ber, 1) is called.
1999-10-21 17:52:33 +00:00
Kurt Zeilenga
d306bb1114
Remove lint caused by recent header changes.
1999-10-20 00:19:47 +00:00
Kurt Zeilenga
a5ac8f57f8
Complain if setsockopt TCP_NODELAY fails
1999-10-19 19:07:24 +00:00
Kurt Zeilenga
7ef67830af
Minor adjustments based upon initial read of draft-ietf-ldapext-ldap-c-api-04.txt.
1999-10-19 18:57:38 +00:00
Kurt Zeilenga
60d00d4649
Force sd close. Suggested by rajk@home.com
1999-10-12 18:51:36 +00:00
Howard Chu
70f31490a8
Always return ld->ld_errno thru *errcodep if given to ldap_parse_result
1999-10-08 00:51:35 +00:00
Kurt Zeilenga
a284b641b7
Move crypt(3) prototypes from <ac/unistd.h> to <ac/crypt.h> (new) to
...
avoid clashes with Kth Kerberos.
1999-10-01 04:48:30 +00:00
Kurt Zeilenga
e7e4800d44
Remove lint.
1999-09-25 23:13:15 +00:00
Kurt Zeilenga
3c00fd6d23
Rework passwd routines to allow callers to determine which
...
schemes are supported. This should facilate server rootDSE
advertisement of supported schemes, etc..
1999-09-25 22:13:25 +00:00
Mark Valence
b221e4ad4b
Fixed "typos" in TLS code. TLS is ATTR_TLS, not ATTR_BOOL.
...
ldap_pvt_tls_config() was missing first param.
1999-09-25 03:57:25 +00:00
Mark Valence
9e7243015c
fixed LDAP_OPT_X_TLS case of ldap_pvt_tls_config().
...
ldap_pvt_tls_set_option() expects int* as third param.
1999-09-25 03:53:17 +00:00
Randy Kunkee
24c81ea599
Back out my change to ldap_sort_strcasecmp. My mistake from not reading
...
manpage carefully. One should pass strcasecmp to ldap_sort_entries, not
ldap_sort_strcasecmp. Ldap_sort_strcasecmp is for ldap_sort_values, NOT
ldap_sort_entries.
1999-09-24 18:16:41 +00:00
Randy Kunkee
b133aa528b
Change call to strcasecmp in ldap_sort_strcasecmp, which makes
...
ldap_sort_entries work with ldap_sort_strcasecmp as the comparison
function. Pointers were being dereferenced, and should only have been
casted.
1999-09-24 08:02:54 +00:00
Kurt Zeilenga
3a44abba1a
ITS#302 ldif fix. Treat value with only continuation markers
...
as an empty value. Complain, of course, as this isn't valid LDIF.
1999-09-24 02:30:33 +00:00
Kurt Zeilenga
a68825e6df
Howard convinced me that this version is slightly better.
...
back out previous commit.
1999-09-24 00:16:16 +00:00
Kurt Zeilenga
a93ac070b5
I believe ldap_result2error should return the value returned
...
by ldap_parse_result unless that value is SUCCESS.
1999-09-23 22:57:05 +00:00
Howard Chu
91e24173d0
Update ld->ld_errno if LDAP_DECODING_ERROR...
1999-09-23 22:35:58 +00:00
Howard Chu
fa62e37667
Fix ldap_parse_result and ldap_result2error to return correct results.
1999-09-23 22:10:22 +00:00