c code to change current user password using PAM API

 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.

Ashish Yadav 

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