Menu

#37 PAM authentication instead of mysql

open
None
5
2005-03-12
2001-08-03
chris g
No

I am trying to get WebCalendar to authenticate via
PAM. This is due to the fact that I have a Novell
network with Authentication Services. It is a shim
for PAM. All authentication requests get redirected
to NDS to avoid multiple different logins and
passwords.

Any insight would be greatly appreciated.

Chris

Discussion

  • Nobody/Anonymous

    Logged In: NO

    I like this idea for a similar reason.

    WebCalendar is installed on my mailserver. If the login is PAM authenticated, then same login/password as
    email and I can tie the 2 systems together much easier.

    This would be a major boone to the users!

    Dan

     
  • Eric Seigne

    Eric Seigne - 2001-09-01

    Logged In: YES
    user_id=47044

    Yes, you can do it :)

    I > AUTHENTICATE

    here is two hacks:

    1 - email
    * pop

    use or made a little lib that made a telnet on server, port
    110, send user username
    pass password
    and thats all

    * imap
    $mbox = imap_open("{localhost:143}INBOX", "username",
    "password");
    if ($hdr = imap_check($mbox)) {
    echo "Num Messages " . $hdr->Nmsgs;
    }
    else {
    echo "failed";
    }

    2 - ftp
    if(fopen ("ftp://user:password@example.com/", "w"))
    //ok
    else
    // bad login or pass

    II > INTERACTION WITH WEBCAL

    - authenticate via point view in I>
    and

    $req = "select * from webcal_user where cal_login='$login'
    $res = SQL_Exec($conn,$req);
    if($res) {
    // Ok
    }
    else {
    $reqi = "INSERT INTO webcal_user(cal_login) values($login)
    $resi = SQL_Exec($conn,$reqi);
    }

    Is there ok or am i out of subject ???

    Thanks a lot for webcal it's really a very good tool !!

    ric

     
  • Nico Stuurman

    Nico Stuurman - 2002-03-30

    Logged In: YES
    user_id=108966

    I have a little external program that you can feed your PAM
    username/password and that will return true/false. Two of
    my projects (sidb and phplabware here on Sourceforge) use it
    for authentification. It should be easy to hack Wecalendar
    to use the same utility. Be sure to run it under sudo,
    since it is obviously a security risk. You can find it
    under files on the sidb page (http://sf.net/projects/sidb).

     
  • Ray Jones

    Ray Jones - 2005-03-12
    • assigned_to: nobody --> umcesrjones
     

Log in to post a comment.