Commit Graph

45 Commits

Author SHA1 Message Date
Kurt Zeilenga
8eb0741a1c Ppolicy control should be sent with every request...
handle returns in ldappasswd(1) and ldapwhoami(1).  Likely needs to be
added to other ldap*(1) commands.
2007-06-19 01:02:42 +00:00
Kurt Zeilenga
da6d9eb046 happy new year 2007-01-02 20:00:42 +00:00
Luke Howard
b7c41e655f Add common -o nettimeout option to specify network timeout 2006-12-18 03:17:43 +00:00
Howard Chu
3f09968e5f cleanup 2006-03-31 13:09:42 +00:00
Pierangelo Masarati
ade9272561 streamline server control requests 2006-01-09 23:00:28 +00:00
Pierangelo Masarati
57ca537d0c rework control response handling 2006-01-08 19:51:28 +00:00
Kurt Zeilenga
acbb5cf689 Happy new year! 2006-01-03 23:11:52 +00:00
Pierangelo Masarati
81b28fe329 check reponse tags in ldapmodify; other functions rely on client library, which might need further work. Also, remove or silence all deprecated API calls 2005-11-16 21:50:51 +00:00
Pierangelo Masarati
90b46ed931 fix previous commit (was causing failure of test028) 2005-04-21 00:47:50 +00:00
Pierangelo Masarati
4a223061ed allow abandon/cancel for all tools 2005-04-19 21:21:51 +00:00
Kurt Zeilenga
c57f440118 ITS#3620: Initial Unbind control fix
A better fix would be to use the _ext interface
Also add and use a tool_destroy() function (to destroy SASL/TLS contexts).
2005-04-01 23:29:02 +00:00
Kurt Zeilenga
dc0eacd40b Happy New Year! 2005-01-01 20:49:32 +00:00
Kurt Zeilenga
25805a3bb2 -E/-e are not just for controls 2004-03-12 22:34:07 +00:00
Kurt Zeilenga
3c598e89fb Happy new year 2004-01-01 19:15:16 +00:00
Kurt Zeilenga
d5a1231a64 Remove -C(hasing) option. Doesn't make sense for update operations
(at least not with a secure authentication framework).
2003-12-17 00:34:37 +00:00
Hallvard Furuseth
51f1b8ccd7 Avoid /* inside comments. 2003-11-29 17:29:44 +00:00
Kurt Zeilenga
e3a4c4ec9c Notice/Acknowledge updates 2003-11-26 02:58:56 +00:00
Kurt Zeilenga
327880b984 Notice updates 2003-11-25 23:17:08 +00:00
Kurt Zeilenga
afa2cd1893 ITS#2657: authzid (and assertion) should apply to most everything
(preliminary modify/incr client-side code)
2003-07-30 10:21:16 +00:00
Kurt Zeilenga
0dcd32372c Mark translatable strings. Needs work. 2003-04-06 02:59:15 +00:00
Howard Chu
3499a51dc1 Revert previous commit 2003-03-29 00:28:00 +00:00
Howard Chu
78f9fb45d4 Use ol_version.h 2003-03-18 23:37:14 +00:00
Kurt Zeilenga
dab6bdaaad First cut at -V (version) argument. Needs work. 2003-01-20 20:11:57 +00:00
Kurt Zeilenga
6939c53170 Happy new year 2003-01-03 20:20:47 +00:00
Hallvard Furuseth
5b8302f655 Factor out common client code to file common.c 2002-12-12 16:32:26 +00:00
Kurt Zeilenga
da76c1951e First-cut proxy authorization support. 2002-12-03 06:11:32 +00:00
Hallvard Furuseth
334ff687d6 Esthetic change: Move break; out of if() to before the next case: 2002-12-02 15:46:53 +00:00
Kurt Zeilenga
ca84693b12 Clean up error messages 2002-11-29 02:49:11 +00:00
Kurt Zeilenga
e918c3b5a7 Add -e authzid argument processing 2002-11-28 05:56:19 +00:00
Kurt Zeilenga
8754c8f2a3 #unifdef paged results, remove lint 2002-11-28 04:38:41 +00:00
Kurt Zeilenga
053da4db7b Use ldap_whoami_s(3) 2002-11-28 03:14:54 +00:00
Kurt Zeilenga
5fe7d38e1c Add whoami.c and passwd.c and other minor tweaks to control cleanups 2002-11-28 02:44:38 +00:00
Kurt Zeilenga
235973571a proxy authz control (client only)
Misc control cleanups (client only)
2002-11-28 02:26:55 +00:00
Kurt Zeilenga
4ce42af196 Add client-side subentries control support.
Make sure client controls are not specified multiple times.
NT port updates.
2002-08-30 07:05:12 +00:00
Kurt Zeilenga
26e4960c1c Remove those #ifdefs NOOP just added. 2002-08-30 05:43:47 +00:00
Kurt Zeilenga
0517278aff Place NOOP behind #ifdef 2002-08-30 05:02:20 +00:00
Kurt Zeilenga
2de5c33ba7 Add manageDsaIt/NOOP control support to every tool.
Update NT build.
2002-08-29 21:52:45 +00:00
Kurt Zeilenga
d912c2c711 Rework client control parsing... need to implement
common controls across all tools.
2002-08-29 21:36:36 +00:00
Kurt Zeilenga
99912c586f Remove cruft 2002-08-24 06:29:06 +00:00
Kurt Zeilenga
8de258d2e2 Patch: 'ldapmodify -y file' reads password from file (ITS#2031)
================
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
            ================
Adapted by Kurt Zeilenga for inclusion in OpenLDAP.  My comments are
marked with enclosed with square brackets (e.g. [Kurt's comment] below.
            ================

If I run ldapmodify & co from a script, I don't want to use '-W password'
because the password shows up in the output of 'ps' for everyone,
and I can't pipe the password to 'ldapmodify -w' because -w uses
getpassphrase() which reads from the tty instead of stdin.
So I added '-y file' which reads the password from file.  The programs
exit if the file cannot be read.

[Complete contents of file is used as password.  Use:
	echo -n "secret" > password
to create a file with "secret" as the password.  The -n avoids
adding a newline (which would invalidate the password).  Note
that echo is a builtin and hence its arguments are not visible
to 'ps'.]

I changed ldapmodify, ldapmodrdn, ldapdelete, ldapsearch, ldapcompare.
I did not bother to change ldappasswd and ldapwhoami, because they
prompt for many passwords.  [I fixed up ldapwhoami.]

Rerun autoconf after applying this patch. [Done.]

Note:  I do not know if Windows NT has fstat(), so I set HAVE_FSTAT to
undef in portable.nt.  (fstat() is used to warn if the file is publicly
readable or writeable.)  [I used fstat() to set the buffer size to
read.]

[Note: using the contents of a file extends the tools to support
passwords which could not normally be provided using getpassphrase()
or via the command line.]

Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>, Aug 2002.
[Kurt D. Zeilenga <kurt@openldap.org>, Aug 2002.]
2002-08-24 05:47:17 +00:00
Howard Chu
d8929296b8 Use lutil_progname, #include <lutil.h> to get it. 2002-07-27 00:06:27 +00:00
Pierangelo Masarati
4a8ab5dbf2 Mostly based on patches provided by Hallvard B. Furuseth
ITS#1677 - cast away const warnings
ITS#1678 - unsigned char args to ctype funcs
ITS#1682 - don't redefine ldap_debug
ITS#1683 - uninitialized vars
ITS#1703 - ldo_debug initialization
ITS#1705 - unsigned testing
ITS#1706 - socklen_t args
ITS#1719 - back-tcl update (other cleanups/fixes/improvements; yet untested)
ITS#1724 - integerNormalize/integerFilter/integerIndexer bugs
ITS#1725 - libdes not required

Implement back-null (/dev/null style backend)
Cleanup some misc warnings ("%lu" format, unused/uninitialized vars,
        ambiguous operator precedence)

Kurt, please regenerate configure
2002-04-08 09:43:22 +00:00
Kurt Zeilenga
3a5c4e9e97 Return EXIT_FAILURE if result code is not success. 2002-03-11 00:25:20 +00:00
Kurt Zeilenga
ac6df28e7d Fix misplaced "search" references 2002-02-08 19:10:06 +00:00
Kurt Zeilenga
fef9741b52 Initial ldapwhoami implementation 2002-01-28 21:24:40 +00:00