aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/pure-ftpd
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2009-05-07 05:36:52 +0800
committergarga <garga@FreeBSD.org>2009-05-07 05:36:52 +0800
commit3b284d85be88dc4539ed0870108810729a3215af (patch)
tree8df1aeca6c13831440e1c10ed67c593bfb01d90b /ftp/pure-ftpd
parent9a2086a4becdf53238b17a91cc7dbabf9b60dff7 (diff)
downloadfreebsd-ports-gnome-3b284d85be88dc4539ed0870108810729a3215af.tar.gz
freebsd-ports-gnome-3b284d85be88dc4539ed0870108810729a3215af.tar.zst
freebsd-ports-gnome-3b284d85be88dc4539ed0870108810729a3215af.zip
- Fix working with LDAP
Notified by: Krzysztof Stryjek <wtp@bsdserwis.com> Obtained from: pure-ftpd maillist
Diffstat (limited to 'ftp/pure-ftpd')
-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