Howard Chu
deee7442b4
Fix ITS#1649, a filter constructed from a BUFSIZ input line combined with
...
an argv[] filtpattern will be larger than BUFSIZ.
2002-03-18 16:16:47 +00:00
Kurt Zeilenga
3a5c4e9e97
Return EXIT_FAILURE if result code is not success.
2002-03-11 00:25:20 +00:00
Kurt Zeilenga
ce07fb958e
Update libtool usage
...
s/-L.../libraries -lldap/.../libraries/libldap/libldap.la/
2002-02-10 22:42:51 +00:00
Kurt Zeilenga
ac6df28e7d
Fix misplaced "search" references
2002-02-08 19:10:06 +00:00
Pierangelo Masarati
0c952c8893
fixes ITS#1578
2002-02-06 08:43:32 +00:00
Kurt Zeilenga
7516ce8c35
V2 kbind fix (blind commit)
2002-01-31 22:52:00 +00:00
Kurt Zeilenga
77698024d4
Add a project for ldapcompare(1)
2002-01-30 04:01:38 +00:00
Kurt Zeilenga
abf91ca1ff
Initial ldapcompare(1) implementation. Adapted from patch
...
submitted by Jeff Costlow <j.costlow@f5.com> (ITS#1560).
Portions:
Copyright 2002, F5 Networks, Inc, All rights reserved.
This software is not subject to any license of F5 Networks.
This is free software; you can redistribute and use it
under the same terms as OpenLDAP itself.
2002-01-29 07:33:11 +00:00
Kurt Zeilenga
a8710d2105
Fix typo in last commit
2002-01-28 21:33:57 +00:00
Kurt Zeilenga
fef9741b52
Initial ldapwhoami implementation
2002-01-28 21:24:40 +00:00
Kurt Zeilenga
14662be692
Add whoami extended operation.
...
Add no-op control (needs backend implementation)
Updated modify password extended option API
Kludged control infrastructure to support frontend only controls
2002-01-28 20:25:30 +00:00
Kurt Zeilenga
0e2af54a3f
Update copyright statements
2002-01-04 21:17:25 +00:00
Kurt Zeilenga
b64374fba1
Fix typo in last commit
2001-12-20 05:27:55 +00:00
Kurt Zeilenga
a07ab15ea1
Minor cleanup
2001-12-20 03:00:53 +00:00
Kurt Zeilenga
2a24264098
Remove lint
2001-12-19 21:19:41 +00:00
Howard Chu
773b3aff16
more cleanup from jon@symas.com
2001-12-18 04:52:55 +00:00
Howard Chu
6159dfbe01
Just use mkstemp unconditionally; liblutil will fill in if the system doesn't.
2001-12-18 03:04:32 +00:00
Howard Chu
c0dbedca50
from jon@symas.com; include ldap_log.h for proper declarations, remove
...
unused variable
2001-12-17 22:37:47 +00:00
Howard Chu
63d4d0eb1e
Fix ITS#1497 use strcmp instead of strncmp
2001-12-17 21:56:24 +00:00
Howard Chu
331a7bd1c5
More from jon@symas.com - argv[0] comparison must exclude EXEEXT.
2001-12-12 00:26:42 +00:00
Kurt Zeilenga
abd9be4def
Remove lint and misc MSVC updates
2001-12-09 02:34:45 +00:00
Howard Chu
0552b1c53f
NT updates from jon@symas.com.
2001-12-07 04:03:25 +00:00
Howard Chu
82eca519ae
More from Jon Leichter @ Symas - platform-independent TMPDIR usage
2001-12-07 02:22:07 +00:00
Howard Chu
e6d6faf3c9
From jon@symas.com - patches for consistent use of directory separators
...
in pathnames.
2001-12-07 01:46:26 +00:00
Kurt Zeilenga
ac2cd34aaf
ITS#1482 patch from Michael.Gerdts@usa.alcatel.co
...
MSVC cannot build clients/ud because the symbol mkstemp
is not found. Add tmpfile() support.
2001-12-06 21:19:10 +00:00
Kurt Zeilenga
6ba3b26c09
Enhance error messages from Walter.Mueller@uibk.ac.at
2001-12-05 03:13:50 +00:00
Kurt Zeilenga
40b069f5ee
Finish friendly_name() removal
2001-12-02 01:07:50 +00:00
Kurt Zeilenga
15fc0cccae
Don't bother with friendly name
2001-12-01 03:40:19 +00:00
Kurt Zeilenga
23a1c79ea8
Only build/install tools and ud by default
2001-10-27 18:14:22 +00:00
Pierangelo Masarati
77dc11ba3c
liberal treatment of trailing spaces in changetype and mod op lines in ldif files (needs -DLIBERAL_CHANGETYPE_MODOP)
2001-09-29 10:29:24 +00:00
Kurt Zeilenga
2c1273cd17
ITS#1328 LDIFv1 CR/LF fix
2001-09-25 18:48:48 +00:00
Kurt Zeilenga
97db0eb716
Don't ignore attribute list when -S is specified.
2001-09-04 06:06:44 +00:00
Kurt Zeilenga
0c13c5bbdd
Use parens for clarity
2001-08-28 00:35:34 +00:00
Kurt Zeilenga
0e1c9551a9
Major clients cleanout
2001-07-07 05:05:38 +00:00
Kurt Zeilenga
fe2361b855
Don't say "version: 2"
2001-06-21 20:32:04 +00:00
Kurt Zeilenga
11b6d1f284
Misc updates for NT4
2001-06-15 04:16:55 +00:00
Kurt Zeilenga
2d33a76ff7
Restore
2001-06-14 05:30:26 +00:00
Kurt Zeilenga
5cf21f13fe
Rip most of Kbind out in prep for adding SASL.
2001-06-14 05:28:46 +00:00
Kurt Zeilenga
85a2c40ca0
Remove more UFN cruft
2001-06-11 21:25:14 +00:00
Kurt Zeilenga
86acd7eb20
unifdef -ULDAP_UFN
2001-06-11 21:08:49 +00:00
Kurt Zeilenga
c0ce193879
Fix no domainpart bug
2001-06-09 20:47:19 +00:00
Kurt Zeilenga
44bef574c8
Updated pthread test and usage (avoid pthread_detach if possible)
...
don't use tmpnam()
2001-06-09 01:05:35 +00:00
Kurt Zeilenga
39d364c710
Fix filter printing
2001-05-18 00:27:08 +00:00
Kurt Zeilenga
383391b460
detect and use fcntl (for BSD/OS)
...
detect inet_ntop (for MacOSX)
2001-05-03 05:53:34 +00:00
Kurt Zeilenga
db71f0c8a7
Clean up some logic, based upon Novell patches
2001-05-02 19:52:09 +00:00
Kurt Zeilenga
3ea33ebd12
Add LDAP version to comment
2001-03-15 04:10:17 +00:00
Julio Sánchez Fernández
d8bf048f17
Sendmail is so weird that it passes us an address of <> as just
...
a zero-length argument, but will consider such thing unparseable.
So we do the translation...
2001-02-27 21:20:08 +00:00
Kurt Zeilenga
6b822b67ef
Validate timelimit argument
2001-01-23 20:51:14 +00:00
Kurt Zeilenga
b873db292c
Rename timelimit to timeout where it refers to the time out not the time limit.
2001-01-23 20:38:19 +00:00
Kurt Zeilenga
111dd4cc97
Move -V to -F so that -V can be used for version information
2001-01-19 04:55:38 +00:00
Kurt Zeilenga
867ed1c7c8
use "authcid" instead of "username".
2001-01-18 08:04:56 +00:00
Kurt Zeilenga
ed9bacc1a6
Change start tls warning message
2001-01-16 04:32:13 +00:00
Julio Sánchez Fernández
6ae3796ade
Fix crash when a mail list appears twice in the expansion, maybe
...
because of loop, maybe legitimately.
Make check for already seen mail group case insensitive.
2000-11-24 17:46:18 +00:00
Kurt Zeilenga
ba37cbc233
Fix passwd clearing bug
2000-11-06 15:53:02 +00:00
Kurt Zeilenga
5c9357fa81
Fix encoding of old password
2000-10-28 10:15:17 +00:00
Gary Williams
3a002e8768
enable new logging functions (behind NEW_LOGGING)
2000-10-25 15:03:22 +00:00
Kurt Zeilenga
b4368db948
Remove commented out (logging) code
2000-10-17 20:44:34 +00:00
Kurt Zeilenga
a43392cd42
return default to no logging
2000-10-17 20:43:33 +00:00
Kurt Zeilenga
9ad5246a9a
Don't print bind dn, it's confusing when using SASL
2000-10-13 18:57:56 +00:00
Kurt Zeilenga
9e1458724b
Use LDAP_VERSION3 instead of 3
2000-10-13 18:30:24 +00:00
Gary Williams
fd4b8ba0cd
example client using new logging
2000-10-12 20:13:20 +00:00
Kurt Zeilenga
5a32ff0603
Add missing 'static'... (ITS#823,825,828)
...
as reported by Jeff Earickson <jaearick@colby.edu>
other suggestions to be separately reviewed
2000-10-11 23:42:53 +00:00
Kurt Zeilenga
e6dc9d1889
Update ldappasswd binddn bug, man page and error reporting
2000-10-11 04:56:08 +00:00
Kurt Zeilenga
9e450558d8
Fix add of empty value.
2000-10-03 22:05:28 +00:00
Kurt Zeilenga
3d47cb33c1
Fix spelling error
2000-09-19 20:47:22 +00:00
Kurt Zeilenga
f42966f9e1
Fix #undef LDAP_UFN
2000-09-16 06:24:17 +00:00
Kurt Zeilenga
efe39c999f
modify ldap_dn2ufn() to return completely typeless UFNs
...
hide rest of UFN code behind #ifdef LDAP_UFN in preparation
for eventual removal.
2000-09-16 04:33:52 +00:00
Ben Collins
0bd5e418be
remove unused var 'actions'
2000-09-15 02:49:27 +00:00
Ben Collins
bca61801a1
Fix fprintf\'s, missing `prog\' argument
2000-09-15 02:48:10 +00:00
Ben Collins
d3805f1980
compiler warnings, possible use of unitialized data
2000-09-15 02:45:53 +00:00
Ben Collins
7c90250fba
missed newline in printf
2000-09-13 23:32:06 +00:00
Kurt Zeilenga
e366aefffc
Fix ldap_init/initialize error checking
2000-09-13 21:49:31 +00:00
Ben Collins
85747c5c55
init output_string to NULL, and check in printbase() to make sure we don't pass garbage
2000-09-13 21:44:37 +00:00
Kurt Zeilenga
8d2c074a80
Fix -R processing
2000-09-07 01:15:52 +00:00
Kurt Zeilenga
4af57deb51
Fix kbind typo (ITS#717)
2000-09-06 21:25:28 +00:00
Kurt Zeilenga
52d2b2ec51
user argument should be optional
2000-09-06 18:45:12 +00:00
Kurt Zeilenga
70f28f1ba4
segfault by ldappasswd -A -S (ITS#714) fix
...
suggested by Fumitoshi UKAI <ukai@debian.or.jp>
2000-09-06 18:28:15 +00:00
Kurt Zeilenga
fb6590f8db
Add -H to usage
2000-09-05 18:52:10 +00:00
Kurt Zeilenga
0e920e9d29
Back out last change
2000-08-31 20:53:12 +00:00
Kurt Zeilenga
78f6d75586
Fix URI
2000-08-31 20:52:14 +00:00
Kurt Zeilenga
f6a1c05b68
Add missing fprintf param
2000-08-25 23:51:10 +00:00
Kurt Zeilenga
ef3fb24f39
Fix typo which escaped my obviously flawed midnight test
...
(I must have been dreamed that the 'make test' completed
successfully)
2000-08-25 23:46:09 +00:00
Kurt Zeilenga
e97cdfb7a9
Add support of "-H uri"
2000-08-25 05:31:29 +00:00
Randy Kunkee
45ef1d2c90
Clean up lint.
2000-08-23 22:49:44 +00:00
Kurt Zeilenga
d95e350832
Fix up examples, X.500 references, etc.
2000-08-21 03:08:58 +00:00
Kurt Zeilenga
25a9f7427d
Remove CLDAP cruft
2000-08-18 04:25:00 +00:00
Kurt Zeilenga
c243a6fa92
ITS#657: Added command-line switch for searchbase to in.xfingerd
...
ITS#658: man page
from Tom Jordan <tjordan@doit.wisc.edu>
2000-08-16 20:27:17 +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
fc6c7fefcc
Fix empty AND/OR search list bug
2000-07-27 23:08:48 +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
0f5c87a41c
Clean up usage()
2000-07-17 21:54:20 +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
6454508ec6
Update usage to note that user may not be represented by a DN
2000-07-16 00:28:57 +00:00
Kurt Zeilenga
908368a245
Fix authmethod defaulting
2000-07-16 00:23:41 +00:00
Kurt Zeilenga
2c323d2b2a
Add -x (simple authentication)
2000-07-16 00:21:41 +00:00
Kurt Zeilenga
1e562b0d1f
Make it all work.
2000-07-16 00:14:08 +00:00
Kurt Zeilenga
4d45c61600
Cleanup previous commit
2000-07-15 23:34:27 +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
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
9488612057
Use setproctitle correctly
2000-07-06 20:36:23 +00:00
Kurt Zeilenga
04bfb7efe4
Add missing EOL
2000-07-05 23:11:37 +00:00
Kurt Zeilenga
f6cda93bd1
Correct improper ldap_result() result checking...
2000-07-04 21:59:41 +00:00
Kurt Zeilenga
20e6dcec3b
Improved but still broken client tools.
2000-07-04 21:49:00 +00:00
Kurt Zeilenga
8be1d467b8
Add reporting of LDAPv3 referrals. Should also report returned controls.
...
Also, as written, the code will behave better in the face of unsolicited
noticifications (such as notice of disconnect). However, code needs to
be improved to better distinguished such from expected result response.
Delete improvements are limited to base object delete. Should be applied
to -p[rune] option as well.
2000-07-03 19:03:22 +00:00
Kurt Zeilenga
3f6e23cb0c
Add LDAPv3 rename support
2000-06-29 19:35:51 +00:00
Kurt Zeilenga
51bacc2c99
Do not include <lber.h>
2000-06-26 01:24:03 +00:00
Kurt Zeilenga
e2fa599482
Move old files to the Attic
2000-06-25 22:01:42 +00:00
Kurt Zeilenga
1a862732ee
Fail if ldap_set_option fails
2000-06-25 18:17:47 +00:00
Kurt Zeilenga
bf9231ac40
Round 2 of tools work.
...
-R now ignored
-C added to chase. No rebind proc yet, no checking of appropriate authentication.
complain if non-critical TLS was not started.
Fail if requested version is not supported.
ldapdelete:
deletechildren modified to use ldap_search_ext_s()
fixed deletechildren dn memory leak
ldapsearch:
modified to use ldap_search_ext()
2000-06-25 18:07:15 +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
Kurt Zeilenga
f48234f5bf
No need to include <lber.h>
2000-06-20 17:02:19 +00:00
Kurt Zeilenga
e7791e2f93
Adjust -Z[Z] usage statements
...
Change ldapsearch to only produce LDIF.
2000-06-19 16:19:59 +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
701cc91e8d
Fix getpassword bug
2000-06-14 03:07:33 +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
a56c161bdb
Misc code cleanup.
2000-06-10 22:39:30 +00:00
Kurt Zeilenga
40b71cd8e8
undef DEFSEP before defining it
2000-06-10 07:19:07 +00:00
Julio Sánchez Fernández
05d1caad05
Added maildap.
2000-06-09 00:45:59 +00:00
Julio Sánchez Fernández
13e263d895
A few name changes.
2000-06-09 00:43:24 +00:00
Julio Sánchez Fernández
927d58171b
The experimental mail500 has been renamed as maildap. This is an exact
...
copy of the code formerly in mail500, to properly track changes. An
exception is mail500.m4 that has been committed as maildap.m4 directly
to avoid breaking history twice.
2000-06-09 00:03:39 +00:00
Julio Sánchez Fernández
8d6fffc9ba
The old mail500 is back restored as of 1999/06/30, plus a few updates
...
to put it in line with current practices. Most likely I got them wrong,
so maight not even compile right now.
2000-06-08 23:58:19 +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
51e619d424
Add ManageDSAit support to back-dnssrv
...
Fix backend critical controls crash
Move 'associatedDomain' to core.schema
2000-06-05 03:10:46 +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
Kurt Zeilenga
781a8e2afc
Use ldap_parse_result instead of deprecated ldap_result2error
2000-06-03 16:28:47 +00:00
Kurt Zeilenga
34edec3107
Strip installed executables
...
better library clean
2000-05-30 18:23:56 +00:00
Kurt Zeilenga
dfc850ceb3
Force referrals on
2000-05-29 20:43:29 +00:00
Kurt Zeilenga
8045b54124
Use getpassphrase() instead of getpass() if available.
2000-05-19 18:41:26 +00:00
Kurt Zeilenga
c923fe5401
s/bindpw/passwd/
2000-05-16 05:08:25 +00:00
Kurt Zeilenga
9267700fb9
Fix password handling for SASL
2000-05-16 02:16:54 +00:00
Kurt Zeilenga
ebfe58344c
Fix sasl passwd handling (needs to be copied to other tools)
2000-05-16 01:45:15 +00:00
Kurt Zeilenga
0bb431d3b3
Y2k copyright update
2000-05-13 02:25:54 +00:00
Howard Chu
3ea2de7a86
Fix off-by-one in allocation of urlpre
2000-05-11 21:21:18 +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
Kurt Zeilenga
d25f52be38
s/cmds/rcpt_cmds/ to avoid conflict with Linux Redhat "prandom".
2000-05-09 17:25:59 +00:00
Kurt Zeilenga
0d1e76246a
Don't depend error handling on exact resultCode.
2000-04-26 09:21:19 +00:00
Kurt Zeilenga
fe8be04237
Fix typos in version checking
2000-04-25 10:30:42 +00:00
Ben Collins
50a41f3ee2
when opening files in /tmp use O_CREAT|O_EXCL to overcome race conditions
2000-04-24 16:42:16 +00:00
Ben Collins
97493c3404
with the -t option (writing to /tmp) open files with O_CREAT|O_EXCL to overcome race conditions
2000-04-24 16:41:36 +00:00
Kurt Zeilenga
4ecf780e48
StartTLS requires LDAPv3
...
Set version to required protocol.
2000-04-20 14:15:39 +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
72c0de5d95
#define LDAP_LDIF to default to LDIF input
...
Fix ldaphost == NULL bug
2000-04-12 01:03:51 +00:00
Kurt Zeilenga
6b4aac2678
#define LDAP_LDIF to default to LDIF output
2000-04-12 01:02:58 +00:00
Kurt Zeilenga
870dbca576
objectclass=* -> NULL
2000-04-12 01:00:48 +00:00
Julio Sánchez Fernández
0dbd442090
Checking uninitialized variables.
...
Add addresses optimization to rfc822-ext too.
2000-04-10 12:11:20 +00:00
Julio Sánchez Fernández
36a4ed4f59
Added a method to make delivery to the local mailbox conditional on
...
the presence of a certain value in some other attribute. Used to
implement mailForwardingAddress both in addition to normal delivery
and excluding normal delivery, selectable entry by entry. The model
is mailDeliveryOption in Netscape MS. The implementation aims to
become more general, though. Affects "search-with-filter", any
entry can potentially use a parameter, introduced with "param=".
Optimize the case where we have to copy the message to an address that
is served by the directory. Formerly, we would have the MTA deal with
it and invoke mail500 again later. This has necessitated loading the
list of domains that are solved by us with "domain". A new definition,
"host", takes the role of the old "domain" that was the FQDN of our
host for routing loop avoidance.
2000-04-07 15:00:22 +00:00
Julio Sánchez Fernández
8d6808862f
The old mail500 had a method to try to translate the local address
...
part into something to check against the cn of entries. It is
supported again thorugh the selector %s in the search.
Explicitly initialize some pointers in automatic storage.
2000-04-06 16:16:46 +00:00
Julio Sánchez Fernández
4cf241aa69
Added support for doing routing at the MTA, that is the right thing
...
anyway. A new syntax is defined, "present", that indicates that
values of an attribute type are not used, only presence is
significant. To do routing at the MTA, define both mailHost and
mailRoutingAddress with syntax "present". Otherwise, use "host" and
"rfc822" and mail500 will try to do routing by itself, if possible.
Read the comments in the code for the ugly details.
Added a new configuration line "own-address" that describes the FQDN of
our host to compare with mailHost. The line can be repeated.
2000-04-05 19:15:33 +00:00
Julio Sánchez Fernández
88e1ffcde1
The approach used was not powerfull enough to deal with things like
...
nested groups or the laser mail routing draft. Mostly, this is
because a flag saying the attribute type is 'final' is not flexible
enough. The old 'final' flag is gone and replaced by a priority
level.
Change 'forward' to 'route' to be consistent with the laser wording.
Add new 'domain' spec in the configuration file to describe what are
the local domains so that we do not loop when doing the laser thing.
We were escaping asterisks in filters. This seems incorrect. Removed.
2000-03-23 16:19:01 +00:00
Kurt Zeilenga
3d4122962f
Add print.c to handle GeneralizedTime.
...
Add creat* modify* attributes
2000-01-17 17:41:11 +00:00
Kurt Zeilenga
6437785a82
Initial implementation of Kerberos password verification for
...
simple bind via:
{KERBEROS}principal
Code is disabled by default (for security reasons). Use
--enable-kpasswd to enable. Behind SLAPD_KPASSWD.
Reworked Kerberos detection and split out KBIND as independent
feature (--disable-kbind) (LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND).
KBIND depends upon detection of KRB4 (or KRB425) support. Detection,
building with eBones (as distributed with FreeBSD 3.4) okay, but
wasn't able to test as I don't have a K4 KDC handy.
--with-kerberos has a number of detection options... most likely
don't work properly.
2000-01-08 18:42:11 +00:00
Julio Sánchez Fernández
7b2f498415
Fix the prior fix.
1999-12-15 19:10:08 +00:00
Julio Sánchez Fernández
d660a5cc93
The group list was being managed as an array of Group. This was
...
extremely broken and I can only wonder how I got some much mileage out
of it. The problem is that we deal with pointers to the groups
themselves, either in current_group or current_to and current_nto.
These pointers would break on reallocs. So now the the basic togroups
is an array to pointers to Group. Since the array can be resized at
any time, what we actually pass around is pointer to an array of
pointers to Group or Group ***.
1999-12-15 18:55:19 +00:00
Kurt Zeilenga
b1639dadd6
Remove lint
...
Add copyrights
1999-12-13 04:53:59 +00:00
Kurt Zeilenga
cd5c29cdc4
Add checks to ensure arguments are consistent (v2 vs v3).
1999-12-12 05:05:20 +00:00
Kurt Zeilenga
fe5608c4d5
Wrap request/response bervals in a sequence.
1999-12-11 19:33:45 +00:00
Kurt Zeilenga
041c1545e8
Update usage and man page.
1999-12-10 04:59:28 +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
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
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
Kurt Zeilenga
5d5588836f
Fix ldap_rename parameter order (ITS#387)
1999-12-04 17:19:11 +00:00
Gary Williams
6ec31e98ac
No one complained, so here's the change to ldapdelete to add a -r switch to allow a branch of a directory tree to be removed. The DN provided is searched recursively until the leaf nodes are hit, then everything is deleted.
1999-12-03 18:29:03 +00:00
Howard Chu
59dc262dc4
Removed RCS keywords from header comment.
1999-11-24 07:25:31 +00:00
Kurt Zeilenga
3a0d0dd29b
Less crypto error message...
1999-11-19 02:03:31 +00:00
Kurt Zeilenga
be51328c8b
ITS#349: if user hits RETURN at "Change base to?", return to UD prompt.
1999-11-17 21:50:35 +00:00
Kurt Zeilenga
5f6f7d06a6
ITS#352: don't pring NULL group names.
1999-11-17 21:47:08 +00:00
Kurt Zeilenga
a5dad347c2
ITS#356: don't print entry if name is NULL.
1999-11-17 21:39:39 +00:00
Kurt Zeilenga
eb000d9e6a
no UD_BASE to use for my_ldap_dn2ufn(). Comment out strstr(s,NULL).
1999-11-03 22:02:30 +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
bb1b81473b
Add configure tests for ssize_t and caddr_t and remove NT preamble
...
(excepting WIN32_LEAN_AND_MEAN). Rework openlog/closelog use to
eliminate need for defines.
1999-11-01 18:14:26 +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
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
c508288fca
Add comment to top of sendmail.cf to discourage directory mucking
...
with .cf files...
1999-10-28 22:19:36 +00:00
Kurt Zeilenga
b2139d5a68
Reorganize a bit to behave more like other mailer m4 macros
1999-10-28 22:17:23 +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
dd89498e85
Fix misc syntax warnings and/or bugs.
...
See README 1.27 log
1999-10-28 07:18:48 +00:00
Kurt Zeilenga
f4a0699311
Add macros to compute base64 encode/decode lengths.
1999-10-25 01:44:47 +00:00
Kurt Zeilenga
c0a6159844
Initial Kth Kerberos support. Changes based upon suggestions
...
from Booker Bense <bbense@networking.stanford.edu>.
1999-10-01 05:11:39 +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
a0bd8e1764
Don't need <lber.h>
1999-09-25 23:12:55 +00:00
Julio Sánchez Fernández
0bd0a8d4db
Fix creation of ldapadd link to ldapmodify
1999-09-23 11:13:29 +00:00
Ben Collins
53da7b6cda
* build/top.mk: removed references to TMPROOT and added DESTDIR support
...
* all others: Added DESTDIR support
1999-09-22 21:51:30 +00:00
Kurt Zeilenga
9d6c0aa00a
Allow replace with no values
...
dn: cn=foo
changetype: modify
replace: bar
-
1999-09-10 01:55:46 +00:00
Kurt Zeilenga
403f4479bc
Add OpenLDAP RCSid to *.[ch] in clients, libraries, and servers.
...
Replace old Id as needed (back-tcl).
Leave updating of contribWare to contributors (for now).
1999-09-08 19:06:24 +00:00
Kurt Zeilenga
ed0e5393b4
Disable REFERRALS. Should add -C/-CC/-R options (chase w/ prompting,
...
chase w/o prompting, disable referrals).
1999-09-05 19:20:01 +00:00
Hallvard Furuseth
33cc7d4cf1
Introduce and use LDAP_GCCATTR() = __attributes__() in gcc
1999-09-03 21:06:33 +00:00
Hallvard Furuseth
c09a2c63e7
Cleanup:
...
Fix printf formats, remove unused variables, add missing prototypes in slapd,
add static/const, add some return types or change to void return type.
1999-09-02 08:05:17 +00:00
Kurt Zeilenga
41e57c041f
Add OpenLDAP RCS id
1999-09-02 00:52:43 +00:00
Hallvard Furuseth
553b40e6f8
Initialize rc
1999-09-01 05:14:42 +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
c1b5068fe4
Apply Hallvard's memory leak plugs...
1999-08-20 00:55:22 +00:00
Kurt Zeilenga
17c37bb7c3
Fix server==NULL bugs
1999-08-18 02:36:23 +00:00
Howard Chu
2d99e86fc1
Remove extraneous newlines from non-LDIF output
1999-08-17 20:27:46 +00:00
Hallvard Furuseth
f8df8a98e1
Fix bugreport/mailinglist addresses
1999-08-17 10:00:58 +00:00
Hallvard Furuseth
aa9bf92b32
Fix feedback address
1999-08-17 09:52:27 +00:00
Hallvard Furuseth
09f3b2c9df
Remove umich.edu reference
1999-08-17 09:47:04 +00:00
Hallvard Furuseth
e559531407
Print "<DEFAULT>" instead of "0" when ldapport=0 in ldapsearch -v
1999-08-17 01:49:19 +00:00
Kurt Zeilenga
3f52596360
printf "ALL" to stderr.
1999-08-16 19:09:40 +00:00
Kurt Zeilenga
412e734763
Install as 755 not 775.
1999-08-16 17:22:55 +00:00
Kurt Zeilenga
29274384a3
Remove temporary comment
1999-08-13 23:06:05 +00:00
Kurt Zeilenga
a3269d3625
Allow null dn.
1999-08-13 22:53:11 +00:00
Kurt Zeilenga
3c7f51b77f
Fix tv.sec typo in last commit. srand(tv.tv_sec * (tv.tv_usec+1))
1999-08-09 19:06:29 +00:00
Kurt Zeilenga
dd53a83946
Wrap prints of DN and other strings in double quotes so user can easily
...
determine if string contains leading/trailing whitespace.
1999-08-09 18:33:17 +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
3abd065219
Add KEEPALIVE support.
1999-08-04 23:56:37 +00:00
Kurt Zeilenga
58bcdbdc46
Add setup.dsp to workspace
1999-08-04 23:56:01 +00:00
Kurt Zeilenga
f846eee613
Add copyright notices.
1999-08-04 23:55:45 +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
b7e5d904b9
Replace @umich bugreport/support addresses with @openldap
1999-08-03 10:07:58 +00:00
Hallvard Furuseth
a9f6fc35f7
Grow buffer[] declaration to make space for " $ " separators
1999-08-03 03:58:49 +00:00
Kurt Zeilenga
a847e20589
multiline separator: s/"$"/" $ "/
1999-08-02 17:10:29 +00:00
Hallvard Furuseth
2da4fca5c3
Fix format %x -> %lx in des_string_to_key
1999-08-02 05:25:17 +00:00
Hallvard Furuseth
294d9f99b2
Print ldap_err2string(error number) instead of just error number
1999-08-02 01:13:39 +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
07b734035d
Kludge ldapmodify to accept "version: 1" in LDIF input.
1999-07-31 00:35:30 +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
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
ff2a6e1014
Remove YEAR_PEDANTIC macro and update comment.
1999-07-27 00:34:29 +00:00
Julio Sánchez Fernández
5ff97c0c0d
Oops, revert prior change.
1999-07-23 20:52:17 +00:00
Julio Sánchez Fernández
188030d5b7
Remove debugging leftover
1999-07-23 20:39:47 +00:00
Julio Sánchez Fernández
5009194a29
Fix mailer line (missing argument to -m, maybe make configurable)
1999-07-23 20:39:06 +00:00
Kurt Zeilenga
a103bf9b38
Import date parser from libldap
1999-07-21 17:36:13 +00:00
Kurt Zeilenga
4fdd533a5a
Update LDAP_URL_ERR_ handling.
1999-07-19 19:48:23 +00:00
Hallvard Furuseth
5ab862aee7
Pass socklen_t* instead of int* to getsockopt, accept, getpeername, recvfrom
1999-07-16 18:43:10 +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
Kurt Zeilenga
2ce7c6859f
Match xrpcomp change in devel
1999-07-14 17:07:39 +00:00
Julio Sánchez Fernández
6eae20d056
Include TLS_LIBS
1999-07-13 19:13:32 +00:00
Kurt Zeilenga
341e3681d6
s/NULL/'\0'/ where appropriate
1999-07-01 04:39:42 +00:00
Julio Sánchez Fernández
42d53c49f0
Initial version of new mail500.
1999-06-30 13:54:32 +00:00
Kurt Zeilenga
757631d205
Attempt to whip user password from command line.
1999-06-29 18:59:11 +00:00
Kurt Zeilenga
bf8eaf1f1e
ldapmodify/add: Fix -P option
...
tests: use "ldapadd" instead of "ldapmodify -a"
1999-06-29 01:17:58 +00:00
Kurt Zeilenga
30d3d76758
Need to remove ldapadd$(EXEEXT).
1999-06-27 04:02:07 +00:00
Kurt Zeilenga
4dfba74846
Check for not LDAP_OPT_SUCCESS instead of LDAP_OPT_ERROR.
1999-06-22 05:47:14 +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
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
cb68aab469
s/ldap_open/ldap_init/ calls... ldap_open is deprecated.
1999-06-13 21:49:35 +00:00
Kurt Zeilenga
81d8a939a7
Fix target directories.
1999-06-07 18:40:21 +00:00
Kurt Zeilenga
c5a684f8ed
Add EXEEXT support (build only).
1999-06-06 05:32:55 +00:00
Kurt Zeilenga
3c639f41c7
Missed on mygetpass call...
1999-06-04 05:30:35 +00:00
Kurt Zeilenga
6b94bc7e0e
use getpass() instead of mygetpass().
...
getpass() is implemented in -llutil (if needed).
1999-06-04 02:05:10 +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
21c70857f1
s/<stdlib.h>/<ac/stdlib.h>/
1999-06-03 00:37:44 +00:00
Kurt Zeilenga
f472d3abcf
No anonymous unions.
1999-06-02 22:40:58 +00:00
Kurt Zeilenga
f61625264f
Use ber_strdup() as needed.
1999-06-02 22:33:57 +00:00