[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Patch: 'ldapmodify -y file' reads password from file (ITS#2031)
One of the nice things about using the whole contents of a file
is that one can use dd if=/dev/random of=/srv/passwd to create
a password file and use userPassword:< file:///srv/passwd to add
it to the directory and use -y in scripts.
For those who want to use it for simple passwords, the
file can easily be created using:
echo -n 'secret' > /srv/passwd
where echo is the builtin version, so args are not exposed
to ps(1).
At 04:06 AM 2002-08-24, h.b.furuseth@usit.uio.no wrote:
>Kurt Zeilenga writes:
>> Committed with adaptations. Complete contents of file are used.
>
>At least strip the thrailing LF (or CRLF) before EOF. Though I
>preferred to strip trailing whitespace, so the password would look like
>what the file looks like. (I don't like significant invisible
>whitespace.)
>
>--
>Hallvard