search for: getuserpw

Displaying 3 results from an estimated 3 matches for "getuserpw".

2002 Mar 12
0
Antwort: Password sync problem
...esults with our AIX 4.3.3. It seems the samba redirection of stdout and stdin (which seems to work with most unix platforms) does not work with AIX. I detected similar problems with redirection from java. I have created a patch for samba 2.2.2 to directly change the AIX password (using AIX-routines getuserpw and setuserpw). I think it will also work with 2.2.3a. Its not yet published on my web site. Let me know if you want to try it - I will speed up. regards MW "Nordqvist, Per" <Per.Nordqvist@toyota-f1.com>@lists.samba.org on 12.03.2002 11:28:59 Gesendet von: samba-admin@lists...
2003 Jul 09
0
[PATCH] Add expired password handling for AIX.
...expired; + struct userpw *upw; + + /* + * Check if password has been expired too long. In this case, + * passwdexpired still returns 1 but /bin/passwd will fail + * while still returning a successiful status, allowing the + * login. So, we deny these login attempts here. + */ + upw = getuserpw(user); + result = getuserattr(user, S_MAXEXPIRED, &maxexpired, SEC_INT); + result2 = getuserattr(user, S_MAXAGE, &maxage, SEC_INT); + if (upw != NULL && result == 0 && result2 == 0) { + time_t now, lastup = upw->upw_lastupdate; + + now = time(NULL); + debug3(&quo...
2003 Jul 30
1
[PATCH] Password expiry merge (AIX parts)
...expired; + struct userpw *upw; + + /* + * Check if password has been expired too long. In this case, + * passwdexpired still returns 1 but /bin/passwd will fail + * while still returning a successiful status, allowing the + * login. So, we deny these login attempts here. + */ + upw = getuserpw(user); + result = getuserattr(user, S_MAXEXPIRED, &maxexpired, SEC_INT); + result2 = getuserattr(user, S_MAXAGE, &maxage, SEC_INT); + if (upw != NULL && result == 0 && result2 == 0) { + time_t now, lastup = upw->upw_lastupdate; + + now = time(NULL); + debug3(&quo...