You can use gui. Just edit user account and type thre new password. Directory server should encypt it before updating the entry in database.

If you use slappasswd without any parameters it will ask for password and generate sha1 hash for you. To use crypt you need to set format to crypt, and set proper salt.

I shold have on my pc example script using slappasswd i wrote it some time ago. I can't post it now bcause at the moment im on the bus. If no one will post example of using slappasswd then I will later. Unless you will find solution first.

Greg.

Send from htc desire z

05-08-2012 15:34, "Fosiul Alam" <fosiul@gmail.com> napisa³(a):
HI
Thanks for reply
I am using Directory Server 389

and I am using a script to create the ldif file

So some how i will  have to create userpassword ..

But dont understand .. whats the way  to do that
>From GUI interface i can create password  easily
so whats the syntax to create userpassword ??

Regards


On Sun, Aug 5, 2012 at 2:25 PM, Christopher Wood
<christopher_wood@pobox.com> wrote:
> Perhaps use slappasswd?
>
> On Sun, Aug 05, 2012 at 01:58:33PM +0100, Fosiul Alam wrote:
>> Hi
>> I am generating  the ldif by script.
>> but i cant understand how  will i generate the userpassword.
>>
>> userPassword: {crypt}x
>>
>> how this crypt or hash working
>>
>> Please give me some lights on this.
>>
>>
>> Regards
>> --
>> 389 users mailing list
>> 389-users@lists.fedoraproject.org
>> https://admin.fedoraproject.org/mailman/listinfo/389-users
> --
> 389 users mailing list
> 389-users@lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/389-users



--
Regards
Fosiul Alam
07877100621
http://www.fosiul.co.uk
--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users