userPassword

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dharmin Mandalia wrote:
> Hi
>
> I used below script to assign password(123.com) to user test1 account 
> which has no password assigned  and it does assign the password, when 
> try to login as user test1 with password 123.com, am unable to login. 
> Assigned passwords to few test accounts using below script and same 
> issue unable to login. 
> # ./script   test1   123.com
> ######### START ######################################
> #!/bin/ksh  -x
> uid=$1    ;     password=$2
> PASSWD=`slappasswd  -v  -h {SSHA}   -s  "$password"`
>
> ldapmodify  -x  -D  "cn=Directory Manager"  -w  `cat /tmp/p`   <<  
> ALLDONE
> dn: uid=$uid,ou=People, dc=trust, dc=co, dc=uk
> changetype: modify
> add: userpassword
> userpassword: "$PASSWD"
> ALLDONE
> ######### END ####################
>
> When I export the database do see the the userPassword entry as :-
> userPassword: {SSHA}Q7B+QFu2iRXxH8Ys8bfW/i3O0HrjSKfwbZHn4A==
Have you tried it without the quotes in the here document?  I think the 
quotes may be interpreted literally in here documents. e.g.
userpassword: $PASSWD
>
> In the script I also tried PASSWD=123.com , still the same , unable to 
> login.
>
> Any helpers to why above script assigns the password but unable to 
> login and what should I do so am able to login.
>
> Thanks
>
> Regards
> Dharmin
>
>
> -- 
> Fedora-directory-users mailing list
> Fedora-directory-users at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-directory-users

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3258 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.fedoraproject.org/pipermail/389-users/attachments/20081124/440a02f8/attachment.bin 


[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux