* src/login.c: Use failent_user to log to audit. username is the
caller, not the user login tries to authenticate. * src/login.c: Use pwd->pw_name instead of pwd->pw_uid. This might be more precise (name must be unique, uid might not be).
This commit is contained in:
parent
c71e7861ed
commit
9fa519c983
@ -1,3 +1,10 @@
|
|||||||
|
2008-09-20 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
|
* src/login.c: Use failent_user to log to audit. username is the
|
||||||
|
caller, not the user login tries to authenticate.
|
||||||
|
* src/login.c: Use pwd->pw_name instead of pwd->pw_uid. This might
|
||||||
|
be more precise (name must be unique, uid might not be).
|
||||||
|
|
||||||
2008-09-20 Nicolas François <nicolas.francois@centraliens.net>
|
2008-09-20 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* man/passwd.1.xml: passwd cannot change the full name of the
|
* man/passwd.1.xml: passwd cannot change the full name of the
|
||||||
|
@ -752,8 +752,7 @@ int main (int argc, char **argv)
|
|||||||
AUDIT_USER_LOGIN,
|
AUDIT_USER_LOGIN,
|
||||||
NULL, /* Prog. name */
|
NULL, /* Prog. name */
|
||||||
"login",
|
"login",
|
||||||
(NULL!=username)?username
|
failent_user,
|
||||||
:"(unknown)",
|
|
||||||
AUDIT_NO_ID,
|
AUDIT_NO_ID,
|
||||||
hostname,
|
hostname,
|
||||||
NULL, /* addr */
|
NULL, /* addr */
|
||||||
@ -1045,8 +1044,8 @@ int main (int argc, char **argv)
|
|||||||
AUDIT_USER_LOGIN,
|
AUDIT_USER_LOGIN,
|
||||||
NULL, /* Prog. name */
|
NULL, /* Prog. name */
|
||||||
"login",
|
"login",
|
||||||
NULL, /* user's name => use uid */
|
pwd->pw_name,
|
||||||
(unsigned int) pwd->pw_uid,
|
AUDIT_NO_ID,
|
||||||
hostname,
|
hostname,
|
||||||
NULL, /* addr */
|
NULL, /* addr */
|
||||||
tty,
|
tty,
|
||||||
|
Loading…
Reference in New Issue
Block a user