Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
smtp auth via pam broken [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
returnthis
n00b
n00b


Joined: 17 Oct 2004
Posts: 10

PostPosted: Mon Oct 22, 2007 6:34 pm    Post subject: smtp auth via pam broken [SOLVED] Reply with quote

Note: I solved this issue but changing to use checkpassword instead of checkpassword-pam[/code]




I have had smtp auth in qmail via /usr/bin/checkpassword-pam working for a while. I think that glibc broke pam. I can still ssh though

I decided to rollback to previous glibc and portage yelled at me. I have remerged pam and glibc to no affect. I a very similar setup on another box which is working. The only diff is that this setup is on athlon64.


Quote:

Oct 22 13:30:18 [system-auth] PAM unable to dlopen(/lib64/security/pam_unix.so)
Oct 22 13:30:18 [system-auth] PAM [dlerror: libnsl.so.1: failed to map segment from shared object: Cannot allocate memory]
Oct 22 13:30:18 [system-auth] PAM adding faulty module: /lib64/security/pam_unix.so
Oct 22 13:30:18 [system-auth] PAM unable to dlopen(/lib64/security/pam_cracklib.so)
Oct 22 13:30:18 [system-auth] PAM [dlerror: libcrypt.so.1: failed to map segment from shared object: Cannot allocate memory]
Oct 22 13:30:18 [system-auth] PAM adding faulty module: /lib64/security/pam_cracklib.so


Quote:

# free
total used free shared buffers cached
Mem: 1993484 463852 1529632 0 50988 146212
-/+ buffers/cache: 266652 1726832
Swap: 506036 0 506036



emerge --info
Quote:

Portage 2.1.3.9 (default-linux/amd64/2007.0, gcc-4.2.0, glibc-2.6.1-r0, 2.6.22-g
entoo-r5 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3000+
Timestamp of tree: Sat, 20 Oct 2007 23:30:06 +0000
app-shells/bash: 3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python: 2.4.4-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.61-r1
sys-devel/automake: 1.5, 1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils: 2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool: 1.5.24
virtual/os-headers: 2.6.22-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gcon
f /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-p
hp5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rul
es.d"
CXXFLAGS="-O2 -march=athlon64 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans use
rfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/
distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/di
stfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/opt/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 bash-completion berkdb bitmap-fonts cli cracklib crypt cups dri f
ortran gdbm gpm iconv ipv6 isdnlog midi mmx mudflap ncurses nls nptl nptlonly op
enmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl tcpd
truetype-fonts type1-fonts unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiix
p atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801
hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ym
fpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug fi
le hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate rou
te share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL=
"linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb nc
urses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev g
lint i128 i810 mach64 mga neomagic nv r128 radeon rendition s3 s3virge savage si
liconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGU
AS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Last edited by returnthis on Tue Nov 20, 2007 5:23 pm; edited 1 time in total
Back to top
View user's profile Send private message
returnthis
n00b
n00b


Joined: 17 Oct 2004
Posts: 10

PostPosted: Fri Oct 26, 2007 9:05 pm    Post subject: Reply with quote

poke.


I have been googling and asking on irc. No one seems to have a solution. I am completely unable to send mail. Is there any info that would be helpful?
Back to top
View user's profile Send private message
mad93
Apprentice
Apprentice


Joined: 15 Feb 2005
Posts: 184
Location: Catalunya

PostPosted: Sat Oct 27, 2007 3:21 pm    Post subject: Reply with quote

I've the same problem (can be de pam update?)
Back to top
View user's profile Send private message
mad93
Apprentice
Apprentice


Joined: 15 Feb 2005
Posts: 184
Location: Catalunya

PostPosted: Sat Oct 27, 2007 3:34 pm    Post subject: Reply with quote

It had an easy solution for me :)

/etc/init.d/courier-authlib restart
Back to top
View user's profile Send private message
returnthis
n00b
n00b


Joined: 17 Oct 2004
Posts: 10

PostPosted: Sun Oct 28, 2007 3:25 am    Post subject: Reply with quote

I restarted the entire computer after I remerged glibc and pam.
Back to top
View user's profile Send private message
returnthis
n00b
n00b


Joined: 17 Oct 2004
Posts: 10

PostPosted: Sun Oct 28, 2007 6:41 pm    Post subject: Reply with quote

incase this might help:


strace checkpassword-pam -s system-auth --debug --stdout

Quote:

execve("/usr/bin/checkpassword-pam", ["checkpassword-pam", "-s", "system-auth",
"--debug", "--stdout"], [/* 14 vars */]) = 0
brk(0) = 0x605000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b4
7c728c000
uname({sys="Linux", node="sarus", ...}) = 0
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=41236, ...}) = 0
mmap(NULL, 41236, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2b47c728d000
close(3) = 0
open("/lib/libpam.so.0", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240\35\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=35056, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b4
7c7298000
mmap(NULL, 2130344, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2b
47c748d000
mprotect(0x2b47c7495000, 2093056, PROT_NONE) = 0
mmap(0x2b47c7694000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYW
RITE, 3, 0x7000) = 0x2b47c7694000
close(3) = 0
open("/lib/libdl.so.2", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\16\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=14528, ...}) = 0
mmap(NULL, 2109728, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2b
47c7696000
mprotect(0x2b47c7698000, 2097152, PROT_NONE) = 0
mmap(0x2b47c7898000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYW
RITE, 3, 0x2000) = 0x2b47c7898000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\334"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1301648, ...}) = 0
mmap(NULL, 3408120, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2b
47c789a000
mprotect(0x2b47c79d2000, 2093056, PROT_NONE) = 0
mmap(0x2b47c7bd1000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENY
WRITE, 3, 0x137000) = 0x2b47c7bd1000
mmap(0x2b47c7bd6000, 16632, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANON
YMOUS, -1, 0) = 0x2b47c7bd6000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b4
7c7bdb000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b4
7c7bdc000
arch_prctl(ARCH_SET_FS, 0x2b47c7bdbdd0) = 0
mprotect(0x2b47c7bd1000, 16384, PROT_READ) = 0
mprotect(0x2b47c7898000, 4096, PROT_READ) = 0
mprotect(0x2b47c7694000, 4096, PROT_READ) = 0
mprotect(0x603000, 4096, PROT_READ) = 0
mprotect(0x2b47c748b000, 4096, PROT_READ) = 0
munmap(0x2b47c728d000, 41236) = 0
brk(0) = 0x605000
brk(0x626000) = 0x626000
fcntl(3, F_GETFL) = -1 EBADF (Bad file descriptor)
write(2, "Error opening fd 3: Bad file des"..., 39Error opening fd 3: Bad file d
escriptor) = 39
write(2, "\n", 1
) = 1
write(2, "Exiting with status 2", 21Exiting with status 2) = 21
write(2, "\n", 1
) = 1
exit_group(2) = ?
Process 25867 detached
Back to top
View user's profile Send private message
returnthis
n00b
n00b


Joined: 17 Oct 2004
Posts: 10

PostPosted: Sun Oct 28, 2007 8:41 pm    Post subject: Reply with quote

I just upgraded sys-libs/pam-0.78-r5 -> sys-libs/pam-0.99.8.1-r1

same problem
Back to top
View user's profile Send private message
johnisevil
n00b
n00b


Joined: 14 Dec 2003
Posts: 45
Location: Hamilton, ON Canada

PostPosted: Tue Oct 30, 2007 6:14 pm    Post subject: Reply with quote

I was getting this exact same error except from vsftpd. Restarting it seems to have done the trick.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum