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

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



--O8nUzFXSEQuWwhTG
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?
>=20
> For consistency with ldappasswd(1).  -y is current password,
> -t is old password, -T is new password.
>=20
> >Since /dev/stdin isn't portable, would you apply a patch like the
> >following?
>=20
> 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.

	Stephen

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+iQeTrzgMPqB3kigRAoaGAJ4+PSpdEF8RzMz7ACtzx58yW6j8qwCfcDrP
3Y7b3q0IqjuIapHL4BZ1JiQ=
=W3rV
-----END PGP SIGNATURE-----

--O8nUzFXSEQuWwhTG--