Kurt Zeilenga
0307dd3b38
Use pipe(2) if descriptors are selectable.
1999-08-31 17:01:10 +00:00
Kurt Zeilenga
ac8b5468aa
Clean up soctpair for NT. Add USE_PAIR to allow pair(2) use.
1999-08-31 16:47:42 +00:00
Kurt Zeilenga
b509dd4d8c
sockpair cleanup including:
...
provide prototype in lutil.h
use LBER_SOCKET_T instead of int in prototype. (didn't use
ber_socket_t so all of lber.h wouldn't have be dragged in)
rename signal handlers, use RETSIGTYPE, and make SIGHUP wake
rename fd to sd to reflect descriptor must be usable as a socket.
renamed sel_exit_fds to wake_sds to reflect current use
improve readability of sockpeer.c including removing obtuse goto.
1999-08-31 05:18:06 +00:00
Howard Chu
c057653881
Added lutil_pair()
1999-08-31 03:25:23 +00:00
Hallvard Furuseth
6632e41ee8
Export ldap_pvt_<find_wildcard,filter_value_unescape>() from libldap.
...
Use them in slapd/str2filter.c.
1999-08-31 00:44:49 +00:00
Kurt Zeilenga
878d489ea9
Do not overwrite charray argument if charray_add realloc fails.
...
Caller is required to call ldap_charray_free as needed.
1999-08-30 01:24:33 +00:00
Hallvard Furuseth
66704f67b9
Catch \ at end of filter
1999-08-28 22:15:16 +00:00
Hallvard Furuseth
4d94092995
Remove 'cast away const'
1999-08-28 22:14:21 +00:00
Hallvard Furuseth
635a666359
Fix typo in filter_value_unescape()
1999-08-28 22:06:52 +00:00
Kurt Zeilenga
9bf50242c3
Plug ber leakage:
...
result was leaking ber's in some error cases. ber_flush now called
with no freeing so that caller of send_ldap_ber() can free its own ber.
c->c_currentber was also being leaked if connection was destory
current when a PDU input was outstanding.
Fixed ber_flush to free ber upon write only to file.
1999-08-27 05:45:53 +00:00
Kurt Zeilenga
406f33eb12
This fixes dn2id delete bug... but breaks modrdn.
1999-08-26 00:48:24 +00:00
Kurt Zeilenga
cc3615314b
Defer addition until we have some basic UTF-8 routines
1999-08-25 21:27:39 +00:00
Kurt Zeilenga
af17a9f7ad
Add dn.c
1999-08-25 06:52:28 +00:00
Kurt Zeilenga
5c63fd55b5
Implement ldap_dn_normalize and friends. Should be used by clients
...
to validate input dn's BEFORE sending dn's to server.
Also fixed getfilter to use REG_EXTENDED|REG_NOSUB. (and fixed one
case where REG_BASIC was still used).
s/strdup/LDAP_STRDUP/
Added ldap_pvt_str2lower/upper
1999-08-25 06:44:08 +00:00
Gary Williams
f8a3a664fc
LDAP_P is only for prototypes, remove from function def
1999-08-24 18:42:11 +00:00
Kurt Zeilenga
2d2719123d
Rename filter entry's strcpy_special() to strcpy_regex() to better
...
reflect its purpose. Modify switch to support REG_EXTENDED expressions.
Use REG_EXTENDED instead of REG_BASIC everywhere.
Modify <ac/regex.h> to support <gnuregex.h> for testing purposes.
Requires: env CPPFLAGS="-DHAVE_GNUREGEX_H=1" LIBS=-lgnuregex ./configure
1999-08-24 01:13:30 +00:00
Kurt Zeilenga
b8a3a153bb
Axe <varargs.h> support. Assume STDC C translator is available
...
to build OpenLDAP.
1999-08-24 00:27:53 +00:00
Hallvard Furuseth
968f742d7a
Remove lint
1999-08-22 03:35:10 +00:00
Kurt Zeilenga
1b0aa8cf23
Support for native GNU Pth Threads (--with-threads=pth)
...
Tests behave as expected excepting slapd sometimes does not
shutdown properly.
1999-08-22 03:04:33 +00:00
Kurt Zeilenga
5cf315c31f
Experimental support for GNU Pth's Posix Thread API. This might be a
...
suitable for systems with poor (or nonexistant) Pthread implementations.
1999-08-21 17:19:10 +00:00
Kurt Zeilenga
9e82379b6e
More CSRI malloc debugging support and destroy sockbuf fix.
...
Test008 now runs without leak.
1999-08-19 18:48:17 +00:00
Hallvard Furuseth
2ae08eecad
Fix printf formats: print msgtype as %lu, remove spurious sval arg in apitest
1999-08-17 21:14:03 +00:00
Hallvard Furuseth
fa4c4448c4
Add const, to fix "cast away from const" warnings
1999-08-17 21:09:26 +00:00
Hallvard Furuseth
9c3b49ec5c
Add missing newline at end of file
1999-08-17 19:54:37 +00:00
Kurt Zeilenga
e4f6d54877
New dn2id format with base/one/subtree indices (ldbm/bdb2)
...
New id2entry (id-less) format (ldbm/bdb2)
Removed id2children (ldbm/bdb2)
Added nextid database (ldbm)
Broke ldbmtest
Removed ldif2* tools (ldbm/bdb2)
Added slap tools (slapadd, slapcat, slapindex)
1999-08-17 19:00:59 +00:00
Kurt Zeilenga
eea46a1bb4
Fix tid vs thread typo
1999-08-17 00:10:43 +00:00
Hallvard Furuseth
6147119dc8
Add ldap_*2name() in <include,libldap>/schema, use them in slapd/schema
1999-08-16 02:59:11 +00:00
Hallvard Furuseth
e5e91d94aa
Add missing newline and EOF
1999-08-16 02:40:00 +00:00
Kurt Zeilenga
83abd65d49
Add extensible filter support to -lldap. Need to implement server
...
side (which most is dependent upon having matching rule support).
1999-08-07 18:54:49 +00:00
Kurt Zeilenga
0fe5da0f9a
Fix filter escapes. ITS#247
1999-08-07 04:48:16 +00:00
Kurt Zeilenga
e0691dfbc0
create SASL_LIBS to hold -lsasl
...
create SECURITY_LIBS (top.mk) to order $SASL_LIBS $KRB_LIBS $TLS_LIBS
use $SECURITY_LIBS in Makefile.in's instead of $KRB_LIBS $TLS_LIBS
1999-08-05 02:25:19 +00:00
Kurt Zeilenga
0a8f4c0458
base64 encode userPassword
1999-08-05 00:30:45 +00:00
Kurt Zeilenga
dce3f6e5bc
Add copyright notices
1999-08-04 23:57:27 +00:00
Kurt Zeilenga
3820b35870
Use -llber set_nonblock implementation.
...
Use ldap_int_tblsize instead of s+1 in select.
Need to eliminate all to read(2).
1999-08-04 18:32:38 +00:00
Kurt Zeilenga
7275861039
Provide set_nonblock code which acts upon ber_socket_t and use this
...
as in sockbuf_set_nonblock code. Allows -llber and -lldap to share
a common implementation.
1999-08-04 18:29:59 +00:00
Gary Williams
b1701d24e1
if urls is NULL, default to ldap:///
1999-08-04 18:26:19 +00:00
Kurt Zeilenga
b3ce9d497c
non-blocking connect needs special handling under Winsock.
1999-08-04 00:40:03 +00:00
Kurt Zeilenga
2b79ff2c48
Initial inet_aton() detection.
1999-08-03 20:02:44 +00:00
Kurt Zeilenga
1b41dfbce0
LDAP_OPT_NETWORK_TIMEOUT feature (ITS#239) from Lars Uffmann.
...
Needs a bit more work.
- global net/api timeouts are not inherited on session creation.
- need configure check for inet_aton() (coming soon)
- ioctl/fcntl portability issues (should share implementation
with lber routines)
1999-08-03 19:27:22 +00:00
Julio Sánchez Fernández
4f92977f33
Needs ldap_config.h to get LDAP_DIRSEP
1999-08-03 19:04:02 +00:00
Kurt Zeilenga
59c8a88c2f
Needs <ac/stdlib.h> for EXIT_*
1999-08-03 18:41:55 +00:00
Kurt Zeilenga
df8f7cbb9b
s/exit(1)/exit(EXIT_FAILURE)/
...
s/exit(0)/exit(EXIT_SUCCESS)/
add <ac/stdlib.h> where needed and other minor header adjustments
1999-08-03 18:14:24 +00:00
Hallvard Furuseth
f7fe39e5f2
s/*vlenp = NULL;/*vlenp = 0;/
1999-08-03 04:02:16 +00:00
Kurt Zeilenga
97683ac5fd
ldap_perror: don't print matched DN or error text if length is zero.
1999-08-02 20:03:50 +00:00
Kurt Zeilenga
c73f17fd6e
Add -dn as a synonym for -dnt.
1999-08-02 17:19:05 +00:00
Kurt Zeilenga
236be7f5a7
Fix --enable-dns compilation problems.
1999-08-02 07:41:29 +00:00
Hallvard Furuseth
8a9b9292de
Change unsigned long cast of offset to size_t in ldap_build_filter()
1999-08-02 05:51:04 +00:00
Hallvard Furuseth
a9871d7402
Fix bitmasks '0xhh << n' to '(masked type)0xhh << n'
1999-08-02 01:55:48 +00:00
Hallvard Furuseth
2d4f915de9
Remove unsigned long: Change to ber_len_t or ber_tag_t.
...
Remove sizeof(long).
Change ber_getnint to return ber_len_t instead of ber_tag_t.
1999-08-02 01:50:08 +00:00
Hallvard Furuseth
6ae8c7e5cf
Fix ber_put_int_or_enum to do its bit fiddling with unsigned values
1999-08-02 01:38:00 +00:00