Flavio,
Ok, so say the user's password was 'snoopy'.  Do I pass to ldap:
{crypt}snoopy
as the password variable when I'm doing updating?

Now what would be the difference between doing:
unixcrypt
and
{crypt}unixcrypt

as these are the two options in our current billing software, and we
currently use unixcrypt.
And the passwords look like: HeTTLKfZaCI5A

What does that mean? (Sorry.. this is the first I've actually delved
into the password side of qmail-ldap).

On Mon, 29 Nov 2004 20:08:32 -0200, Flavio Fonseca <[EMAIL PROTECTED]> wrote:
> 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