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

Re: Why I can't move md5 password from ldap to shadow (fwd)



At 10:34 AM 9/15/00 +0200, netadmin wrote:
>I can move password from ldap to shadow but only when they was crypt'ed :
>userpassword={crypt}xxxyyyzzz.

The {crypt} scheme supports any value your crypt(3)
library call supports.  Many versions of crypt(3) support
a variety of hash algorithms.

>I have some password with md5 :
>userpassword={md5}12345678901234567890==
>but they don't work...
>In shadow i shoud have $1$xxyyzzuu$qqwweerrtt...

This is a password(5) format password and NOT compatible
with either {MD5} nor {SMD5} format.  However, if your
crypt(3) library call supports this format, you can
use:
        {crypt}$1$xxyyzzuu$qqwweerrtt

If that doesn't work, you'll have to write code.

Kurt