Okay, so in AIX, there are various subroutines that is built in to the OS. The subroutine is I want to use is passwdpolicy(). So I want to construct a C program that will be able to pass credentials into the program and thusly into the subroutine.
Here is the subroutine:
#include <pwdpolicy.h>
int passwdpolicy (const char *name, int type, const char *old_password,
const char *new_password, time64_t last_update);
Now. Let's say I want to test the password for the user
testy, with an old password of
a1s2d3f4 and a new password of
q1w2e3r4.
Here is the link to the subroutine, via IBM:
http://publib.boulder.ibm.com/infoce...sswdpolicy.htm
I don't know much about C, so everytime I try to compile this, I get syntax errors because I have no idea how to define it, call it, etc.
Anyone know C can help me?