Hi Ashish,
Yes you can definitely achieve this using the pAM APIS.
You can use pam_start() and pam_authenticate() for instance.
Please refer to this link. Let me know if this is of any help.
http://developers.sun.com/solaris/articles/user_auth_solaris2.html#Example_PAM_App
Regards
Biswajeet Dash|
Symbian Software India Private Limited |
[EMAIL PROTECTED]
"ashish yadav" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
07/10/2008 10:28 AM
To
[email protected]
cc
Subject
c code to change current user password using PAM API
Hi,
I want to write c code to change current user password.
The code first check for current password & then set new password.
The code must use PAM API just like passwd utility.
Also code must work without user intervention ie only by argument current
password & new password are given.
So, can any one know that already this work is done or i can use passwd
utility in my c code using system command.
Thanks.
Ashish Yadav
_______________________________________________
gnome-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnome-list
**********************************************************************
Symbian Software Ltd is a company registered in England and Wales
with registered number 4190020 and registered office at 2-6
Boundary Row, Southwark, London, SE1 8HP, UK. This message is
intended only for use by the named addressee and may contain
privileged and/or confidential information. If you are not the
named addressee you should not disseminate, copy or take any action
in reliance on it. If you have received this message in error
please notify [EMAIL PROTECTED] and delete the message and any
attachments accompanying it immediately. Neither Symbian nor any of
its Affiliates accepts liability for any corruption, interception,
amendment, tampering or viruses occurring to this message in
transit or for any message sent by its employees which is not in
compliance with Symbian corporate policy.
**********************************************************************
_______________________________________________
gnome-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnome-list