Article delegate-en/2650 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:<_A2644@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: Problem with PAM authentication
14 Jun 2004 08:37:35 GMT Jehan-Guillaume de Rorthais <p4edabdyi-dyd2yvbeq6xr.ml@ml.delegate.org>


Hi Yutaka,

First, thanks for your answer.

Few weeks ago, reading the Mailing List
(http://delegate.org/mail-lists/delegate-en/02489), I installed dev and lib
packets about PAM...
 
I built and launch your test program on my server. Here the result (the same as
root or common user):

   frpa01proxy:~/delegateTest# ./a.out
   stat=0 ph=8049720

I didn't saw errors with strace :
_________________________STRACE___________________________
    frpa01proxy:~/delegateTest# strace ./a.out
    execve("./a.out", ["./a.out"], [/* 17 vars */]) = 0
    uname({sys="Linux", node="frpa01proxy", ...}) = 0
    brk(0)                                  = 0x8049714
    open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
    open("/etc/ld.so.cache", O_RDONLY)      = 3
    fstat64(3, {st_mode=S_IFREG|0644, st_size=12080, ...}) = 0
    old_mmap(NULL, 12080, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40014000
    close(3)                                = 0
    open("/lib/libpam.so.0", O_RDONLY)      = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\24"..., 1024) =
1024
    fstat64(3, {st_mode=S_IFREG|0644, st_size=29420, ...}) = 0
    old_mmap(NULL, 32428, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40017000
    mprotect(0x4001e000, 3756, PROT_NONE)   = 0
    old_mmap(0x4001e000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x6000) = 0x4001e000
    close(3)                                = 0
    open("/lib/libc.so.6", O_RDONLY)        = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\30\222"..., 1024) =
1024
    fstat64(3, {st_mode=S_IFREG|0755, st_size=1153784, ...}) = 0
    old_mmap(NULL, 1166560, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4001f000
    mprotect(0x40132000, 40160, PROT_NONE)  = 0
    old_mmap(0x40132000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x113000) = 0x40132000
    old_mmap(0x40138000, 15584, PROT_READ|PROT_WRITE,
AP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40138000
    close(3)                                = 0
    open("/lib/libdl.so.2", O_RDONLY)       = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0T\27\0\000"....,
1024) = 1024
    fstat64(3, {st_mode=S_IFREG|0644, st_size=8008, ...}) = 0
    old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x4013c000
    old_mmap(NULL, 11004, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4013d000
    mprotect(0x4013f000, 2812, PROT_NONE)   = 0
    old_mmap(0x4013f000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x1000) = 0x4013f000
    close(3)                                = 0
    open("/lib/libcrypt.so.1", O_RDONLY)    = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\t\0"..., 1024)
= 1024
    fstat64(3, {st_mode=S_IFREG|0644, st_size=19136, ...}) = 0
    old_mmap(NULL, 182044, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40140000
    mprotect(0x40145000, 161564, PROT_NONE) = 0
    old_mmap(0x40145000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x4000) = 0x40145000
    old_mmap(0x40146000, 157468, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40146000
    close(3)                                = 0
    munmap(0x40014000, 12080)               = 0
    brk(0)                                  = 0x8049714
    brk(0x80497c4)                          = 0x80497c4
    brk(0x804a000)                          = 0x804a000
    stat64("/etc/pam.d", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
    open("/etc/pam.d/passwd", O_RDONLY)     = 3
    fstat64(3, {st_mode=S_IFREG|0644, st_size=1242, ...}) = 0
    old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x40014000
    read(3, "#\n# The PAM configuration file f"..., 4096) = 1242
    open("/lib/security/pam_unix.so", O_RDONLY) = 4
    read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 $\0\000"..., 1024)
= 1024
    fstat64(4, {st_mode=S_IFREG|0644, st_size=41432, ...}) = 0
    old_mmap(NULL, 94176, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x4016d000
    mprotect(0x40177000, 53216, PROT_NONE)  = 0
    old_mmap(0x40177000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4,
0x9000) = 0x40177000
    old_mmap(0x40178000, 49120, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40178000
    close(4)                                = 0
    open("/etc/ld.so.cache", O_RDONLY)      = 4
    fstat64(4, {st_mode=S_IFREG|0644, st_size=12080, ...}) = 0
    old_mmap(NULL, 12080, PROT_READ, MAP_PRIVATE, 4, 0) = 0x40184000
    close(4)                                = 0
    open("/lib/libnsl.so.1", O_RDONLY)      = 4
    read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 ;\0\000"..., 1024)
= 1024
    fstat64(4, {st_mode=S_IFREG|0644, st_size=69472, ...}) = 0
    old_mmap(NULL, 80988, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x40187000
    mprotect(0x40198000, 11356, PROT_NONE)  = 0
    old_mmap(0x40198000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4,
0x10000) = 0x40198000
    old_mmap(0x40199000, 7260, PROT_READ|PROT_WRITE,
AP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40199000
    close(4)                                = 0
    brk(0x804b000)                          = 0x804b000
    munmap(0x40184000, 12080)               = 0
    read(3, "", 4096)                       = 0
    close(3)                                = 0
    munmap(0x40014000, 4096)                = 0
    open("/etc/pam.d/other", O_RDONLY)      = 3
    fstat64(3, {st_mode=S_IFREG|0644, st_size=345, ...}) = 0
    old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x40014000
    read(3, "#\n# /etc/pam.d/other - specify t"..., 4096) = 345
    read(3, "", 4096)                       = 0
    close(3)                                = 0
    munmap(0x40014000, 4096)                = 0
    fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 4), ...}) = 0
    old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x40014000
    write(1, "stat=0 ph=8049720\n", 18stat=0 ph=8049720
    )     = 18
    munmap(0x40014000, 4096)                = 0
    _exit(18)                               = ?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~END OF STRACE~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I don't anderstand/know what's wrong...Is my configuration false ?

here my pam's lib & dev versions :

    # dpkg -l | grep pam
    ii  libpam-modules 0.72-35        Pluggable Authentication Modules for PAM
    ii  libpam-runtime 0.72-35        Runtime support for the PAM library
    ii  libpam-smb     1.1.6-1.1woody Pluggable Authentication Module allowing Sam
    ii  libpam0g       0.72-35        Pluggable Authentication Modules library
    ii  libpam0g-dev   0.72-35        Development files for PAM


I am fully free for more tests if needed.

Thanks,

-- 
JGuillaume de Rorthais
GPG/PGP ID : 0x2A47BED0

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V