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

Re: how to generate passwords?



On Tue, 19 Mar 2002, Jean-Rene Cormier wrote:

I do not know much about PHP, but if you running linux (e.g RH 7.2 you can 
use mkpasswd to get a random string and pass it crypt to generate encrypted 
password.



> I've set up OpenLDAP to do user authentication for a server and now I'm
> trying to make a script so user could change their password from the web
> in PHP but I can generate the password using the crypt function in PHP
> and putting {crypt}whateverpassword  in the userPassword attribute and I
> can log in using SSH but I can't bind using the script I made anymore.
> Anybody could help me with a way to generate passwords in PHP? And also
> how do you generate password for the lmPassword and ntPassword? Thanks
> 
>  
> 
> Jean-Rene Cormier
> 
> 

-- 
================================================================================

Ivan Teliatnikov,
F05 David Edgeworth Building,
Department of Geology and Geophysics,
School of Geosciences,
University of Sydney, 2006
Australia

e-mail: ivan@es.usyd.edu.au
ph:  061-2-9351-2031 (w)
fax: 061-2-9351-0184 (w)

===============================================================================