Article delegate-en/2667 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:45:58 GMT Jehan-Guillaume de Rorthais <p4edabdyi-dyd2yvhaq6xr.ml@ml.delegate.org>


Hi Yutaka,

I finally success use the pam authentication ! Everything work fine :)

I don't know if what I did is the best way to correct the problem, but it's
working by add the "-lpam" option in the dgpam compilation lines :

###### Patch ########

--- Makefile    Wed Jun 23 14:31:41 2004
+++ Makefile.old        Wed Jun 23 14:40:56 2004
@@ -35,7 +35,7 @@
 LIBSSL=                $(SSLEAY)/libssl.a $(SSLEAY)/libcrypto.a
 #endif #############

-.c.o:; $(CC) $(CFLAGS) $(HDRDIR) -lpam -c $*.c $(CCOUT)
+.c.o:; $(CC) $(CFLAGS) $(HDRDIR) -c $*.c $(CCOUT)

 COMMANDS = dgpam dgbind dgchroot dgcpnod

@@ -62,7 +62,7 @@
        $(CC) $(CFLAGS) -o $@ dgbind.o $(LIBS) $(NETLIB)

 dgpam: Makefile dgpam.o ../lib/library.a
-       $(CC) $(CFLAGS) -o $@ dgpam.o -lpam $(LIBS) $(NETLIB)
+       $(CC) $(CFLAGS) -o $@ dgpam.o $(LIBS) $(NETLIB)

 files:;                ls -d $(FILES)
 srcfiles:;     @echo $(FILES)

##############################

Now, here my stdout file with 2 authentication with the good passwd (adminjrr &
derortha) and one with a bad passwd (3 try):

    frpa01proxy:~/delegateTest/Delegate# cat log/stdout.log
    ## pam_authenticate [passwd][adminjrr] = 0
    ## pam_authenticate [passwd][adminjrr] = 7
    ## pam_authenticate [passwd][adminjrr] = 7
    ## pam_authenticate [passwd][adminjrr] = 7
    ## pam_authenticate [passwd][derortha] = 0

In fact, I don't realy anderstand everything in this matter, so I let you
consider this information in its real value...

Thanks a lot for your help !! 

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