Article delegate-en/2666 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:<_A2662@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: Problem with PAM authentication
23 Jun 2004 12:23:48 GMT Jehan-Guillaume de Rorthais <p4edabdyi-6cvkctcxsbnr.ml@ml.delegate.org>


Hello,

Selon Yutaka Sato <feedback@delegate.org>:

|  |I re-built delegate because I installed new dev packets of pam...But it
| still
|  |doesn't works.
| 
| What is recorded in logfile of DeleGate now?
| Are you getting "PAM: cannot start" error yet?

Here some useful information. I hope I forgot nothing, feel free to ask me more
actions :

######## from my server console #######

    frpa01proxy:~/delegateTest/Delegate# cc pam.c -lpam

    frpa01proxy:~/delegateTest/Delegate# passwd adminjrr
    Enter new UNIX password: test
    Retype new UNIX password: test
    passwd: password updated successfully

    frpa01proxy:~/delegateTest/Delegate# chown root:delegate a.out

    frpa01proxy:~/delegateTest/Delegate# chmod ug+s a.out
    
    frpa01proxy:~/delegateTest/Delegate# ll a.out
    -rwsr-sr-x    1 root     delegate     6252 jun 23 14:05 a.out

    frpa01proxy:~/delegateTest/Delegate# su - delegate
    No directory, logging in with HOME=/

    delegate@frpa01proxy:/$ cd /root/delegateTest/Delegate/

    delegate@frpa01proxy:/root/delegateTest/Delegate$ ./a.out passwd adminjrr test
    ## pam_authenticate [passwd][adminjrr] = 0

    delegate@frpa01proxy:/root/delegateTest/Delegate$ exit
    logout

    frpa01proxy:~/delegateTest/Delegate# ./proxyAuthorizer start
    Demarrage du proxy pour le port 7978:
    <DeleGate/8.9.2> [17418] -P7978 READY
    DGROOT=/root/delegateTest/Delegate
    ADMIN=JehanGuillaume.deRorthais@omya..
    AIST-Product-ID: 2000-ETL-198715-01, H14PRO-049, H15PRO-165
    Copyright (c) 1994-2000 Yutaka Sato and ETL,AIST,MITI
    Copyright (c) 2001-2004 National Institute of Advanced Industrial Science
and Technology (AIST)

#############################################################################
##########  I try to connect google from my laptop 172.25.73.0/23  ##########
#############################################################################

    frpa01proxy:~/delegateTest/Delegate# cat log/stdout.log
    PAM: cannot start passwd [adminjrr] error=-1
    PAM: cannot start passwd [adminjrr] error=-1
    PAM: cannot start passwd [adminjrr] error=-1

    frpa01proxy:~/delegateTest/Delegate# cat log/errors.log
    frpa01proxy:~/delegateTest/Delegate# cat log/7978.http
    172.25.73.0 - - [23/Jun/2004:14:06:48 +0100] "GET http://www.google.fr/ 
HTTP/1.0" 407 634 0*0.000+0.000:A:0a
    172.25.73.0 - adminjrr [23/Jun/2004:14:06:54 +0100] "GET
http://www.google.fr/ HTTP/1.0" 407 634 0*0.000+0.000:A:0a
    172.25.73.0 - adminjrr [23/Jun/2004:14:06:59 +0100] "GET
http://www.google.fr/ HTTP/1.0" 407 634 0*0.000+0.000:A:0a
    172.25.73.0 - adminjrr [23/Jun/2004:14:07:01 +0100] "GET
http://www.google.fr/ HTTP/1.0" 407 634 0*0.000+0.000:A:0a
    
    frpa01proxy:~/delegateTest/Delegate# cat etc/params/7978
    -P7978
    env[16]
LIBPATH=.;/root/delegateTest/Delegate;/root/delegateTest/Delegate/lib;/usr/local/+delegate8.9.2/src;/root/delegateTest/Delegate/etc
    env[18] RESOLV=cache,file,dns,sys
    arg[3] OWNER=delegate
    arg[4] DGROOT=/root/delegateTest/Delegate 
    arg[5] ADMIN=JehanGuillaume.deRorthais@omya..
    arg[6] SERVER=http
    arg[7] PERMIT=*:*:*
    arg[8] SHARE=
    arg[9] AUTH=proxy:pauth
    arg[10] AUTHORIZER=-pam/passwd

    frpa01proxy:~/delegateTest/Delegate# cat log/7978 | grep dgpam
    06/23 14:06:54.82 [17436] 1+2: ### [0] dgpam 0
    06/23 14:06:54.82 [17436] 1+2: ### [1] /root/delegateTest/Delegate/subin/dgpam 0
    06/23 14:06:54.82 [17436] 1+2: ### [2] /root/delegateTest/Delegate/dgpam 0
    06/23 14:06:54.82 [17436] 1+2: ### [3] /usr/local/+delegate8.9.2/src/dgpam
81c47c8
    06/23 14:06:54.82 [17436] 1+2: ## dgpam = /usr/local/+delegate8.9.2/src/dgpam
    06/23 14:06:54.86 [17436] 1+2: ## dgpam -a passwd adminjrr = HTTP/1..0 403^M
    06/23 14:06:59.19 [17436] 1+3: ## dgpam -a passwd adminjrr = HTTP/1..0 403^M
    06/23 14:07:01.88 [17436] 1+4: ## dgpam -a passwd adminjrr = HTTP/1..0 403^M

    frpa01proxy:~/delegateTest/Delegate# ps axu | grep -- -P7978
    delegate 17418  0.0  0.5  3148 1500 ?        S    14:06   0:00
/usr/local/+delegate8.9.2/src/delegated -{001:004/001}[RPM=1.23(0.0 0.8
0.3),IDLE=150s]-P7978 --

    frpa01proxy:~/delegateTest/Delegate# ll /usr/local/+delegate8.9.2/src/dgpam
    -r-sr-s---    1 root     delegate    71778 jun 15 10:53
/usr/local/+delegate8.9.2/src/dgpam

######## end of my server console ########

Thanks for your patience/time/feedback :)

Cheers,

-- 
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