Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 181712 - net-ftp/proftpd-1.3.1_rc2-r2 with USE="pam" breaks ldap/sql/file auth
Summary: net-ftp/proftpd-1.3.1_rc2-r2 with USE="pam" breaks ldap/sql/file auth
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Luca Longinotti (RETIRED)
URL:
Whiteboard:
Keywords:
: 181893 182039 183141 (view as bug list)
Depends on:
Blocks: 175082
  Show dependency tree
 
Reported: 2007-06-11 23:49 UTC by Andrew Roberts
Modified: 2007-06-26 23:24 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
proftpd-1.3.1_rc2-bug181712.patch (proftpd-1.3.1_rc2-bug181712.patch,1.25 KB, text/plain)
2007-06-12 19:31 UTC, Andrew Roberts
Details
proposed ebuild (proftpd-1.3.1_rc2-r3.ebuild,6.19 KB, text/plain)
2007-06-12 19:35 UTC, Andrew Roberts
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Roberts 2007-06-11 23:49:04 UTC
Upgrading from 1.3.1_rc2-r1 to -r2 breaks authentication with mod_ldap.c if the "pam" use flag is enabled.

After upgrading to -r2, proftpd logins for users in LDAP fail with "Incorrect password."  After either downgrading to -r1 or merging with USE="-pam", LDAP users can authenticate again.

Portage 2.1.2.7 (hardened/x86/2.6, gcc-3.4.6, glibc-2.5-r3, 2.6.20-hardened-r2 i686)
=================================================================
System uname: 2.6.20-hardened-r2 i686 Pentium III (Katmai)
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 11 Jun 2007 16:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.20-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O2 -fforce-addr -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/fax /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium3 -O2 -fforce-addr -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.public.fix.fi/gentoo/ http://mirrors.ludost.net/gentoo/ ftp://213.186.33.38/gentoo-distfiles/"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="acl apache2 async bcmath berkdb bzip2 caps cgi cli crypt ctype cups discard-path dovecot-sasl expat fam fastbuild fax faxonly flatfile foomaticdb force-cgi-redirect ftp gd glibc-omitfp gnustep hardened horde iconv imap iodbc iproute2 jbig jpeg jpeg2k jpgraph largeterminal ldap ldapsam libg++ libwww logrotate mhash midi ncurses nls noauthunix nptl odbc pam passfile pcre pdo perl pg-vacuumdelay php pic png posix postgres ppds python quotas readline samba session sieve simplexml soap sockets spell spl sse ssl suhosin swat syslog tcpd tiff tokenizer truetype unicode urandom vhosts x86 xml xorg xsl zip zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-06-12 04:00:46 UTC
Shrug; report this upstream please. Getting tired of their screw-ups on a security patch; the patch in -r1 has broken pam, now they've broken ldap.

http://bugs.proftpd.org/
Comment 2 thorn 2007-06-12 13:33:57 UTC
I've used pam authentification upto now - all worked in r1 and r2 (without ldap).
Tried mod_auth_file today and it won't work in r2 but works in r1.

Keeps saying:
[proftpd] - USER xxx (Login failed): Incorrect password._

It could be related to this one.
Comment 3 Andrew Roberts 2007-06-12 19:31:44 UTC
Created attachment 121844 [details]
proftpd-1.3.1_rc2-bug181712.patch

Patch from upstream:
http://bugs.proftpd.org/attachment.cgi?id=2643
Comment 4 Andrew Roberts 2007-06-12 19:35:58 UTC
Created attachment 121846 [details]
proposed ebuild
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-06-13 11:28:05 UTC
*** Bug 181893 has been marked as a duplicate of this bug. ***
Comment 6 thorn 2007-06-13 11:30:36 UTC
I've used your proftpd-1.3.1_rc2-bug181712.patch (and ebuild-r3)
and things are working ok in pam auth and also mod_auth_file.
Thanks,
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-06-14 17:08:33 UTC
*** Bug 182039 has been marked as a duplicate of this bug. ***
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-06-25 12:27:41 UTC
*** Bug 183141 has been marked as a duplicate of this bug. ***
Comment 9 Lars Hartmann 2007-06-26 10:14:21 UTC
this bug affects an security bug
maintainers - please advice
Comment 10 Kai Krakow 2007-06-26 12:03:26 UTC
As far as my local setup is concerned, this also affects the module mod_sql_mysql.c. Reverting back to -r1 fixed the issue.
Comment 11 Luca Longinotti (RETIRED) gentoo-dev 2007-06-26 23:24:58 UTC
Fixed in -r3, thanks for the help.
Best regards, CHTEKK.