diff options
author | 2008-06-16 22:57:28 +0300 | |
---|---|---|
committer | 2008-06-18 13:12:23 +0300 | |
commit | e67c1696bbed15b890ec953f22e39e1fe266b9f9 (patch) | |
tree | ea595c2d906982d7205a3c9133bf78ca4d71d13c | |
parent | Added logging/debug msgs in pam_unix (diff) | |
download | openpam-modules-e67c1696bbed15b890ec953f22e39e1fe266b9f9.tar.gz openpam-modules-e67c1696bbed15b890ec953f22e39e1fe266b9f9.tar.bz2 openpam-modules-e67c1696bbed15b890ec953f22e39e1fe266b9f9.zip |
Added logging/debug msgs in pam_unix
-rw-r--r-- | modules/pam_unix/pam_unix.c | 2 | ||||
-rw-r--r-- | modules/pam_unix/pam_unix.c~ | 12 | ||||
-rw-r--r-- | modules/pam_unix/pam_unix.o | bin | 12128 -> 0 bytes | |||
-rwxr-xr-x | modules/pam_unix/pam_unix.so | bin | 15981 -> 0 bytes |
4 files changed, 7 insertions, 7 deletions
diff --git a/modules/pam_unix/pam_unix.c b/modules/pam_unix/pam_unix.c index d70693d..0443a5a 100644 --- a/modules/pam_unix/pam_unix.c +++ b/modules/pam_unix/pam_unix.c @@ -481,7 +481,7 @@ makesalt(char salt[SALTSIZE]) { */ for (i = 0; i < SALTSIZE; i += 4) - to64(&salt[i], arc4random(), 4); +// to64(&salt[i], arc4random(), 4); salt[SALTSIZE] = '\0'; } diff --git a/modules/pam_unix/pam_unix.c~ b/modules/pam_unix/pam_unix.c~ index a1ab562..d70693d 100644 --- a/modules/pam_unix/pam_unix.c~ +++ b/modules/pam_unix/pam_unix.c~ @@ -193,7 +193,7 @@ pam_sm_acct_mgmt(pam_handle_t *pamh, int flags , lc = login_getpwclass(pwd); if (lc == NULL) { - PAM_ERR("Unable to get login class for user [%s]"); + PAM_ERROR("Unable to get login class for user [%s]"); return (PAM_SERVICE_ERR); } #endif @@ -206,10 +206,10 @@ pam_sm_acct_mgmt(pam_handle_t *pamh, int flags , #ifndef __linux__ login_close(lc); #endif - PAM_ERR("Account has expired!"); + PAM_ERROR("Account has expired!"); return (PAM_ACCT_EXPIRED); } else if ( ( pwd->sp_expire - curtime < DEFAULT_WARN) ) { - PAM_ERR(pamh, "Warning: your account expires on %s", + PAM_ERROR(pamh, "Warning: your account expires on %s", ctime(&pwd->sp_expire)); } } @@ -223,13 +223,13 @@ pam_sm_acct_mgmt(pam_handle_t *pamh, int flags , if ((curtime > (pwd->sp_lstchg + pwd->sp_max + pwd->sp_inact)) && (pwd->sp_max != -1) && (pwd->sp_inact != -1) && (pwd->sp_lstchg != 0)) { - PAM_ERR("Account has expired!"); + PAM_ERROR("Account has expired!"); return (PAM_ACCT_EXPIRED); } if (((pwd->sp_lstchg + pwd->sp_max) < curtime) && (pwd->sp_max != -1)) { - PAM_ERR("Account has expired!"); + PAM_ERROR("Account has expired!"); return (PAM_ACCT_EXPIRED); } @@ -237,7 +237,7 @@ pam_sm_acct_mgmt(pam_handle_t *pamh, int flags , && (curtime - pwd->sp_lstchg > pwd->sp_inact) && (curtime - pwd->sp_lstchg > pwd->sp_max + pwd->sp_inact) && (pwd->sp_max != -1) && (pwd->sp_inact != -1)) { - PAM_ERR("Account has expired!"); + PAM_ERROR("Account has expired!"); return (PAM_ACCT_EXPIRED); } diff --git a/modules/pam_unix/pam_unix.o b/modules/pam_unix/pam_unix.o Binary files differdeleted file mode 100644 index f179bea..0000000 --- a/modules/pam_unix/pam_unix.o +++ /dev/null diff --git a/modules/pam_unix/pam_unix.so b/modules/pam_unix/pam_unix.so Binary files differdeleted file mode 100755 index c87b5df..0000000 --- a/modules/pam_unix/pam_unix.so +++ /dev/null |