modify userPassword via perl-ldap?

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

 



Jo De Troy wrote:
> What's the best way to update the userPassword from within perl?

Either you write it directly in the form of 
{ENCRYPTION_METHOD}CRYPT_TEXT where ENCRYPTION_METHOD is e.g. SSHA or 
MD5 or CRYPT and CRYPT_TEXT is the password, crypted with said method, 
or you use the "Modify Password" extended LDAPv3 operation as described 
in RFC 3062 which is implemented in Net::LDAP::Extension::SetPassword.

The example cited in the Net::LDAP::Extension::SetPassword manpage makes 
the server autogenerate the password, which I'm not sure if FDS can do, 
but it can be changed, either by binding as the user himself or as the 
directory administrator (or whatever your ACLs allow).

Net::LDAP::Extension::SetPassword has the added benefit of that password 
chances replicate to Active Directory replication agreements, if there 
be any.

-- 
  ___    El?as Halld?r ?g?stsson    ___    Elias Halldor Agustsson   ___
{o,o}   Yfirkerfisfr??ingur       {o.o}   Senior Systems Analyst   {o,o}
|)__)   Reiknistofnun H?sk?lans   |)_(|   University of Iceland    (__(|
-"-"-   http://elias.rhi.hi.is/   -"-"-   elias at hi.is +3545254903  -"-"-




[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