[mod_auth_shadow/el5] added patch

Jan Klepek hpejakle at fedoraproject.org
Thu Feb 27 20:10:34 UTC 2014


commit 981fc6ba265913d16b88c951ee90674da03921f5
Author: Jan Klepek <jan.klepek at gmail.com>
Date:   Tue Jan 21 20:34:15 2014 +0100

    added patch

 mod_auth_shadow-2.3-crypt.patch |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/mod_auth_shadow-2.3-crypt.patch b/mod_auth_shadow-2.3-crypt.patch
new file mode 100644
index 0000000..db24c9d
--- /dev/null
+++ b/mod_auth_shadow-2.3-crypt.patch
@@ -0,0 +1,17 @@
+diff -Naur mod_auth_shadow_2.3/validate.c mod_auth_shadow_2.3-new/validate.c
+--- validate.c	2010-04-08 15:31:50.000000000 -0400
++++ validate.c	2012-05-03 13:39:57.843804475 -0400
+@@ -99,7 +99,12 @@
+         exit(1);
+         }
+     cryptpw = crypt(pw,ret->sp_pwdp);
+-    if (strcmp(cryptpw,ret->sp_pwdp)!=0){
++#ifdef LOG_FAILED_ATTEMPTS
++    if (cryptpw == NULL){
++        syslog(LOG_ERR,"VALIDATE: user: %s, crypt() failure",user);
++    }
++#endif
++    if (!cryptpw || (strcmp(cryptpw,ret->sp_pwdp)!=0)){
+ #ifdef LOG_FAILED_ATTEMPTS
+         syslog(LOG_ERR,"VALIDATE: user: %s, Authentication failure",user);
+ #endif


More information about the scm-commits mailing list