Browse code
hide token from authpriv
Greg Wiley authored on 08/05/2017 16:03:19
Showing 2 changed files
Showing 2 changed files
... | ... |
@@ -35,14 +35,14 @@ public: |
35 | 35 |
case PAM_SUCCESS: |
36 | 36 |
facility = LOG_AUTHPRIV; |
37 | 37 |
priority = LOG_NOTICE; |
38 |
- message = requester_user_name + " " + authorizer_user_name + " " + token + |
|
38 |
+ message = requester_user_name + " " + authorizer_user_name + |
|
39 | 39 |
" " + "success"; |
40 | 40 |
break; |
41 | 41 |
|
42 | 42 |
case PAM_AUTH_ERR: |
43 | 43 |
facility = LOG_AUTHPRIV; |
44 | 44 |
priority = LOG_NOTICE; |
45 |
- message = requester_user_name + " " + authorizer_user_name + " " + token + |
|
45 |
+ message = requester_user_name + " " + authorizer_user_name + |
|
46 | 46 |
" " + "fail"; |
47 | 47 |
break; |
48 | 48 |
|
... | ... |
@@ -61,7 +61,7 @@ int logs_success() |
61 | 61 |
//then |
62 | 62 |
check (capture->facility == LOG_AUTHPRIV, "facility does not match"); |
63 | 63 |
check (capture->message == requester_user + " " + authorizer_user + " " + |
64 |
- token + " " + "success", |
|
64 |
+ "success", |
|
65 | 65 |
"message does not match"); |
66 | 66 |
check (capture->priority == LOG_NOTICE, "priority does not match"); |
67 | 67 |
check (capture->closed, "syslog not closed"); |
... | ... |
@@ -85,7 +85,7 @@ int logs_failure() |
85 | 85 |
|
86 | 86 |
//then |
87 | 87 |
check (capture->facility == LOG_AUTHPRIV, "facility does not match"); |
88 |
- check (capture->message == requester + " " + authorizer + " " + token + " " |
|
88 |
+ check (capture->message == requester + " " + authorizer + " " |
|
89 | 89 |
+ "fail", |
90 | 90 |
"message does not match"); |
91 | 91 |
check (capture->priority == LOG_NOTICE, "priority does not match"); |