Kurt Zeilenga
a4fac87687
Use ucdata (very experimental)
2000-09-07 23:19:10 +00:00
Kurt Zeilenga
102a88659b
ITS#717 kbind fixes
2000-09-06 21:32:45 +00:00
Kurt Zeilenga
f319444df0
MIT Kerberos and krb5_free_creds_contents (ITS#715)
...
fix suggested by Norbert Klasen <klasen@zdv.uni-tuebingen.de>
2000-09-06 18:21:39 +00:00
Kurt Zeilenga
d59a62e236
Clarify perms
2000-09-04 21:57:01 +00:00
Kurt Zeilenga
10e787041f
Fix typo
2000-09-04 17:49:43 +00:00
Kurt Zeilenga
b486f9b944
Fix install of ucdata
2000-09-04 17:01:37 +00:00
Kurt Zeilenga
cee040a321
Bring UCdata infrastructure.
2000-09-03 23:48:35 +00:00
Kurt Zeilenga
b99299219f
Fix typo
2000-09-03 19:33:26 +00:00
Kurt Zeilenga
5518aefda0
Change default to SSL_PEER_NONE (don't require peer certificate).
2000-09-01 23:24:17 +00:00
Kurt Zeilenga
57ed8f6458
Fix port defaulting
2000-09-01 23:03:17 +00:00
Kurt Zeilenga
8983f7cb8b
Fix ldap_pvt_tls_start() return value check.
2000-09-01 01:04:18 +00:00
Kurt Zeilenga
3844db4404
Use example.com, not openldap.org, in examples
2000-08-25 02:17:40 +00:00
Kurt Zeilenga
a2afb207be
Move ldap_start_tls_s() to tls.c
2000-08-25 02:16:15 +00:00
Kurt Zeilenga
526d1e6981
needs string.h
2000-08-21 16:48:11 +00:00
Kurt Zeilenga
57936dc93c
Zap CLDAP
2000-08-19 00:07:30 +00:00
Kurt Zeilenga
25a9f7427d
Remove CLDAP cruft
2000-08-18 04:25:00 +00:00
Howard Chu
0f8047b95e
Implemented ldap_pvt_tls_get_peer() for use with SASL/EXTERNAL.
...
Added ldap_pvt_tls_get_strength() - return encryption strength, for
use as a SASL session security factor.
2000-08-16 23:27:41 +00:00
Kurt Zeilenga
ce856bd5c2
ber_bvstr() shouldn't play games with input string.
2000-08-15 17:01:40 +00:00
Kurt Zeilenga
2ae410bd1b
Treat INADDR_LOOPBACK (as well as INADDR_ANY) as local host.
2000-08-15 02:13:00 +00:00
Kurt Zeilenga
3b03b64b77
Add char* ldap_pvt_get_fqdn(char*) which returns the FQDN of the
...
input. In input==NULL, returns FQDN of local host.
Fixed copy_hostent() uninitialized pointer bug.
Replaced gethostname calls with ldap_pvt_get_fqdn( NULL ) calls.
2000-08-15 01:55:43 +00:00
Kurt Zeilenga
0f5a264dc3
hostbuf should be static
2000-08-15 00:58:56 +00:00
Kurt Zeilenga
f22250baaa
Fix a minor leak.
2000-08-14 18:39:43 +00:00
Kurt Zeilenga
063691aec0
Add support for Sleepycat Berkeley DB 3.1 (ITS#649)
...
changes derived from Ian Logan's patch
2000-08-07 19:46:37 +00:00
Kurt Zeilenga
b33f8b75d3
ITS#647 from Paul R. Turgyan <pturgyan@umich.edu>
...
When calling ldap_search looking for "supportedSASLMechanisms",
a NULL string should be passed to ldap_search and not a NULL pointer.
2000-08-06 05:25:10 +00:00
Kurt Zeilenga
5b856458a2
s/SAFEMEMCPY/AC_MEMCPY/
...
Use AC_FMEMCPY where appropriate (-llber)
2000-07-28 01:07:07 +00:00
Kurt Zeilenga
a50f391bb3
Working SASL security layers!
2000-07-28 00:04:07 +00:00
Kurt Zeilenga
33fb0e055b
From: vtag@novell.com
...
Subject: Bug in ldap_parse_result function (ITS#643)
If a user is using ldap result to obtain search results one message
at a time and calls ldap_parse_result on one of those messages, i.e.
the message chain does not have an LDAP_RES_SEARCH_RESULT message
in the chain, ldap_parse_result returns a LDAP_DECODING_ERROR
instead of LDAP_NO_RESULTS_RETURNED.
2000-07-27 23:44:44 +00:00
Kurt Zeilenga
19091cee32
Revert ber_peek_tag to older, more efficient implementation.
2000-07-26 23:32:39 +00:00
Kurt Zeilenga
ecbb4e55b1
Expose ldap_create_control
...
Conform schema routines to ldap naming conventions
2000-07-22 17:29:54 +00:00
Kurt Zeilenga
cd5aed0bbe
Use sigaction to set SA_RESTART (if appropriate).
...
Portability of this code needs to tested.
2000-07-22 00:37:51 +00:00
Kurt Zeilenga
19324c4292
Remove lint
2000-07-21 21:56:33 +00:00
Kurt Zeilenga
aea3e930d6
Remove unnecessary forward declaration
2000-07-21 21:29:41 +00:00
Kurt Zeilenga
b800a28c1e
Plug leak of syn_names
2000-07-21 02:23:27 +00:00
Kurt Zeilenga
ca5eab2ebc
bit fields should be explicitly unsigned (unless space is allocated
...
for sign bit)
2000-07-20 19:50:40 +00:00
Kurt Zeilenga
804100b431
Fix sasl end game processing.
2000-07-20 18:39:40 +00:00
Kurt Zeilenga
5c10406b9e
Fix up SASL interact error checking
2000-07-19 22:53:22 +00:00
Randy Kunkee
f42e510e03
Fix prototype for dummy ldap_int_sasl_bind.
2000-07-19 07:44:06 +00:00
Kurt Zeilenga
cd3233ceef
Clarify comment
2000-07-17 21:45:18 +00:00
Kurt Zeilenga
9fb680d527
Fix SASL automatic/quiet modes...
2000-07-17 21:36:30 +00:00
Kurt Zeilenga
6393523ffa
Expose sasl flags to -lldap (so they can be quiet)
...
Fix interactive and automatic modes. Quiet needs work.
2000-07-17 21:23:59 +00:00
Kurt Zeilenga
95eea5accc
First cut SASL "interactive" and "quiet" modes (default is "automatic")
2000-07-17 00:56:29 +00:00
Kurt Zeilenga
d2b05a3858
Rework SASL command line arguments. Default is now to authenticate
...
using best available mechanism. (authzid prompting to be disabled)
To use simple bind, -x is required (implied if -P 2) with -D/-[Ww]
To use simple "anonymous" bind, just -x will do.
2000-07-15 23:25:46 +00:00
Kurt Zeilenga
bab26b3142
Move some noise about
2000-07-15 01:28:16 +00:00
Kurt Zeilenga
c8ca70f3ae
Fix callbacks.
2000-07-14 22:00:16 +00:00
Kurt Zeilenga
36fb2d9d78
rework SASL callbacks
2000-07-14 20:56:30 +00:00
Kurt Zeilenga
95df143c33
*ssf > 1 should be *ssf > 0
2000-07-14 04:35:13 +00:00
Kurt Zeilenga
a42351c40f
Fix an interaction error on multiple step binds.
...
Add additional notices. Likely need to add a quiet mode.
2000-07-14 00:54:08 +00:00
Kurt Zeilenga
85c2a7a2a8
Update NT build to include recently added SASL sources.
2000-07-13 23:43:24 +00:00
Kurt Zeilenga
5fc22599e2
Update SASL code to reuse context through life of session.
...
Replace 'negotiated' with 'interactive' bind
Add hooks for SASL/EXTERNAL
Disable SASL security layers
Rework SASL command line and config file parameters
2000-07-13 22:54:38 +00:00
Kurt Zeilenga
1f1993989a
s/enable-unix/enable-local/
...
s/LDAP_PF_UNIX/LDAP_PF_LOCAL/
s/AF_UNIX/AF_LOCAL/
s/PF_UNIX/PF_LOCAL/
2000-07-09 21:49:36 +00:00
Kurt Zeilenga
fe23628faa
ITS#619: TLS PRNG initialization code
...
based upon patch provided by Ted C. Cheng <cheng@ix.netcom.com>
2000-07-08 22:17:50 +00:00
Kurt Zeilenga
821f0e17f2
Fix get/set conconcurrency routines under Solaris
2000-07-06 17:21:21 +00:00
Kurt Zeilenga
4f4f59f333
Rework <ac/errno.h> to provide a STRERROR. Prefers errlist over
...
strerror() as strerror() may not be thread safe. Likely should
be used by SLAPD.
2000-07-06 01:24:52 +00:00
Mark Valence
c1223a70e6
Added NO_THREADS version of ldap_pvt_thread_pool_maxthreads
2000-07-05 17:36:58 +00:00
Kurt Zeilenga
20e6dcec3b
Improved but still broken client tools.
2000-07-04 21:49:00 +00:00
Mark Valence
d4d03e36e5
Added "threads" config to slapd.conf.
2000-07-04 19:24:13 +00:00
Kurt Zeilenga
060ee8ee88
Add Steve Sonntag's (Novell) memory debugging extensions
2000-07-04 18:47:06 +00:00
Kurt Zeilenga
9d1e2ef7e2
Rename local variable 'sun' to 'sa' to avoid clash on Sun computers...
2000-07-04 17:57:21 +00:00
Kurt Zeilenga
8917a2d772
Remove ldap_*_dn() prototypes of #if 0 routines
2000-06-30 22:31:21 +00:00
Kurt Zeilenga
49d73e12a7
Avoid locale specific ctype routines.
2000-06-29 19:38:03 +00:00
Kurt Zeilenga
5d552f6051
Minor cleanup
2000-06-26 01:26:53 +00:00
Kurt Zeilenga
5d281b968d
Disallow kbind over LDAPv3
2000-06-26 01:25:36 +00:00
Kurt Zeilenga
e2fa599482
Move old files to the Attic
2000-06-25 22:01:42 +00:00
Kurt Zeilenga
5f20cf1ed5
Modify ldapsearch(1) significantly. Now handles LDAPv3 search
...
references, extended results, and extended partial results. LDIF
extended to support these new features and reported version 2.
-L now limits output to LDIFv1 for compatibility reasons. No
-L is now LDIFv2. Old alternative form is no longer supported.
Use LDAP_TMPDIR (in ldap_config.h) instead of hardcoded /tmp
Use LDAP_FILE_URI_PREFIX (in ldap_config.h) instead of hardcoded
file://tmp/
2000-06-25 00:35:17 +00:00
Kurt Zeilenga
49f4147385
Added -llber 'N' ber_printf format which inserts a NULL if
...
an internal flag set. Used for SEQUENCE testing. Flag must
be set using debugger. Modified ber_printf to use new format
were needed for extensibility testing.
Added first cut -lldap support for extended responses.
Modified ldapsearch(1) to handle v3 search references when not
chasing. Also added extended/unsolicited notification handling
and extended partial response handling. Changes include a
number of LDIF enhancements.
Fixed getpassphrase() returns NULL bugs
2000-06-24 01:40:39 +00:00
Mark Valence
719b945c78
Fix for thread/fork problem. Don't start a worker thread until one is
...
needed.
2000-06-21 06:09:45 +00:00
Kurt Zeilenga
d4c721ffa3
ITS#601: fix fetch bugs
2000-06-21 00:40:10 +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
ccbd048fb2
Use URI, not HOST
2000-06-18 19:35:52 +00:00
Kurt Zeilenga
8da110a9e7
Extern URI code to support literal IPv6 addresses
...
Copyright 2000 Stig Venaas, UNINETT
All rights reserved.
Redistribution and use in source and binary forms are permitted
without restriction or fee of any kind as long as this notice is
preserved. The name of UNINETT may not be used to endorse or promote
products derived from this software without specific prior written
permission. This software is provided ``as is'' without express or
implied warranty.
2000-06-18 15:54:21 +00:00
Mark Valence
54f7e85770
Put cond_signal loop inside of mutex'ed area to fix race bug (seen on
...
Digital OSF 4.0e on an Alpha?)
2000-06-18 05:56:17 +00:00
Kurt Zeilenga
e393afaeec
Kill LinuxThreads clones
2000-06-17 18:49:25 +00:00
Kurt Zeilenga
35e77f88be
Add asserts aliasing debugging purposes.
2000-06-16 21:25:03 +00:00
Kurt Zeilenga
ddcb56546d
Fix mod_values v mod_bvalues typo
2000-06-16 20:39:13 +00:00
Kurt Zeilenga
ae61f3dcaf
Memory leak in referral code (ITS#596)
...
Apply patch from Steve Sonntag <vtag@novell.com>
2000-06-16 20:00:21 +00:00
Kurt Zeilenga
0c484042a0
Fix typo in last commit
2000-06-16 19:40:49 +00:00
Kurt Zeilenga
ac659e20d3
Add 1st libldap IPv6 patch (ITS#594) from Stig Venass.
...
Copyright 2000 Stig Venaas, UNINETT
All rights reserved.
Redistribution and use in source and binary forms are permitted
without restriction or fee of any kind as long as this notice is
preserved. The name of UNINETT may not be used to endorse or promote
products derived from this software without specific prior written
permission. This software is provided ``as is'' without express or
implied warranty.
2000-06-16 19:15:08 +00:00
Mark Valence
9c7127cd81
Check if process is installed/running as service on NT beofre trying t
...
o start it as a service (gets around an annoying pause when starting u
p as a non-service).
2000-06-15 02:21:01 +00:00
Kurt Zeilenga
b7d1b10bca
Minor cleanup
2000-06-14 21:11:56 +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
63d05c74f4
Fix up NT port after thread changes
2000-06-13 20:43:59 +00:00
Kurt Zeilenga
8665618210
Fix Novell URL kludge
2000-06-13 05:50:23 +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
922c3ad954
Found ber_error_print pieces which I forgot commit.
2000-06-10 23:13:01 +00:00
Kurt Zeilenga
1ef14875db
Thought I fixed these errors previously... oh well.
2000-06-10 23:06:08 +00:00
Kurt Zeilenga
a56c161bdb
Misc code cleanup.
2000-06-10 22:39:30 +00:00
Kurt Zeilenga
77df7c6098
Add ldap_unbind_ext_s
2000-06-10 17:29:10 +00:00
Kurt Zeilenga
89d7b86178
Add sort/vlv controls
2000-06-10 17:28:09 +00:00
Mark Valence
1f4b174c37
Fix a race condition by removing (unnecessary) unlock/yield/lock.
2000-06-10 04:12:49 +00:00
Mark Valence
d6ee9542ec
A little cleanup
2000-06-10 01:39:05 +00:00
Kurt Zeilenga
7b836babb6
Fix LBER_MEMORY_DEBUG failed realloc bug
2000-06-10 00:17:55 +00:00
Kurt Zeilenga
55dba4395f
Update PF_INET6 and PF_UNIX detection, both default to auto
2000-06-09 23:09:51 +00:00
Mark Valence
f5101f8274
Fix operator precedence bug.
2000-06-09 06:48:43 +00:00
Mark Valence
0715e29ae5
Fix uninitialized var bug.
2000-06-09 06:45:14 +00:00
Kurt Zeilenga
77b235fba5
Apply Novell's IN_KERNEL support (ITS#576)
2000-06-08 17:11:57 +00:00
Mark Valence
3c0e4d35a1
Added a yield or two for Pth.
2000-06-08 06:55:04 +00:00
Mark Valence
a1a78cd2e8
Thread pools enabled again -- test008 passes on NT, cthreads, pthreads
...
(on Linux), with max_concurrency set to 0 (as many as needed), 1, 2,
and 3.
2000-06-08 05:14:46 +00:00
Mark Valence
da355b317e
Disable thread pooling while I fix the deadlock.
2000-06-08 02:07:49 +00:00
Kurt Zeilenga
61be4bd0c8
remove pointer v. int lint from ber_sockbuf_ctrl.
2000-06-08 01:08:01 +00:00
Kurt Zeilenga
e68b429d45
Really disable pthread rw locks
2000-06-08 00:29:32 +00:00
Kurt Zeilenga
0eb19657fa
Add missing -DNO_THREADS trylock and make minor change to TLS
...
in attempt to get it work with GNU PTH.
2000-06-07 23:58:16 +00:00
Kurt Zeilenga
c6e4ad6c12
Add VLV/Sort controls (from Novell)
2000-06-07 23:43:56 +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
4933f894ba
Include <lber.h> to use ber_strdup(). (probably should create/use
...
macros LUTIL_STRDUP and friends).
2000-06-07 18:49:36 +00:00
Kurt Zeilenga
9a8cc65162
Update a few misc docs
2000-06-07 06:33:59 +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
93a3f4e7b1
Fix typo in comment
2000-06-06 23:46:45 +00:00
Kurt Zeilenga
5cc86c1745
Demonstrate how rdwr routines could be easily replaced.
...
Update comment with reference to publically available examples.
2000-06-06 21:20:38 +00:00
Mark Valence
72bf2552eb
In preparation for thread pools
2000-06-06 19:59:34 +00:00
Kurt Zeilenga
c1002301d5
Don't include files moved to attic
2000-06-06 02:12:58 +00:00
Kurt Zeilenga
252ccfddbc
(very) incomplete Digest-MD5 impl to Attic (until someone steps up
...
to the plate)
2000-06-06 00:27:49 +00:00
Kurt Zeilenga
7573a81efe
getbyname/getbyaddr should share mutex per ITS#563.
...
Patch provided by Steve @ Novell, thanks!
2000-06-06 00:23:50 +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
921d24cf3a
Fix up makefiles after removal of getdxname.c
2000-06-05 07:48:57 +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
Mark Valence
bb1d03a5e8
Clean up some NT lint.
2000-06-04 04:35:13 +00:00
Kurt Zeilenga
c5765e3827
Use provided macros and comment
2000-06-03 17:24:21 +00:00
Kurt Zeilenga
743598b3d0
This is a one-liner Steve missed in the referral patch. Make sure the
...
ldo_rebindproc value has a sane value.
2000-06-02 23:51:31 +00:00
Kurt Zeilenga
c23536faa9
remove lint
2000-06-01 22:01:00 +00:00
Kurt Zeilenga
b78eec4a25
Remove lint
2000-06-01 22:00:12 +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
81d2747247
A couple of minor fixes to LDAPv3 referral chasing
2000-05-31 17:47:33 +00:00
Kurt Zeilenga
a26cef7fc8
LDAPv3 referrals changes by Steve Sonntag @ Novell
2000-05-31 17:34:43 +00:00
Kurt Zeilenga
58522e3416
Clean links, patch from <Christian.Lorenz@suse.de>
2000-05-31 17:30:03 +00:00
Kurt Zeilenga
b66567f1f8
Minor fix to last commit
2000-05-30 19:07:07 +00:00
Kurt Zeilenga
875610cfcc
Referral hack
2000-05-30 18:32:10 +00:00
Kurt Zeilenga
a43ef5bac4
Preset error just in case
2000-05-29 19:47:48 +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
1bc5314d62
Fix DNSSRV initialization bug
2000-05-26 18:05:27 +00:00
Kurt Zeilenga
e0fc97bfa7
DB3 fixes
2000-05-26 05:47:02 +00:00
Kurt Zeilenga
1497337335
ITS#533: simplify ber_next_read
2000-05-26 01:23:47 +00:00
Kurt Zeilenga
63de8a6ea5
s/0/LDAP_MSG_ONE/ per Steve's patch (ITS#542)
2000-05-26 01:11:18 +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
Kurt Zeilenga
51fb094701
ITS#541: fix log check bug
2000-05-23 00:32:50 +00:00
Julio Sánchez Fernández
001061daf9
Added extensions to syntaxes, matching rules and object classes.
2000-05-22 10:43:01 +00:00
Kurt Zeilenga
bcf8f7eeb7
Remove lint
2000-05-22 06:19:49 +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
f2912805fb
s/2000-2000/2000/ in copyright notice
2000-05-21 18:15:00 +00:00
Kurt Zeilenga
8045b54124
Use getpassphrase() instead of getpass() if available.
2000-05-19 18:41:26 +00:00
Kurt Zeilenga
53338dc4e2
Fix nul ('\0') string termination bug introduced by use of
...
memalloc/memcpy instead of strdup
2000-05-18 16:44:32 +00:00
Kurt Zeilenga
1d00cd34c5
SOCKBUF_VALID should be called with sb not ber
2000-05-17 22:26:06 +00:00
Howard Chu
835d0ebd63
Fix ldif_parse_line, binary attributes got truncated because the final
...
value was copied with ber_strdup.
2000-05-17 05:21:03 +00:00
Kurt Zeilenga
6c49fe7d1b
Fix typo in last commit
2000-05-16 18:32:45 +00:00
Kurt Zeilenga
88411f5c27
Modify dn2domain code such that domains produced are rooted.
...
That is, they end with '.'.
2000-05-16 18:31:35 +00:00
Kurt Zeilenga
4e5992c190
Fix unsigned * vs unsigned long * bugs
2000-05-16 04:52:37 +00:00
Kurt Zeilenga
e3f3500942
Forget return in last commit
2000-05-14 03:38:27 +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
3e82a5309b
Add missing copyright notices
2000-05-13 02:43:19 +00:00
Kurt Zeilenga
29d9fa20a2
Y2k copyright update
2000-05-13 02:36:07 +00:00
Kurt Zeilenga
9417c5fdc7
Add (old) copyright... [we really should to update these]
2000-05-13 00:50:27 +00:00
Kurt Zeilenga
69fbf137aa
make ntservice error to string routines static
...
#undef __RETSTR before #define
2000-05-13 00:48:17 +00:00
Howard Chu
3f618bfe03
Fix ambiguous return value in lutil_passwd
2000-05-13 00:10:24 +00:00
Kurt Zeilenga
fadaf7f706
Fix typo in last commit (fixing multiple byte tags)
2000-05-13 00:02:36 +00:00
Howard Chu
237b00049a
Moved GetLastErrorString to ntservice.c. I missed it before, thought it
...
was unused but it's needed in ntservice.c
2000-05-12 23:53:14 +00:00
Kurt Zeilenga
58cede64c1
No longer needs <windows.h>
2000-05-12 23:43:33 +00:00
Kurt Zeilenga
304a57740a
nt_err.c has moved from lutil to lber
2000-05-12 23:37:28 +00:00
Howard Chu
9a79d03e13
Fix previous change to getRegParam, SERVICE_NAME is only known in slapd.
2000-05-12 21:26:30 +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
8d2aba12b4
Fix typo in lutil_debug for NT: file -> log_file
2000-05-12 20:01:40 +00:00
Kurt Zeilenga
8c15a05b2e
Make sure we don't overallocate callbacks
2000-05-12 19:41:18 +00:00
Howard Chu
878466d375
Fix previous patch, zero out lud_next on new urldesc
2000-05-12 10:48:27 +00:00
Howard Chu
7d402a5562
Fix ldaps / TLS processing...
...
open.c: open_ldap_connection was not honoring the TLS config option.
url.c: ldap_url_dup was not copying the properties.
2000-05-12 10:43:20 +00:00
Howard Chu
36eddf715a
Exit loop after matching command is found in openldap_ldap_init_w_conf
2000-05-12 10:40:29 +00:00
Howard Chu
2e5e4c3f20
More fixes for NT support:
...
liblutil/ntservice.c change registry key path used for non-default
service names.
slapd/Makefile.in change to generate slapd.syms dynamically
slapd/daemon.c fix to make NT service ignore SIGBREAK
slapd/main.c fix to allow NT to retrieve listening url from registry
slapd/nt_svc.c fix for exported symbols
slapd/result.c change use of strerror to sock_errstr
slapd/slapd.syms no longer needed
2000-05-11 20:50:20 +00:00
Kurt Zeilenga
643864c569
Change negotiated mechanism:
...
If application provide one, use it. If application doesn't
provide one, use best of server advertised.
Fix SASL/ANONYMOUS (not normally used, but should work)
PLAIN is not currently working... might be local to me as my
Cyrus installation is a bit hosted.
2000-05-11 20:16:26 +00:00
Howard Chu
7ca81c0a03
Fix one more chk_unix ifdef
2000-05-11 20:00:47 +00:00
Kurt Zeilenga
cdb709fd27
Fix unbalanced #endif
2000-05-11 16:06:41 +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
a556140e65
Fix for systems like AIX where pthread_create creates Detached by default
2000-05-11 09:51:24 +00:00
Howard Chu
588b23cd1c
Fix dynamic linking dependencies for NT and Unix
2000-05-11 09:49:40 +00:00
Howard Chu
b0faccce56
Added debuglevel parameter to ldap_int_initialize().
2000-05-11 09:48:40 +00:00
Howard Chu
d706765e56
Fix error detection for NT
2000-05-11 09:47:55 +00:00
Howard Chu
dddf399090
Fix dynamic link dependencies for NT and Unix
2000-05-11 09:47:15 +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
0d6e1a4cbe
Fix cred passing.
2000-05-11 01:40:02 +00:00
Kurt Zeilenga
f9411ca154
Fix another bug... seems to be working... ldap://root.openldap.org/
2000-05-11 01:12:48 +00:00
Kurt Zeilenga
560fe7ade0
Fix == typo
2000-05-11 00:50:14 +00:00
Kurt Zeilenga
3553f9aab6
Fix #ifdefs when --disable-crypt
2000-05-10 23:26:42 +00:00
Kurt Zeilenga
fbb58dec53
Fix minor bugs...
2000-05-10 22:21:57 +00:00
Kurt Zeilenga
e87e01b9c5
DNS SRV meat (a work in progress)
2000-05-10 21:48:18 +00:00
Howard Chu
7a586d4e49
Add ld parameter to ldap_pvt_tls_start invocations. See tls.c...
2000-05-10 21:02:46 +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
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
0b3a6786fe
Use (unsigned char) -1 instead of 0xffU.
2000-05-03 18:55:27 +00:00
Kurt Zeilenga
014afae269
setting UFN prefix to NULL should clear prefix not cause crash.
2000-05-03 10:45:36 +00:00
Kurt Zeilenga
95092681dd
Clarify error string, add comment
2000-04-26 09:17:54 +00:00
Kurt Zeilenga
459194f347
Fix typo in multbyte tag code
2000-04-26 09:17:05 +00:00
Kurt Zeilenga
5043287a4c
Fix NULL filter bug
2000-04-25 13:52:44 +00:00
Kurt Zeilenga
802ee714e4
Framework for authpasswd. Needs work. Behind #ifdef
2000-04-25 13:28:03 +00:00
Kurt Zeilenga
1973c664cc
Fix NULL pointer deref bugs
2000-04-25 10:43:15 +00:00
Kurt Zeilenga
da5673c71a
Apply experimental multibyte tag fix
2000-04-25 10:42:32 +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
16dc181de4
Add RCSid
2000-04-19 13:37:52 +00:00
Kurt Zeilenga
6a4ff3b996
Fix == v != bug
2000-04-19 13:35:43 +00:00
Kurt Zeilenga
21431725fc
fix = vs == bug
2000-04-12 01:06:58 +00:00
Kurt Zeilenga
870dbca576
objectclass=* -> NULL
2000-04-12 01:00:48 +00:00
Kurt Zeilenga
4035b05232
ITS#441: unhex escape referrals. Needs review before being
...
applied to RE 1.2.
2000-03-20 22:00:16 +00:00
Kurt Zeilenga
1a348f9fbe
Return okay after setting LDAP_OPT_X_TLS_CERT (ITS#447)
2000-03-18 23:55:51 +00:00
Kurt Zeilenga
4c0be829e1
Fix usage in comment
2000-03-17 02:07:59 +00:00
Kurt Zeilenga
c2050e04d3
ITS#479 fix: ber_put_seqorset() writes a few bytes beyond an allocated buffer
...
Commit based upon patch and comments provided by Alan Clark <aclark@novell.com>.
> Kudos to Dave Steck for the find and fix
2000-03-15 19:47:22 +00:00
Kurt Zeilenga
535cc1dbbc
Add missing ;
2000-03-14 04:27:00 +00:00
Kurt Zeilenga
72c6446ef6
Mark statically allocated BerElement as valid.
2000-03-14 04:25:49 +00:00
Kurt Zeilenga
117b6a91d0
More fixes and comments
2000-03-14 04:08:12 +00:00
Kurt Zeilenga
c43fec53f5
Cyrus SASL uses screwy terms.
2000-03-14 03:08:46 +00:00
Kurt Zeilenga
5701fec1b5
correct callback numbering
2000-03-14 02:59:53 +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
db662b516f
Fix NT builds and remove lint
2000-03-13 19:30:14 +00:00
Julio Sánchez Fernández
50dafec453
Fixed an irritating problem with nss_ldap and pam_ldap. Since these
...
modules are dynamically loaded, they summon libldap when needed.
However, depending on the security libraries available when the
shared libldap was built, the latter brings up other dependencies.
On some platforms, it seems that no solution is available: no
indirect dynamic dependencies. But for some platforms where this
is supported (in particular, Linux), the shared libldap must
contain info on what other dynamic libraries it needs. We were
failing to put this info into the shared library. This patch
seems to fix it.
2000-03-13 17:55:41 +00:00
Julio Sánchez Fernández
b9fb4c442c
Useronly logic was inverted, we were ignoring the whole ldap.conf,
...
except where we should.
2000-03-13 12:31:35 +00:00
Kurt Zeilenga
c044b2a667
Remove race condition noted in ITS#216.
2000-03-11 00:58:10 +00:00
Kurt Zeilenga
6e5d2eea4e
Add missing parens so that last commit behaves as desired.
2000-03-10 18:16:22 +00:00
Kurt Zeilenga
5b5b43a9e0
ITS#471: fix handling of delete referrals.
2000-03-08 18:56:22 +00:00
Kurt Zeilenga
655c0bda41
Ignore space in filter: ( !(foo=bar))
2000-02-21 20:57:48 +00:00
Kurt Zeilenga
6cb60f381a
Eliminate second session protocol version field.
2000-02-18 19:57:38 +00:00
Kurt Zeilenga
6c6ecc15d5
Add comment concern appropriate use of LDAP_MEMORY_DEBUG
...
(basically, it's for testing internals, don't enable it otherwise)
2000-02-16 23:51:34 +00:00
Kurt Zeilenga
b8c8f6ef6f
Fix ldap_set_option( NULL, LDAP_OPT_PROTOCOL_VERSION, &v ) as
...
suggested by Steve Sonntag.
2000-02-16 22:59:15 +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
d0d80a633a
Put *free(NULL) asserts behind LDAP_MEMORY_DEBUG
2000-02-11 21:11:44 +00:00
Kurt Zeilenga
6968ede534
ITS#450: teach LDBM/GDBM about cursors
2000-02-11 02:05:14 +00:00
Kurt Zeilenga
0ba3d75913
Don't chdir("/"). Root may not be writable to daemon.
...
Only user can select appropriate run directory. Best left to user.
2000-02-08 04:22:31 +00:00
Kurt Zeilenga
25af82b3ea
Use required form if value is zero length, eg "attr-desc:".
...
Use BASE64 if attr-desc includes ";binary"
2000-02-03 22:28:12 +00:00
Kurt Zeilenga
2549654bb5
Add comment about leaked on exit values.... we likely should
...
implement an at_exit() handler.
2000-02-02 21:26:36 +00:00
Luke Howard
30522f7437
Changed (!strcmp(...)==0) to (strcmp(...)==0); obviously
...
wrong. Fix from adamson@andrew.cmu.edu .
2000-02-01 23:34:16 +00:00
Kurt Zeilenga
0919e503cd
Use LDAP_CONST, not const, in public function declarations.
2000-02-01 01:11:26 +00:00
Kurt Zeilenga
02a604db21
Really fix VPATH support...
2000-01-28 21:52:28 +00:00
Kurt Zeilenga
11c92c8fc8
Last change actually broke VPATH support
2000-01-28 21:38:18 +00:00
Kurt Zeilenga
106ec28414
Fix VPATH support.
2000-01-28 21:32:42 +00:00
Kurt Zeilenga
b9b04e12f0
Remove double listing of libldif which breaks 'make veryclean'
2000-01-28 21:18:55 +00:00
Kurt Zeilenga
10d904735b
Add NT build support for Unicode library.
2000-01-27 01:04:36 +00:00
Kurt Zeilenga
4eb13130a9
typedef ber_int_t ldap_ucs4_t
2000-01-27 01:04:17 +00:00
Kurt Zeilenga
597ddd3a80
unifdef -D__STDC__
2000-01-27 01:00:02 +00:00
Kurt Zeilenga
dd1e4fc53d
Add -llunicode to build environment
2000-01-26 00:00:45 +00:00
Kurt Zeilenga
107b22a73c
Fix typo
2000-01-25 23:58:44 +00:00
Kurt Zeilenga
92705f0061
Remove Java files from HEAD.
2000-01-25 22:47:53 +00:00
Kurt Zeilenga
fe98d9fa7b
Initial revision
2000-01-25 22:38:34 +00:00
Kurt Zeilenga
f3cb97e973
Add utf-8 to MSVC projects and remove lint.
2000-01-25 20:22: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