/* This demo needs to be compiled with -lsecurity

Author	: Premson P. R.
Desc	: Validates a password for a given userid

*/

#define NIL NULL
#include <prot.h>
#include <sia.h>
#include <siad.h>
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[]) {

printf("\n%d\n\n",sia_validate_user (NIL,argc,argv,"backup","root",NIL,NIL,NIL,"welcom123")) ;
printf("luid = %ld\n", (long)getluid());

}


