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
Hallvard Furuseth
85c0f926fe
Plug minor memory leak
1999-08-22 03:36:19 +00:00
Hallvard Furuseth
d08a8cbbd6
Initialize lineno
1999-08-22 03:32:13 +00:00
Hallvard Furuseth
1a16766b3c
Always compile acl_dn_pat when it is set, otherwise acl.c breaks
1999-08-22 03:30:45 +00:00
Kurt Zeilenga
387186fc33
Stop mergers if dup returns NULL.
1999-08-20 22:59:00 +00:00
Kurt Zeilenga
87675a953d
ACIs from Mark Valence <kurash@sassafras.com> (ITS#261)
1999-08-20 22:42:04 +00:00
Kurt Zeilenga
255e36df0b
Backout fetch_one copy change
1999-08-20 22:37:30 +00:00
Kurt Zeilenga
6677c7ad1d
Fix slurpd constification where dependent upon slap.h
1999-08-20 22:24:58 +00:00
Kurt Zeilenga
546262acb8
complete this round of constification
1999-08-20 19:50:11 +00:00
Kurt Zeilenga
8ac21b67a1
more const'ification
1999-08-20 19:29:43 +00:00
Kurt Zeilenga
3f85d6b2ac
const'ification
1999-08-20 19:12:41 +00:00
Kurt Zeilenga
2a74677799
const'fication
1999-08-20 19:00:44 +00:00
Howard Chu
95d9fe1046
Fix warnings from previous OID parse commit
1999-08-19 23:44:53 +00:00
Kurt Zeilenga
52ecfc74d2
s/slapentry/slapadd/
1999-08-19 22:27:24 +00:00
Kurt Zeilenga
b6753b47d3
s/HAVE_QUIPU/BUILD_QUIPU/
1999-08-19 22:26:35 +00:00
Howard Chu
75c9a1e222
Add OIDmacros for attribute & objectclass numericOIDs. Allow parsing
...
attribute syntaxes using syntax description in addition to syntax OID.
Removed all whitespace from syntax descriptions.
1999-08-19 22:09:33 +00:00
Kurt Zeilenga
bf86644ba3
Add CSRIMALLOC Support
1999-08-19 20:01:42 +00:00
Kurt Zeilenga
e8af46f2a7
More unifdef -DSLAP_CLEANUP
1999-08-19 19:15:45 +00:00
Kurt Zeilenga
e1630c79cd
unifdef -DSLAP_CLEANUP
1999-08-19 18:55:01 +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
Kurt Zeilenga
ebce52fa52
Free ldif buffer... test001 now shows no leaks!
1999-08-19 18:19:20 +00:00
Kurt Zeilenga
8fcb25216f
Fix MAJOR memory leak.
1999-08-19 18:16:04 +00:00
Kurt Zeilenga
5b4e2498d9
Add CSRIMALLOC support
1999-08-19 18:13:36 +00:00
Kurt Zeilenga
1429fc36eb
Apply dn_parent memory leak fix to bdb2
1999-08-19 18:13:10 +00:00
Kurt Zeilenga
a1987f662d
Centralize slap init/startup/shutdown/destroy into slapcommon
1999-08-19 17:20:15 +00:00
Kurt Zeilenga
79a3553039
Fix typo in last commit... odd that test001 didn't bomb because of this.
1999-08-19 17:08:32 +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
0e502ed0b2
Fix dn_parent memory leak.
1999-08-19 16:51:43 +00:00
Kurt Zeilenga
0ced1a9b1e
Fix SLAP_CLEANUP (this #ifdef should really be removed)
1999-08-19 16:51:23 +00:00
Hallvard Furuseth
2d6460f880
plug memory leak
1999-08-19 11:44:44 +00:00
Kurt Zeilenga
8ead8c5fd9
Clean up debug messages.
1999-08-19 00:40:18 +00:00
Kurt Zeilenga
fc2b55f53d
Fix typos in 'make clean'
1999-08-18 07:20:30 +00:00
Kurt Zeilenga
ac50982e37
Add schema checking, continue mode, and fix a few leaks.
1999-08-18 01:45:59 +00:00
Hallvard Furuseth
aad3c488da
Add <ac/string.h>
1999-08-17 21:21:43 +00:00
Kurt Zeilenga
aeda441fc4
Remove lint.
1999-08-17 21:11:52 +00:00
Kurt Zeilenga
b01f6de098
Update MSVC project and remove lint
1999-08-17 21:10:52 +00:00
Hallvard Furuseth
56bbc0b486
Add missing progname argument to fprintf
1999-08-17 21:10:48 +00:00
Kurt Zeilenga
508248c784
Make -d levels additive
1999-08-17 19:30:40 +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
Howard Chu
ac16254ea6
Fix typo: "extenisbleObject" -> "extensibleObject"
1999-08-17 01:54:02 +00:00
Howard Chu
22ad6bd6d4
Add "modulepath" config statement for setting the search path for locating
...
loadable modules. Gratuitously renamed "loadmodule" to "moduleload".
"modulepath" takes a single argument, a colon-separated list of absolute
pathnames.
1999-08-17 01:30:09 +00:00
Howard Chu
d620793b6f
Make init_module return a success/fail value.
1999-08-17 00:28:01 +00:00
Hallvard Furuseth
3b5b9e1e5f
back-ldbm: Kill ldbm_ignore_nextid_file, replace with slapMode==SLAP_TOOL_MODE
1999-08-16 07:09:28 +00:00
Hallvard Furuseth
697dae9fac
s/text/text ? text : ""/ in Statslog
1999-08-16 06:28:33 +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
5c15a5adeb
ITS#251: Remove 1st "u" (old UDP option) from getopt()
1999-08-16 02:24:16 +00:00
Kurt Zeilenga
5cf9fad3e3
Allow "" DNs
1999-08-14 01:39:54 +00:00
Kurt Zeilenga
70bb39ccbc
Assert on malloc failure
1999-08-14 01:34:25 +00:00
Kurt Zeilenga
aec2f1f17e
Fix add to topless root.
1999-08-14 01:19:29 +00:00
Kurt Zeilenga
26437c46b0
Added labeledURI (standard track schema) from RFC2047
...
Minor schema file cleanup
1999-08-14 00:04:27 +00:00
Kurt Zeilenga
5007e92278
Fix empty dn.
1999-08-13 22:43:21 +00:00
Kurt Zeilenga
34647dd8d7
Force to LDAPv3 until BIND
1999-08-13 06:09:48 +00:00
Kurt Zeilenga
7015167974
Add DN_INDICES search filter and has_children support. Move id2children
...
behind -UDN_INDICES.
1999-08-13 00:55:08 +00:00
Kurt Zeilenga
c4dedab0da
Add LDAPsubentry to allow some structure to be added to subentries
1999-08-12 19:00:20 +00:00
Kurt Zeilenga
693229dfdd
Add "objectclass: LDAPsubentry" to provide structure to subentries
1999-08-12 18:58:51 +00:00
Kurt Zeilenga
397294fc40
Add dn_subtree() (used for subtree index generation)
1999-08-12 04:20:32 +00:00
Kurt Zeilenga
00ba798bd4
Left DN_INDICES defines by mistake... it's not ready for prime time yet.
...
Change prefixes to make eyeballing .dbb files easier
1999-08-12 01:05:33 +00:00
Kurt Zeilenga
1ffe5122b7
Implement DN_PARENT_PREFIX and framework for DN_SUBTREE_PREFIX.
1999-08-11 20:59:28 +00:00
Kurt Zeilenga
49207930cf
Modify replace_values not to merge in new values when no value is
...
was provided.
1999-08-11 19:05:40 +00:00
Kurt Zeilenga
740f1b422e
Add LDAPsubentry (without OID).
1999-08-11 19:01:05 +00:00
Kurt Zeilenga
82ac9547c9
Removed redundant dn_normalization(strdup(ndn)) from dn2id codes.
...
Added initial DN_INDICES code behind #ifdef DN_INDICES.
Generates only equality index. Will add parent and subtree indices next.
1999-08-11 02:57:07 +00:00
Howard Chu
b2647a713a
Fix build dependencies. Last try was not parallel-safe.
1999-08-09 23:01:31 +00:00
Kurt Zeilenga
65ed23a120
limit maxindirect to 9
...
ifdef CONT_POSTFIX, swap index and old key in new key. Not defined as
it would cause more grief than good (but should be enabled on next major
index change).
1999-08-09 18:51:02 +00:00
Kurt Zeilenga
db6e9af351
Remove lint.
1999-08-09 18:48:23 +00:00
Howard Chu
638f37743b
Fix explicit backend dependencies. Wildcard was unreliable.
1999-08-09 01:29:27 +00:00
Hallvard Furuseth
bbd3d9e77c
ldap_op.c: Get LDAP->ld_lberoptions from libldap/ldap-int.h.
...
slurp.h: #undef ldap_debug before a #define which conflicts with ldap-int.h.
1999-08-08 15:18:38 +00:00
Hallvard Furuseth
9f67a2e6c9
Separate put_nextid() out from next_id_write() in back-ldbm/nextid.c.
...
Use it in tools/ldif2id2entry.c instead of making the NEXTID file "by hand".
1999-08-08 07:28:44 +00:00
Kurt Zeilenga
5a0a5c7841
Remove bogus free.
1999-08-08 04:30:51 +00:00
Kurt Zeilenga
d01f571e7c
Fix typo in previous commit as well as integrate bubble move
...
replacement.
1999-08-08 00:54:27 +00:00
Kurt Zeilenga
120534222c
Replace bubble move with SAFEMEMCPY
1999-08-08 00:02:05 +00:00
Kurt Zeilenga
5ecf77c034
Eliminate a bubble move.
1999-08-07 23:25:48 +00:00
Kurt Zeilenga
136bb9c231
Use a cursor to step through ID_BLOCKS.
1999-08-07 21:14:24 +00:00
Howard Chu
366e8fd5ad
Final round of module changes
1999-08-07 11:37:43 +00:00
Howard Chu
0743e963ca
Modified to use libtool's ltdl instead of gmodule
1999-08-07 07:58:11 +00:00
Howard Chu
00ac49a1fd
Modified for use with libtool's ltdl instead of gmodule
1999-08-07 07:54:45 +00:00
Hallvard Furuseth
6054463eeb
Minor cleanup:
...
Fix Statlog() formats, remove an implicit int, include <ctype.h> for isspace().
1999-08-07 05:36:48 +00:00
Hallvard Furuseth
8e03d254b8
Plug memory leaks (parallell to back-ldbm/idl.c version 1.26)
1999-08-07 03:38:24 +00:00
Hallvard Furuseth
64f2d924d7
Fix typo in error message: idl_fetch -> bdb2i_idl_fetch
1999-08-07 03:31:46 +00:00
Kurt Zeilenga
9c3ed0310b
Add copyright notices.
1999-08-06 23:07:46 +00:00
Howard Chu
b78a4a34f9
Preliminary Make rules to allow building backends as modules.
1999-08-06 16:15:05 +00:00
Howard Chu
03b58cc9cf
For dynamic modules, must explicitly zero BackendInfo structure in
...
init_module. Since it's a local var, you have no idea what kind of
garbage is sitting in important function pointers...
1999-08-06 13:16:26 +00:00
Hallvard Furuseth
496f9b1476
Factor out ldif entry parsing so all ldif2* tools will read the same format.
...
Valid LDIF files are parsed the same way as before.
1999-08-06 03:01:23 +00:00
Hallvard Furuseth
71fa2027a7
Typo: s/elineno, elineno/elineno, lineno/ in error message
1999-08-06 02:02:34 +00:00
Kurt Zeilenga
352354bcbb
Add missing "\n" in usage statement
1999-08-05 20:50:40 +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
7b6a923937
Add basic configure support of --enable-quipu
1999-08-05 01:23:04 +00:00
Kurt Zeilenga
bc73fffe12
Update projects to use ldif2common.*
...
Remove lint
1999-08-05 00:08:26 +00:00
Kurt Zeilenga
c73106936b
Add copyright notice.
1999-08-04 23:59:53 +00:00
Kurt Zeilenga
9ea7a42b99
Add copyright notice and a few comments here and there
1999-08-04 23:59:13 +00:00
Gary Williams
a1c9d88e49
don't force debug to 65535
1999-08-04 18:13:46 +00:00
Hallvard Furuseth
023e18fb4a
s/return 0/return EXIT_SUCCESS/ in main(), #include <ac/stdlib.h> to get EXIT_*
1999-08-04 06:05:05 +00:00
Hallvard Furuseth
c0a0028c43
Align somewhat with ldif2ldbm: Obey HAVE_SYS_PARAM_H, cast strcasecmp to AVL_CMP
1999-08-04 05:53:50 +00:00
Hallvard Furuseth
48b63d4f16
Factor out ldif2* intialization to ldif2common.c
1999-08-04 05:49:36 +00:00
Kurt Zeilenga
1fe5f59027
Add sasl.c
1999-08-04 00:44:02 +00:00
Kurt Zeilenga
b67eb8e2be
Don't have time to finish SASL right now... this is a work in progress
...
but is safely tucked away behind --with-cyrus-sasl.
1999-08-04 00:11:22 +00:00
Kurt Zeilenga
354d49fb9a
List supportedSASLmechanisms based upon what sasl_listmech() returns.
1999-08-03 23:23:05 +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
10591cb47d
Update default access usage comment.
1999-08-03 21:35:53 +00:00
Kurt Zeilenga
643091f1f7
change order of tag and err in logging (only). Does not effect encoding.
1999-08-03 20:28:16 +00:00
Kurt Zeilenga
2b79ff2c48
Initial inet_aton() detection.
1999-08-03 20:02:44 +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
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
Hallvard Furuseth
79fb44b129
Replace NULLBER with NULL
...
Replace `lber_int_debug = ...' with `ber_set_option( ... )'
1999-08-03 02:31:29 +00:00
Hallvard Furuseth
0310b8b048
Remove obsolete 7th arg (opatts) from send_search_entry() calls.
...
Add missing arg (refs or ctrls) to send_ldap_result() calls.
NOTE: Did not implement referral/ldapcontrol support in back-tcl.
1999-08-03 01:38:43 +00:00
Kurt Zeilenga
538048dac2
Disable connectionless support until someone implements
...
a UDP listener.
1999-08-02 07:40:15 +00:00
Hallvard Furuseth
8743c05359
Change 'unsigned long len' to ber_len_t in get_filter()
1999-08-02 05:29:35 +00:00
Hallvard Furuseth
576956ceb0
Finish s/lber_bprint/ber_bprint/ renaming
1999-08-02 01:20:48 +00:00
Hallvard Furuseth
d716086a2d
Delete spurious 7th arg (of 8) to send_search_entry()
1999-08-01 20:31:03 +00:00
Hallvard Furuseth
a49590eab7
Missed an instance of s/struct attrinfo/AttrInfo/
1999-08-01 20:25:15 +00:00
Hallvard Furuseth
c34a8d8f5e
Kill lber_debug
1999-08-01 20:23:35 +00:00
Hallvard Furuseth
5d42c1d022
Align with ldif2id2children.c: s/int vlen;/ber_len_t vlen;/
1999-08-01 17:54:09 +00:00
Hallvard Furuseth
79cb528e7e
s/getopt() != -1/getopt() != EOF/
1999-08-01 15:35:53 +00:00
Kurt Zeilenga
6fb50094d8
Experimental fix to ITS#179 fix.
1999-07-31 03:37:40 +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
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
Julio Sánchez Fernández
18393e882c
When recreating a database from an ldif file created by ldbmcat,
...
NEXTID would not be set to one higher than the highest number
used, but to one higher than the last entry in the ldif file.
1999-07-30 18:53:23 +00:00
Julio Sánchez Fernández
3a1aab088d
IDs in the LDIF input were not being used in id2children creation.
1999-07-30 18:37:00 +00:00
Kurt Zeilenga
17a975b6fb
Very crude LDIF changes:
...
add MODRDN newSuperior support
add '#' support to ldapmodify (but not slurpd and ldbm tools)
1999-07-29 21:25:39 +00:00
Kurt Zeilenga
79e28bda6f
Fix modlist bug in last commit
1999-07-29 18:19:06 +00:00
Kurt Zeilenga
51d16c18a9
Save attributes until we've completed schema check and
...
modified indices.
1999-07-29 04:41:49 +00:00
Kurt Zeilenga
4bf65c0d0a
Add suffixalias.c
1999-07-29 02:32:40 +00:00
Kurt Zeilenga
de8a1d518a
Slightly better ITS#238 fix than last commit... has Debug
...
message, doesn't bother to open/close index files...
1999-07-28 23:19:16 +00:00
Kurt Zeilenga
0e4e5c7a13
Fix index_change_vals NULL vals bug (ITS#238)
1999-07-28 22:57:52 +00:00
Kurt Zeilenga
5456f4ed18
Default lastmod to ON.
1999-07-27 20:05:37 +00:00
Kurt Zeilenga
9c61bc561f
Return LDAP_CONSTRAINT_VIOLATION if user attempts to modify
...
a non-user-mod attribute (such as timeStamps).
Move generation of add_modify_attrs to frontend.
update of add_modify_attrs on modrdn needs work (currently
not updated to maintain consistency with replicas).
1999-07-27 20:00:31 +00:00
Kurt Zeilenga
008bbf56db
Fix -USLAPD_RLOOKUPS
1999-07-27 18:49:32 +00:00
Kurt Zeilenga
c12547cf3b
Resurrect suffix aliasing...
1999-07-27 18:43:30 +00:00
Kurt Zeilenga
44e15153e7
Fix "dn" index. Only "sub" was being generated instead of "eq,sub".
1999-07-27 00:51:19 +00:00
Kurt Zeilenga
f374c39ab0
move wsa error to -llutil
1999-07-27 00:38:29 +00:00
Kurt Zeilenga
4d72e20bae
Relocate to -llutil
1999-07-27 00:37:48 +00:00
Howard Chu
04c5711506
Moved unbind processing into connection_destroy. unbind handler is not needed.
1999-07-25 22:16:01 +00:00
Howard Chu
f491c89387
Fix unportable code. Thanks, Hallvard.
1999-07-25 22:13:52 +00:00
Kurt Zeilenga
b9764fff76
Back out paralyzing changes.
1999-07-24 21:40:58 +00:00
Howard Chu
5692be1fe4
Minor changes to support parallel make.
1999-07-24 09:21:34 +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
06b667b8c6
Move subschemasubentry from "no-user-mod operational" to "operational"
...
as it's not stored the directory.
1999-07-24 02:22:14 +00:00
Kurt Zeilenga
6ba2272321
Adhere to "servers will not return operational attributes" in
...
all cases (including root dse).
1999-07-24 02:12:42 +00:00
Kurt Zeilenga
cabe6ebe16
Really fix subschemasubentry...
1999-07-24 01:27:32 +00:00
Kurt Zeilenga
7ee088518c
Fix subschemasubentry operational attribute.
1999-07-24 00:45:25 +00:00
Julio Sánchez Fernández
44e371d45c
Add missing semicolon.
1999-07-23 09:45:34 +00:00
Randy Kunkee
820ac76ceb
Include sys/param.h on OSF4.0e to define MAXPATHLEN.
1999-07-23 00:59:27 +00:00
Kurt Zeilenga
d147e609d2
Implement TCP_NODELAY on both client and server side.
1999-07-22 21:49:35 +00:00
Kurt Zeilenga
f0c1fc37f5
Fix IP: typo in peername
1999-07-22 20:37:56 +00:00
Kurt Zeilenga
983f43785b
Fix "*" op-attr search
1999-07-22 20:19:18 +00:00
Kurt Zeilenga
766b78765f
Typo made all missed all aliasedobjectname values.
1999-07-22 19:17:16 +00:00
Kurt Zeilenga
c9778dd116
Implement better DN checking... make sure attribute type is
...
an OID or a proper type string (letter followed by 0 or more
alnum/-).
1999-07-22 19:06:56 +00:00
Kurt Zeilenga
68d561a97b
Add limited LDAP_INVALID_DN_SYNTAX support. dn_normalize{,_case}() now returns
...
NULL does not meet basic syntax rules.
1999-07-22 17:14:42 +00:00
Kurt Zeilenga
3f91cffa15
Fix unknown critical extensions.
1999-07-22 05:06:41 +00:00
Kurt Zeilenga
42304b7ada
Fix control parsing and controls free routine.
1999-07-22 04:47:58 +00:00