Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
password change in $iwhome/etc/shadow file
pratap
Hi
I have to read the Old Password , New Password from CGI form after that validate the old password with the Password in $iwhome/etc/shadow file . If Old password matches with the existing one in shadow file, I have to modify the password with the new password. Since the password in $iwhome/etc/shadow file is encrypted, Is anyone have the experience of how to do this..
TeamSite 6.1.0
SunOS 5.9
Thanks !
Find more posts tagged with
Comments
Adam Stoller
Is this a workflow issue?
or a custom menu item issue?
Are you trying to find a solution in Perl? Java? C? C++? C#? something else?
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
pratap
I am trying to find a soultion in Perl .
Adam Stoller
In what context are you trying to find a solution in Perl?
You posted on the workflow forum - is this for a workflow?
You posted on the templating form - is this for a DCT/DCR/PT ?
Or is this for a custom menu item ?
Or is this for something completely divorced from TeamSite altogether?
In general, I believe the control over what passwords are considered acceptable is handled at the OS-level because there should not be any [trivial] way for you to decode the passwords in the /etc/shadow file to do what you were suggesting.
You could trap the prompted-for information and run it through Perl and Expect (
http://expect.nist.gov/
) to verify certain basic requirements before passing it on to the actual passwd program (e.g., like whether or not it begins with an alphabetic characters, whether or not it contains any numeric and/or non-alphpabetic characters, etc.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com