Good day,

I have a command-line PHP script that connects to an LDAP database and does
some queries.

To increase security, I would like to not put the bind password into the
program, and instead have the user type it in.  But, I'd like to have this
done so that the password is not echo'd to the screen.

Lots of searching has shown that people have done something similar in C and
Perl by closing the stdout channel.  But, I haven't found anything similar
in PHP (and I would need to reopen the channel again somehow afterwards

Does anyone have a suggestion on how this might be accomplished?

In the meantime I'll just put the password in the program, but, I'd like to
learn how this could be done.

Thanks in advance,

Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to