Hello Matt,

  you don't need to worry about the salt. when you call crypt without a salt 
it creates a password for you with a randon salt. In php I have also noticed 
that you don't have to worry about passing the right salt to crypt function 
to check the password. if you call crypt($criptPass,$plainPass) it gets the 
salt from the password and returns true on passwork match and false 
otherwise.
The only thing you have to do when manually updating passwords it to put the 
name of the used hash function before it and keep the {}: eg: 
{crypt}crypt-hash

 and treat it as normal text while updating ldap.

hope this helps you.

Flavio

On Monday 29 November 2004 19:56, Matt wrote:
> Hi,
> How are the passwords stored in the LDAP?   The software we use to put
> things in from our billing system right now is set for 'unix crypt'.
>  I'm just trying to figure out what salt I need to use to create new
> passwords in there?   In other words, qmail is happily authenticating
> people off of LDAP at the moment, and I can add people.  However, if I
> were to want to manually add a password to the LDAP database, what
> salt or what do I need to use to generate the password so qmail-ldap
> will recognize it?

-- 
Att.,

Fl�vio Fonseca
Equipe Divis�o de Redes (DR)
Diretoria de Processamento de Dados (DirPD)
Universidade Federal de Uberlandia (UFU)

Reply via email to