Skip to content
Snippets Groups Projects
  1. Mar 28, 2005
  2. Mar 19, 2005
  3. Oct 20, 2004
  4. Oct 12, 2004
  5. Aug 30, 2004
  6. Jun 16, 2004
  7. Jun 15, 2004
  8. Apr 16, 2004
  9. Apr 13, 2004
  10. Apr 07, 2004
  11. Mar 18, 2004
  12. Dec 07, 2003
  13. Dec 06, 2003
  14. Nov 26, 2003
  15. Nov 24, 2003
  16. Oct 18, 2003
  17. Oct 06, 2003
  18. Jun 23, 2003
  19. May 09, 2003
  20. Mar 31, 2003
  21. Feb 10, 2003
  22. Jan 20, 2003
  23. Dec 05, 2002
  24. Dec 03, 2002
  25. Nov 27, 2002
  26. Nov 26, 2002
  27. Oct 26, 2002
  28. Oct 10, 2002
  29. Sep 01, 2002
  30. Aug 29, 2002
  31. Aug 24, 2002
    • Kurt Zeilenga's avatar
      Patch: 'ldapmodify -y file' reads password from file (ITS#2031) · 8de258d2
      Kurt Zeilenga authored
                  ================
      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.]
      8de258d2
  32. Aug 21, 2002
  33. Aug 12, 2002
Loading