Commit Graph

485 Commits

Author SHA1 Message Date
Howard Chu
35a3c5017f Define sock_errno() and sock_errstr() for Unix and winsock. 1999-08-29 01:56:51 +00:00
Howard Chu
9a58202116 Define strerror() if it doesn't exist. 1999-08-29 01:56:00 +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
Kurt Zeilenga
7ee686dbb4 Fix NEEDS typo 1999-08-25 06:31:56 +00:00
Kurt Zeilenga
0211b35d8d s/.h.nt/.nt/ to allow for better NMAKE processing 1999-08-24 23:47:11 +00:00
Kurt Zeilenga
95ef9e8627 Prepare to add ldap_dn_*() routines from slapd. 1999-08-24 23:45:52 +00:00
Kurt Zeilenga
78e4cb57aa Fix ManageDSAit OID (had extra .16) 1999-08-24 04:22:23 +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
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
87675a953d ACIs from Mark Valence <kurash@sassafras.com> (ITS#261) 1999-08-20 22:42:04 +00:00
Kurt Zeilenga
c51f35fe0f Add hacks to allow debugging with CSRI malloc.
(test001-populate runs without leak)
Free global entry string buffer on shutdown.
1999-08-19 17:06:28 +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
Hallvard Furuseth
6147119dc8 Add ldap_*2name() in <include,libldap>/schema, use them in slapd/schema 1999-08-16 02:59:11 +00:00
Kurt Zeilenga
1a5734c580 Remove lber_types.h on 'make veryclean' 1999-08-15 21:58:47 +00:00
Kurt Zeilenga
a805d80ef2 Rebuild configure and portable.h.in 1999-08-08 17:17:44 +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
7b6a923937 Add basic configure support of --enable-quipu 1999-08-05 01:23:04 +00:00
Kurt Zeilenga
c73106936b Add copyright notice. 1999-08-04 23:59:53 +00:00
Kurt Zeilenga
bd9323efc3 Use LDAP_P in prototype for ldap_pvt_inet_aton 1999-08-04 18:27:15 +00:00
Kurt Zeilenga
b3ce9d497c non-blocking connect needs special handling under Winsock. 1999-08-04 00:40:03 +00:00
Kurt Zeilenga
ecb9c3b3fb Add multimaster replication support (ITS#170) based upon
updated patch submitted Philipp Klaus <ldapml@internet.access.ch>
Can be enabled using --enable-multimaster.  TODO:
Replication test likely should be adjusted to test multimaster environment.
1999-08-03 22:15:19 +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
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
Kurt Zeilenga
f90ed5aef8 Add a little SASL framework and remove old X-DIGEST-MD5 hardcode.
This code is not called (yet).
1999-08-03 02:37:42 +00:00
Kurt Zeilenga
8a0b9e8a3b Add HAVE_CYRUS_SASL define 1999-08-03 00:50:52 +00:00
Kurt Zeilenga
6f51f4d671 Add detection for Cyrus SASL library.
Improve detection of FreeBSD FetchURL library.
1999-08-02 23:35:03 +00:00
Hallvard Furuseth
e7738c2df7 s/LDAP_CONST/const/ in ldap_pvt_asser() prototype 1999-08-01 21:41:46 +00:00
Hallvard Furuseth
e259fc72e0 Define EXIT_SUCCESS and EXIT_FAILURE if necessary 1999-08-01 21:18:38 +00:00
Hallvard Furuseth
b10d32ab18 Add missing LDAP_CONST in ber_pvt_assert() prototype 1999-08-01 21:08:14 +00:00
Hallvard Furuseth
d945144131 s/unsigned long/ber_len_t/ in typedef BERTranslateProc 1999-08-01 20:29:11 +00:00
Hallvard Furuseth
d5840e809f Always include <stdlib.h>, to avoid massive breakage when !STDC_HEADERS.
If someone really lacks stdlib.h, they should introduce HAVE_STDLIB_H.
1999-08-01 18:44:32 +00:00
Kurt Zeilenga
48d5465ab7 Add support for "foo:< http://localhost/path.
Requires FreeBSD's -lfetch...
Implementations to other URL APIs encouraged.
Probably should be moved to -llutil.
1999-07-31 03:23:26 +00:00
Kurt Zeilenga
9160692ab1 Remove "const" error... and add prototype for yet unimplemented
ldif_fetch_url().
1999-07-31 02:17:26 +00:00
Kurt Zeilenga
b73b0c6158 Enhance LDIF handling
ldapsearch:
    use draft guidelines for determining when to use
    -t only writes binary attributes to files
    -tt writes all attributes to files
    output now lists URL instead of path to such files
    -T dir can be used to specify directory to create temp files in
    -V urlprefix can be used to change the URL prefix
    LDIF is now commented (can be disabled using -LL)
    LDIF now contains version attribute (can be disabled with -LLL)
LDIF:
    put interface changed to allow caller to specify how to encode
    put interface uses draft guidelines for determine when to base64 encode
    wrapping kludged to match old off by one bug
Tests:
    removed trailing space from some attributes (to avoid base64 encoding)
    enabled -LLL in defines.sh (should sed output to remove
        wrapping/comments/redundant separators)
Misc:
    updated codes outputting LDIF to use new put interface
TODO:
    handling of version attribute on input
    handling of URLs on input (ie: fetch URL)
1999-07-30 23:00:02 +00:00
Kurt Zeilenga
2967e3c9ef Relocate headers checks to above libraries such that their results can
be used during library and function checks.
1999-07-29 18:38:21 +00:00
Kurt Zeilenga
5048836a50 Update INSTALL based upon new snapshot naming.
Update lutil.h copyright.
CHANGES is a release engineering document.  Not maintained in HEAD.
1999-07-28 20:31:41 +00:00
Gary Williams
67cdcb8df9 define SLAPD_RLOOKUPS since it looks like connection_init wont work without it 1999-07-27 17:26:15 +00:00
Kurt Zeilenga
fc4fe0ec7e Generate new configure after new netinet/tcp.h test. 1999-07-27 00:52:50 +00:00
Kurt Zeilenga
b738f2a4db Check for netinet/tcp.h
Update res_search check and place behind --enable-dns.
1999-07-27 00:31:08 +00:00
Kurt Zeilenga
a39cf6f93d Add support for LDAP_ALL_OPERATIONAL_ATTRIBUTES ("+") (based on
LDAPext discussions).
Add attrs and attrsonly support to monitor/config info.
Add rdn attributes to schema/monitor/config.
Add extensibleObject objectclass to schema/monitor/config.
Add top objectclass to rootdse/monitor/config.
Remove opattrs option from send_search_entry().
1999-07-24 03:39:23 +00:00
Kurt Zeilenga
560844e18f NT has sys_errlist. 1999-07-24 00:04:44 +00:00
Kurt Zeilenga
095f78b392 Use AC_CACHE_CHECK instead of AC_CACHE_VAR.
Rework sys_errlist detection to set HAVE_SYS_ERRLIST if sys_errlist
exists.  If it declaration is needed, DECL_SYS_ERRLIST is also set.
1999-07-24 00:04:05 +00:00
Kurt Zeilenga
259d56da08 Use AC_DEFINE third argument to generate portable.h.in entries instead
of explicit acconfig.h entries.
1999-07-23 21:10:02 +00:00
Kurt Zeilenga
d147e609d2 Implement TCP_NODELAY on both client and server side. 1999-07-22 21:49:35 +00:00
Kurt Zeilenga
543aafd991 Implement RFC2255 URL format. 1999-07-19 19:32:47 +00:00
Kurt Zeilenga
73276e84ae Import experimental referral implementation from OPENLDAP_DEVEL_REFERRALS.
Includes support for update referral for each replicated backend.
	Reworked replication test to use update referral.
Includes major rewrite of response encoding codes (result.c).
Includes reworked alias support and eliminates old suffix alias codes
(can be emulated using named alias).
Includes (untested) support for the Manage DSA IT control.
Works in LDAPv2 world.  Still testing in LDAPv3 world.
Added default referral (test009) test.
1999-07-16 02:45:46 +00:00
Julio Sánchez Fernández
27bcfd696d More options for TLS 1999-07-15 20:58:47 +00:00
Julio Sánchez Fernández
153bf433ae Define LDAP_TLS_PORT as 636, the default port for LDAP over raw TLS 1999-07-14 13:12:51 +00:00
Kurt Zeilenga
cbb5553b03 Newer versions of OpenSSL install headers in $prefix/include/openssl... 1999-07-14 00:03:52 +00:00
Julio Sánchez Fernández
96ae2837f6 Add option definitions for TLS 1999-07-13 19:23:41 +00:00
Kurt Zeilenga
ff28f54d2d Add configure support for 'socklen_t' as provided by Hallvard. 1999-07-13 18:46:22 +00:00
Kurt Zeilenga
47be141fb4 Support old c_plusplus... 1999-07-13 18:41:00 +00:00
Hallvard Furuseth
e2bfb420d7 Fix use and decl of ber_pvt_assert. Fix ac/stdio.h -> stdio.h. 1999-07-13 03:50:39 +00:00
Kurt Zeilenga
7574b70c6b Add charray (from slapd) to -lldap/-lldap_r (not yet used)
Add digest md5 codes to -lldap/-lldap_r (work in progress)
1999-07-07 17:58:21 +00:00
Kurt Zeilenga
522cd72f43 Fix CRITICIAL typo 1999-07-07 17:49:15 +00:00
Kurt Zeilenga
51d1c90887 unifdef -DSLAPD_ACLGROUPS -DSLAPD_ACLAUTH 1999-07-05 06:26:26 +00:00
Kurt Zeilenga
a1665712f2 Fix LDAP_RANGE typo 1999-07-01 21:56:53 +00:00
Kurt Zeilenga
97bc107537 Add macros to support testing of error categories to ldap.h
Modify ldap_result to assert returned error is not an one reserved
for API use.
Modify frontend LDAP operation routines to return an error code.
The returned value will be used to determine if an unsolicited notification
should be sent to the client.
Need to review returned error codes.  Namely some LDAP_PROTOCOL_ERROR
will like need to be changed (as they will cause unsolicited notifications).
1999-07-01 21:20:45 +00:00
Kurt Zeilenga
159067cc83 swap LDAP_STRONG_AUTH_NOT_SUPPORTED & LDAP_AUTH_METHOD_NOT_SUPPORTED 1999-07-01 04:37:46 +00:00
Kurt Zeilenga
8871b527d2 Add LDAP_CLIENT_ERROR macro. 1999-07-01 04:25:16 +00:00
Kurt Zeilenga
6f4d23667e Add LDAP_TAG_LDAPCRED macro. 1999-07-01 04:21:53 +00:00
Kurt Zeilenga
9225707a06 Modify lutil_passwd to accept a third argument char** methods to
specific which methods may be used.  This will facilate development
of a slapd config directive "passwordMethod ..." to specify which
methods should be allowed.
1999-06-29 22:24:53 +00:00
Kurt Zeilenga
f49cee0571 Add prototypes for strerror/strerror_r. 1999-06-29 02:58:14 +00:00
Kurt Zeilenga
2660d0b42f Remove old U-Mich v3.0 and OLD_LDAP_* crud.
Leave only LDAPv2+ and LDAPv3.
1999-06-29 00:03:34 +00:00
Kurt Zeilenga
09a007c031 Fix up minor errors in prototypes to bring them in line with LDAP C API draft. 1999-06-28 22:13:56 +00:00
Kurt Zeilenga
5f28509311 detect write() and use HAVE_WRITE instead of
!defined( DOS ) && !defined( MACOS )
Add detection for read & recv/send for later use.
1999-06-28 04:11:41 +00:00
Kurt Zeilenga
ab10099fc1 Added support for "userPassword: {UNIX}uid". getpwnam("uid") is
used to fetch the pw_passwd which is than passwd to crypt().
getspnam() is used instead of getpwnam() when available.
Added configration detection of pw_passwd, shadow.h, getpwnam()
and getspnam().
1999-06-26 20:52:59 +00:00
Kurt Zeilenga
fcaddb60b4 Install lber_types.h 1999-06-25 14:41:10 +00:00
Bastiaan Bakker
5a470f8959 Merged dynamic module support patch (see ITS #196). To enable, run ./configure w
ith --enable-modules. GLib v1.2 or higher is required.
1999-06-24 17:06:34 +00:00
Kurt Zeilenga
977292a967 Always implement Debug as lutil_debug(). 1999-06-21 22:33:35 +00:00
Kurt Zeilenga
f97251a9d1 Add support for lber_types.h.nt and add a few NT specific feature macros. 1999-06-21 22:32:38 +00:00
Kurt Zeilenga
87149de771 Add lber_types.h to setup.dsp.
s/setup.exe/setup.txt/g
create workspace for testing purposes.
1999-06-19 01:53:15 +00:00
Kurt Zeilenga
669b8f4047 ber_int_t, ber_tag_t, ber_socket_t, ber_len_t
added lber_types.h.nt, lber_types.h.in
removal of NULLxxx internal macros (in favor of NULL).
ch_free added to slapd,slurpd/ch_malloc.c
#define free ch_free (should be removed after s/free/ch_free/g) in proto-slap.h
ch_malloc and friends use ber_memalloc and friends
1999-06-18 23:53:05 +00:00
Gary Williams
61bf5877b8 new project to copy files from *.h.nt to .h 1999-06-18 21:24:04 +00:00
Kurt Zeilenga
bbc568b21f ldapconfig.h vs ldap_config.h changes
backout previous nt changes (actually, just don't include nt_svc.c)
1999-06-17 04:43:24 +00:00
Kurt Zeilenga
21e081dc5b Separate autoconf generated values from "defaults".
ldap_defaults.h incorporates non-generated ldapconfig.h values.
	ldap_config.h.in is new template for autoconf generated defaults
		(namely directories and paths)
	ldap_config.h.nt, NT template (must be manually copied)
	s/<ldapconfig.h>/<ldap_defaults.h>/
	s/DIRSEP/LDAP_DIRSEP/ & s/DEFAULT_/LDAP_/
1999-06-17 03:54:25 +00:00
Kurt Zeilenga
3c09414075 Fix bad LBER_INVALID macro 1999-06-15 17:35:31 +00:00
Julio Sánchez Fernández
fb422591a2 Matching rules. 1999-06-14 13:37:59 +00:00
Julio Sánchez Fernández
e9e0e613b2 Constification 1999-06-14 11:57:02 +00:00
Julio Sánchez Fernández
5e0f62e454 New ldap_syntax_free, ldap_attributetype_free and ldap_objectclass_free
that replace old static routines.
1999-06-13 23:31:35 +00:00
Juan Gomez
34f068f131 Drop support for alloca(). 1999-06-11 18:56:28 +00:00
Kurt Zeilenga
da549e3a42 _SGI_MP_SOURCE errno/h_errno experiment 1999-06-11 00:07:10 +00:00
Kurt Zeilenga
f34c94e5d5 Disable LDAP_MEMORY_DEBUG on NT (should not have been enabled by default).
Fix LDAP_MEMORY_DEBUG realloc size bug, thanks Alex.
1999-06-10 00:56:00 +00:00
Kurt Zeilenga
be991c81df Add test for BeOS's closesocket 1999-06-09 00:10:26 +00:00
Kurt Zeilenga
5632c11bd2 Use LDAP_F/LDAP_P macros on library externs.
Fix install of ldap_schema.h to use $(srcdir)
1999-06-07 18:37:16 +00:00
Kurt Zeilenga
12ed7e46ef Use LDAP_F and LDAP_P macros.
Fix LDAP_HI 0x377 vs 0377 bug.
1999-06-07 18:35:30 +00:00
Kurt Zeilenga
c12b24102a rename LDAP_OPT_MATCHED_STRING to LDAP_OPT_MATCHED_DN. 1999-06-05 20:12:53 +00:00
Kurt Zeilenga
5f7f095b1c Undo assert fix included in last commit.
Add extra AC_HTONL for win32 alpha.
1999-06-04 22:27:28 +00:00
Kurt Zeilenga
5cb35c2827 Add #define FD_SETSIZE 1024 1999-06-04 22:23:52 +00:00
Kurt Zeilenga
48c8aa035d EXPERIMENTAL ldap_extended_operation() and ldap_parse_extended_result() 1999-06-04 00:34:04 +00:00
Kurt Zeilenga
0c8f1d240a lber.h: added #include <stddef.h> conditional on LBER_SIZE_T_DEFINED
ldap.h: added #include <lber.h>
ldap.h: added tags for extended operations
1999-06-03 22:54:51 +00:00
Kurt Zeilenga
9fef42d3f8 Enable browsing info in MSVC debugging configurations.
Toy with dllimport/dllexport stuff (think I'll leave the real dll work to
somebody else).
Added ldap_strdup() wrapper of ber_strdup().
1999-06-03 18:24:22 +00:00
Kurt Zeilenga
6956207270 Remove <memory.h> from stdlib.h (mem* fns should be in string.h). 1999-06-03 00:45:50 +00:00
Kurt Zeilenga
5a8170253a Add <ac/stdlib.h> to genericize memory allocators.
Remove memory.h/malloc.h inclusion from <ac/string.h>.
Need to s/<stdlib.h>/<ac/stdlib.h> everywhere.
1999-06-02 23:39:55 +00:00
Kurt Zeilenga
1f52f6e43e Add ber_strdup(), remove ldap_int_strdup(), add LDAP_STRDUP macro
and ripple change through -lldap.
1999-06-02 22:28:22 +00:00
Kurt Zeilenga
bed6465529 Make first argument of *_get_option const (experimental).
Make _MOD_SOFTADD 0x1000 to minimize chance of conflict with legit changes
to API spec.
Fix memory leak in ldap_mods_free() and minor memory allocator issues.
1999-06-02 21:38:48 +00:00
Kurt Zeilenga
97fa2ea293 Remove NULL* macros (namespace). 1999-06-01 19:05:54 +00:00
Kurt Zeilenga
eab4a30a2e Add ldap_memvfree(void** vector) 1999-06-01 19:02:10 +00:00
Kurt Zeilenga
89ffbead68 Move berval routines to memory.c. 1999-06-01 18:59:27 +00:00
Kurt Zeilenga
95b3c92df7 use 'int' instead of 'char' for balance factor.
(barely) hide more internals.
1999-05-31 20:44:05 +00:00
Kurt Zeilenga
f704f1c475 (barely) hide AVL internals 1999-05-31 20:40:42 +00:00
Kurt Zeilenga
322bb86fa4 #ifdef out non-reentrant prototypes.
Only testavl uses this interface.
1999-05-31 20:32:21 +00:00
Julio Sánchez Fernández
288c304aeb Syntaxes. 1999-05-31 12:02:43 +00:00
Kurt Zeilenga
117d3275ac Genericize byte types into autoconf namespace. 1999-05-31 05:39:10 +00:00
Kurt Zeilenga
9417618276 Remove redundant WSAEWOULDBLOCK declaration. 1999-05-31 05:37:09 +00:00
Kurt Zeilenga
2e5a52414a Initial round 2 memory allocation changes. THIS IS A WORK IN PROGRESS.
includes single to multiple hooks changes.
ber_mem* reimplementation.
namespace glue (finally naming has not be decided upon nor implemented).
Added ldap_int_strdup to handle "internal" strdup'ing, this version uses hooks.
ldap_pvt_strdup still available for when strdup() is missing, this version
directly uses system allocators.
Updated -lldif to use ber allocators.  Items returned by ldif routines
should be ber_memfree()d as needed.
1999-05-30 23:00:52 +00:00
Kurt Zeilenga
4bba4a48dd Remove prototype for removed ber_clear(). 1999-05-30 21:59:45 +00:00
Julio Sánchez Fernández
7129d11e8f New error code for null string input. 1999-05-29 23:57:39 +00:00
Kurt Zeilenga
de7db04d0c Update DIRSEP handling (temporary, should be handled by autoconf) 1999-05-29 18:58:45 +00:00
Kurt Zeilenga
fbc0bd013e Minor adjustments to better handle NT vs UNIX. 1999-05-29 18:57:23 +00:00
Kurt Zeilenga
2f969f8552 First cut at ber_set_option(NULL,LBER_OPT_MEMORY_FN, myrealloc) where
myrealloc is pointer to a realloc() wrapper.
Must be first library call or else.
1999-05-29 05:16:31 +00:00
Julio Sánchez Fernández
fbcbf29651 Install ldap_schema.h 1999-05-29 01:28:36 +00:00
Kurt Zeilenga
1bcec8bf6a Add LBER_ and LDAP_ memory allocators/deallocators for internal
library use:
  LBER_ macros expand to system routines.
  LDAP_ macros expand to new ber_ allocators.

Add ber_ and ldap_ memory allocators/deallocator:
  ber_ routines are wrappers of LBER_ macros.
  ldap_ routines are wrappers of ber_ routines.

Removed safe_realloc() macro from various files.  This issue
(if an issue) should be resolved across whole package.

ldapmodify.c now uses ber_ allocators to resolve ber_bvfree()
vs. WIN32 multiple heaps issue.

These changes should facilate implementation of
  ber_set_option( NULL, LBER_OPT_MEMORY_FN, ...)
and
  ldap_set_option( NULL, LDAP_OPT_MEMORY_FN, ...).
1999-05-29 01:19:14 +00:00
Julio Sánchez Fernández
a97e3e94e6 Provide (and use) #define shortcuts
Really kill global_oc & global_at
Publish schema through LDAP (really, it's there at last :-)
1999-05-28 18:56:47 +00:00
Kurt Zeilenga
6e0c7b95ab Death to LBER_END_SEQORSET. 1999-05-28 03:24:41 +00:00
Julio Sánchez Fernández
d5509bbbe9 Incorporate #define's per Kurt's suggestion 1999-05-27 18:18:36 +00:00
Kurt Zeilenga
549dd29607 Remove HAVE_THREADS define. NO_THREADS is used instead. 1999-05-27 06:22:04 +00:00
Julio Sánchez Fernández
c445cb5546 Provide human-readable errors. 1999-05-26 19:20:40 +00:00
Julio Sánchez Fernández
fd488b3846 Fix namespace contamination, some comments added. 1999-05-26 13:52:11 +00:00
Juan Gomez
b2d40841d8 Add warning regarding LDAP_MOD_* so poeple won't reuse the LDAP_MOD_SOFTADD
code by mistake.
1999-05-26 11:33:57 +00:00
Howard Chu
967d1dcb2d For ITS#157: Added LDAP backend for slapd, which also required adding
LDAP_OPT_MATCH_STRING to ldap.h and libldap/options.c.
1999-05-26 02:35:20 +00:00
Kurt Zeilenga
83408503a7 Eliminate DECL_STRDUP check in favor of simple fix to <ac/string.h> header.
Add #undef and other protection of macros.
1999-05-24 23:01:57 +00:00
Kurt Zeilenga
4c3f2c9fa9 Minor header cleanup. 1999-05-24 20:55:47 +00:00
Julio Sánchez Fernández
b2b3581bc1 Initial incomplete and broken version. 1999-05-24 01:38:57 +00:00
Kurt Zeilenga
22d98c85c3 ldap.h:
added comments
 removed LDAP_MAX_ATTR_LEN
 removed LDAP_COMPAT* from <ldap.h> but not code.
 move LDAP_DEFAULT_REFHOPCOUNT to ldap-int.h
 added experimental options macros
 added LDAP_CONTROL_REFERRALS macros
libldap:
 Replace ld_attrbuffer with per use allocated attributed.
 ldap_first/next_attribute attributes now must be freed (as per draft).
 unifdef -DLDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
1999-05-22 06:11:48 +00:00
Kurt Zeilenga
c26db69fe1 Add prototypes for ldap_parse_result() and friends. 1999-05-21 20:46:48 +00:00
Kurt Zeilenga
ca2145cccf Initial checkin of ldap_search_ext() and friends. 1999-05-21 19:20:25 +00:00
Kurt Zeilenga
4e2b2f8a70 s/PACKAGE/OPENLDAP_PACKAGE/
s/VERSION/OPENLDAP_VERSION/
manually define for NT.  Should sort out mechanism for one place
updating of package/version strings.
1999-05-21 04:00:25 +00:00
Kurt Zeilenga
5a5fc0872b Protect strcasecmp from macro w/ args expansion. 1999-05-21 03:10:52 +00:00
Kurt Zeilenga
3540857e03 Disable LBER_END_SEQORSET for now. 1999-05-20 23:40:06 +00:00
Kurt Zeilenga
97e5524af9 found my lber bug... ber_buf should have been freed in ber_peek_tag. Ugh! 1999-05-20 21:53:56 +00:00
Kurt Zeilenga
c23e4fe6a7 Add EXEEXT and MKVERSION support. 1999-05-19 07:12:20 +00:00
Kurt Zeilenga
dc07e765f2 Vienna Bulk Commit
This commit includes many changes.  All changes compile under NT but
have not been tested under UNIX.

A Summary of changes (likely incomplete):

NT changes:
	Removed lint.
	Clean up configuration support for "Debug", "Release", "SDebug",
		and "SRelease" configurations.
	Share output directories for clients, libraries,
		and slapd.  (maybe they should be combined further
		and moved to build/{,S}{Debug,Release}).
	Enable threading when _MT is defined.
	Enable debuging when _DEBUG is defined.
	Disable setting of NDEBUG under Release/SRelease.  Asserts
		are disabled in <ac/assert.h> when LDAP_DEBUG is not
		defined.
	Added 'build/main.dsp' Master project.
	Removed non-slapd projects from slapd.dsp (see main.dsp).
	Removed replaced many uses of _WIN32 macro with feature based
		macros.

ldap_cdefs.h changes
	#define LDAP_CONST const
		(see below)
	#define LDAP_F(type) LDAP_F_PRE type LDAP_F_POST
		To allow specifiers to be added before and after
		the type declaration.  (For DLL handling)

LBER/LDAP changes
	Namespace changes:
		s/lber_/ber_/ for here and there.
		s/NAME_ERROR/LDAP_NAME_ERROR/g
	Deleted NULLMSG and other NULL* macros for namespace reasons.
	"const" libraries.  Installed headers (ie: lber.h, ldap.h)
		use LDAP_CONST macro.  Normally set to 'const' when
		__STDC__.  Can be set externally to enable/disable
		'constification' of external interface.  Internal
		interface always uses 'const'.  Did not fix warnings
		in -lldif (in lieu of new LDIF parser).

	Added _ext API implementations (excepting search and bind).
		Need to implement ldap_int_get_controls() for reponses
		with controls.

	Added numberous assert() checks.

LDAP_R
	_MT defines HAVE_NT_THREADS
	Added numberous assert() checks.
	Changed ldap_pthread_t back to unsigned long.  Used cast
	to HANDLE in _join().

LDBM
	Replaced _WIN32 with HAVE_SYSLOG

ud
	Added version string if MKVERSION is not defined.  (MKVERSION
		needs to be set under UNIX).

slapd
	Made connection sockbuf field a pointer to a sockbuf.  This
		removed slap.h dependency on lber-int.h.  lber-int.h now only
		included by those files needing to mess with the sockbuf.
	Used ber_* functions/macros to access sockbuf internals whenever
		possible.
	Added version string if MKVERSION is not defined.  (MKVERSION
		needs to be set under UNIX).
	Removed FD_SET unsigned lint

slapd/tools
	Used EXEEXT to added ".exe" to routines.  Need to define EXEEXT
		under UNIX.

ldappasswd
	Added ldappasswd.dsp.  Ported to NT.  Used getpid() to seed rand().

nt_debug
	Minor cleanup.  Added "portable.h" include and used <ac/*.h> where
	appropriate.  Added const to char* format argument.
1999-05-19 01:12:33 +00:00
Kurt Zeilenga
29a7d6229a Wrap externs with parens to protect against inproper macro expansion. 1999-05-18 20:52:36 +00:00
Kurt Zeilenga
00da392c5f Add check for <sys/select.h> for AIX. 1999-05-18 18:34:02 +00:00
Ben Collins
d4f4f8f197 Moved db1/db.h check to the db1 marco in openldap.m4. Also added check for HAVE_DB1_DB_H for which header to include since it's only defined when using db1 1999-05-07 01:27:16 +00:00
Kurt Zeilenga
af25d94db9 Fix "configurations". 1999-05-04 04:30:43 +00:00
Kurt Zeilenga
031b9ec092 Add LDAP_CONST macro for use within EXTERNAL headers such as
<lber.h> and <ldap.h>.
Note: This should not be used within the implementation itself as
our "portable.h" mechanism provides Standard C vs. K&R "const" handling.
1999-05-03 21:10:35 +00:00
Hallvard Furuseth
f43663860d Fix typo in comment 1999-04-30 11:49:28 +00:00
Kurt Zeilenga
5882352a2e protect multi-statement macros... ie: do { s1; s2; } while(0) 1999-04-30 00:53:10 +00:00
Kurt Zeilenga
beddb31813 Backout ssl/ssl.h change for now. Trying to support "odd" 3rd
repackagers is a can of worms.
1999-04-30 00:50:08 +00:00
Kurt Zeilenga
135d850ee6 Generate #error instead of just letting the compile fail. 1999-04-30 00:48:47 +00:00
Hallvard Furuseth
786bbe4fc1 enclose macro arguments in () 1999-04-30 00:35:27 +00:00
Kurt Zeilenga
b06c4a5576 Winsock changes:
Centralize #define EWOULDBLOCK WSAEWOULDBLOCK to ac/errno.h
Move WSAStartup to slapd_daemon(), add WSACleanup() to match.
1999-04-28 21:21:14 +00:00
Kurt Zeilenga
504fac55c8 Clean up valid flag: _VALUE -> _VALID. 1999-04-27 05:18:21 +00:00
Kurt Zeilenga
7ba980f0f6 Modify slapd set user/group support to use -u/-g instead -U/-G.
Moved -u (udp) to -c (connectionless).  Connectionless is depreciated
and undocumented.
Added tests for set{,e}{u,g}id to configure.  Use existance of
setuid/setgid to enable feature.  Use seteuid/setegid only if
they exist.
Fixed minor minor leak of username/groupname if specificied
more than once.  (This should actually be an error)
1999-04-21 00:40:20 +00:00
Kurt Zeilenga
a3f1e5c4c9 Warn users not to much with paths in ldapconfig.h 1999-04-14 19:36:47 +00:00
Gary Williams
5ccc8b5ab9 fix typo on destroy 1999-04-14 15:02:38 +00:00