Package: pure-ftpd-ldap Version: 1.0.21-8 Severity: normal Tags: patch
hi, Submitting a patch to test for either "enabled" or "TRUE". These values are used in the original IA5StringMatch, or BooleanMatch, respectively, for the LDAP-enabled pure-ftpd daemon. I haven't tested it but I think it will a) work b) compile. very simple: ===== --- log_ldap.c.orig 2007-07-19 02:54:34.741694960 -0400 +++ log_ldap.c 2007-07-19 02:57:01.022330368 -0400 @@ -272,7 +272,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, "enabled") != 0)) { + if ((pw_enabled != NULL) && (strcasecmp(pw_enabled, "enabled") != 0) + || (strcasecmp(pw_enabled, "TRUE") != 0) { goto error; } #ifdef QUOTAS ===== Just simply ORing the if statement test for "enable" or "TRUE". Why? because some people have the old schema, and some the new one, in their LDAP servers, and this gives them a chance to switch their user entries over without hassles, and people can use either schema as designed. simon -- System Information: Debian Release: 4.0 APT prefers stable APT policy: (500, 'stable') Architecture: powerpc (ppc) Kernel: Linux 2.6.21-pylon1 Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages pure-ftpd-ldap depends on: ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries ii libcap1 1:1.10-14 support for getting/setting POSIX. ii libldap2 2.1.30-13.3 OpenLDAP libraries ii libpam0g 0.79-4 Pluggable Authentication Modules l ii libssl0.9.8 0.9.8c-4 SSL shared libraries ii pure-ftpd-common 1.0.21-8 Pure-FTPd FTP server (Common Files pure-ftpd-ldap recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]