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

Re: 2.0.4: inserting password



At 09:01 AM 10/4/00 +1100, Jie Gao wrote:
>Hi All,
>
>I have been trying to run a batch job to populate the database using
>perl-ldap. This includes inserting passwords, straight from a password
>file, along with other data.
>
>This is an example of what I used:
>
>            userPassword        =>      '{crypt}testtest',
>
>But the search result shows something like:
>
>    userPassword:: e2NyeXB0fXRlc3R0ZXN0
>
>'{crypt}'is not there anymore. This used to work with v1.2.

Note the double colon.  This means the value is base64 encoded.

  perl <<EOF
  use MIME::Base64;
  print "userPasswd=\"" . decode_base64('e2NyeXB0fXRlc3R0ZXN0') . "\"\n";
  EOF
  userPasswd="{crypt}testtest"

Kurt