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

[DeleGate-En] Re: Problem with PAM authentication
24 Jun 2004 12:04:14 GMT Jehan-Guillaume de Rorthais <p4edabdyi-dyd2yvaaa6xr.ml@ml.delegate.org>


Hello,

Thanks to your explainations, I think I know what was my problem...

Selon Yutaka Sato <feedback@delegate.org>:

| At last I understand why you got "PAM: cannot start".  It was just
| because a PAM module is not built-into your DeleGate and dgpam ;)

In fact, I had just changed the subin/Makefile file, not the main Makefile, so I
didn't rebuild DeleGate, but just dgpam...Anyway :)

| So the question now is why it was not built-in.  The availability of -lpam
| is automatically detected and set into "NETLIB" variable as NETLIB=-lpam,
| thus you don't need explicitly specify so.  At the very beginning of make,
| it will be detected as follows:
...
|         - checking availability of -lpam [-lnsl]
|         cpyfile DELEGATE_CONF[1-0][0-0] > _make
|         [SET] NETLIB=-lnsl -lpam
|         ^^^^^^^^^^^^^^^^^^^^^^^^
| If you don't get message like this, it is the problem.  There was a
| bug in maker/mkmake.c to detect library availability before DeleGate/8.9.3.
| But your version seem 8.9.3 in which the bug is fixed.

Ok, please excuse my mistake, but I tried the pam authentication since the
delegate-8.9.2 and I have never changed for new version :/ But, there is no
point with my issue :)

Here the real problem I think :

############ server's console #################

    frpa01proxy:/usr/local/tarbals/delegate8.9.5# apt-get remove libpam0g-dev
    Reading Package Lists... Done
    Building Dependency Tree... Done
    The following packages will be REMOVED:
      libpam0g-dev
    0 packages upgraded, 0 newly installed, 1 to remove and 0  not upgraded.
    Need to get 0B of archives. After unpacking 394kB will be freed.
    Do you want to continue? [Y/n]
    (Lecture de la base de données... 28559 fichiers et répertoires déjà
    installés.)
    Suppression de libpam0g-dev ...

    frpa01proxy:/usr/local/tarbals/delegate8.9.5# make
...
        - checking availability of -lpam [-lnsl]
        cpyfile DELEGATE_CONF[1-0][0-0] > _make
        *** -mkmake exit(-1)
        [SET] NETLIB=-lnsl
        ^^^^^^^^^^^^^^^^^^
...
        Enter your E-mail address [root@frpa01proxy]: make[2]: *** wait: Aucun
        processus enfant. Arrêt.
        make[2]: *** Attente des tâches non terminées....
        make[2]: *** wait: Aucun processus enfant. Arrêt.
        make[1]: *** wait: Aucun processus enfant. Arrêt.
        make[1]: *** Attente des tâches non terminées....
        make[1]: *** wait: Aucun processus enfant. Arrêt.
        make: *** wait: Aucun processus enfant. Arrêt.
        make: *** Attente des tâches non terminées....
        make: *** wait: Aucun processus enfant. Arrêt.

    frpa01proxy:/usr/local/tarbals/delegate8.9.5# apt-get install libpam0g-dev
    Reading Package Lists... Done
    Building Dependency Tree... Done
    The following NEW packages will be installed:
      libpam0g-dev
    0 packages upgraded, 1 newly installed, 0 to remove and 0  not upgraded.
    Need to get 151kB of archives. After unpacking 394kB will be used.
    Get:1 http://debian.ens-cachan.fr stable/main libpam0g-dev 0.72-35 [151kB]
    Fetched 151kB in 1s (144kB/s)
    Sélection du paquet libpam0g-dev précédemment désélectionné..
    (Lecture de la base de données... 28503 fichiers et répertoires déjà
    installés.)
    Dépaquetage de libpam0g-dev (à partir de .../libpam0g-dev_0.72-35_i386.deb)
    ...
    Paramétrage de libpam0g-dev (0.72-35) ...

    frpa01proxy:/usr/local/tarbals/delegate8.9.5# make

    ####### -makeat: /usr/local/tarbals/delegate8.9.5/src
    make[1]: Entering directory `/usr/local/tarbals/delegate8.9.5/src'
    "/usr/local/tarbals/delegate8.9.5/mkmake.exe" -makeit "make" -f Makefile.tst
    check_conf SHELL="/bin/sh"
    make[2]: Entering directory `/usr/local/tarbals/delegate8.9.5/src'
    /usr/local/tarbals/delegate8.9.5/mkmake.exe +r -ckconf Makefile.chk
    Makefile.tst DELEGATE_CONF "ar" "undef" ""
        ckconf:
        ADMIN = 'undef'
        get ADMIN value interactively ...
    WARNING 
       You should have defined ADMIN as:
         ADMIN = mail-address-of-the-DeleGate-administrator
       either in DELEGATE_CONF or in the Makefile.
    
    Enter your E-mail address [root@frpa01proxy]: make: *** [all] Interruption

    frpa01proxy:/usr/local/tarbals/delegate8.9.5# make[2]: *** wait: Aucun
    processus enfant. Arrêt.
    make[2]: *** Attente des tâches non terminées....
    make[2]: *** wait: Aucun processus enfant. Arrêt.
    make[1]: *** [Makefile.chk] Interruption

    frpa01proxy:/usr/local/tarbals/delegate8.9.5# rm -f mkmake.exe mkmkmk..exe
    frpa01proxy:/usr/local/tarbals/delegate8.9.5# make
        - checking availability of -lpam [-lnsl]
        cpyfile DELEGATE_CONF[1-0][0-0] > _make
        [SET] NETLIB=-lnsl -lpam
        ^^^^^^^^^^^^^^^^^^^^^^^^^
################## end of server's console ####################################

As you see, in a first step I removed my pam dev library. If I launch the make
it doesn't find -lpam, normal.
But, in the second step, I re-installed them and re-launch the make which didn't
check again the avability of the lib...
In the final step, because I didn't find a clean option in the makefile, I
removed the mkmake.exe and mkmkmk.exe by hand to force the lib detection and It
works !

So, the real problem was that I didn't have the dev library installed when I
make delegate-8.9.2 the first time...Afterwhat I read the mailing list and
installed my dev library but the makefile didn't take care of them anymore...

I hope I was clear enough.

Thanks a lot,

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