search for: ia_get_logpwd

Displaying 2 results from an estimated 2 matches for "ia_get_logpwd".

2005 Jul 28
1
greater than 8 character passwords on Unixware (IA database support)
...le needed -lcrypt and -liaf added to LIBS=. It had -lcrypto but needed -lcrypt for bigcrypt() xcrypt.c needed: - #include <ia.h> - xcrypt() needed to call bigcrypt() - shadow_pw() needed this, although it didn't really belong there: uinfo_t uinfo; ia_openinfo(pw->pw_name, &uinfo); ia_get_logpwd(uinfo, &pw_password); ia_closeinfo(uinfo);
2005 Aug 26
0
Patch for UnixWare 7
...Local user */ + fclose (fd); + return(0); + } + } + + fclose (fd); + return (1); +} + +#endif /* UNIXWARE_LONG_PASSWORDS */ + +#ifdef HAVE_LIBIAF +char * +get_iaf_password(struct passwd *pw) +{ + char *pw_password = NULL; + + uinfo_t uinfo; + if(!ia_openinfo(pw->pw_name,&uinfo)) + { + ia_get_logpwd(uinfo, &pw_password); + if(pw_password == NULL) + fatal("Unable to get the shadow passwd"); + ia_closeinfo(uinfo); + return pw_password; + } + else + fatal("Unable to open the shadow passwd file"); +} +#endif /* HAVE_LIBIAF */ + --- /dev/null 2005-08-25 21:20:32.00000...