aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ftp/pure-ftpd/files/patch-src__log_ldap.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/ftp/pure-ftpd/files/patch-src__log_ldap.c b/ftp/pure-ftpd/files/patch-src__log_ldap.c
new file mode 100644
index 000000000000..b42864ba77e0
--- /dev/null
+++ b/ftp/pure-ftpd/files/patch-src__log_ldap.c
@@ -0,0 +1,12 @@
+--- src/log_ldap.c.orig Thu Apr 30 07:51:04 2009
++++ src/log_ldap.c Wed May 6 22:43:33 2009
+@@ -282,7 +282,8 @@
+ pw_ldap_getpwnam_freefields(&pwret);
+ pwret.pw_name = (char *) name;
+ pw_enabled = pw_ldap_getvalue(ld, res, LDAP_FTPSTATUS);
+- if ((pw_enabled != NULL) && (strcasecmp(pw_enabled, "TRUE") != 0)) {
++ if (pw_enabled != NULL && strcasecmp(pw_enabled, "enabled") != 0 &&
++ strcasecmp(pw_enabled, "TRUE") != 0) {
+ goto error;
+ }
+ #ifdef QUOTAS