|
From: <de...@il...> - 2002-04-10 18:17:44
|
On Wed, 3 Apr 2002, Hans Aschauer wrote:
> import crypt
> passwd = 'mysecret'
> salt = "xy"
> userPassword = '{crypt}' + crypt.crypt(passwd,salt)
>
> And that's it. userPassword could then be used with the add() method of
> the ldap object.
Thanks for the example code. I guess I was a little confused about where
the encryption took place. So now I understand that if I want to add an
encrypted password in ldap I would do the encryption myself, prefixing the
encrypted password with the encryption type (ie '{SHA}'). Then I add the
password as a value of userPassword.
--
---
Dennis Sacks
de...@il...
"An idiot with a computer is a faster, better idiot." - Rick Julius
|