[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: slappasswd: read password from stdin (ITS#2411)

Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Kurt@OpenLDAP.org (Kurt@OpenLDAP.org) wrote:
> At 06:22 PM 3/31/2003, rb@debian.org wrote:
> >Kurt D. Zeilenga wrote:
> >> In looking at the code, I noticed it didn't support
> >> password files like the LDAP client tools (-y).  I've
> >> added support for this.
> >
> >Is there a reason the option is -T and not -y as it is in the client
> >tools?
> For consistency with ldappasswd(1).  -y is current password,
> -t is old password, -T is new password.
> >Since /dev/stdin isn't portable, would you apply a patch like the
> >following?
> I believe your patch would break most of the client tools,
> such as ldapmodify(1), which may read input from stdin.

I havn't looked at the code quite yet but I would think the expected
input for the password is a single line ended with a newline and so long
as the password handling only read that one line and did *not* close the
file handle if it's stdin things should be alright.


Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.2.1 (GNU/Linux)