Re: SSH Authentication using php
| From: | Robby Russell | Date: | Mon, 16 Aug 2004 18:08:11 +0000 |
| Subject: | Re: SSH Authentication using php | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-193977@lists.php.net to get a copy of this message | ||
Ah, you should try to authenticate differently then. You're going about
this the wrong wa. :-)
> The PEAR::Auth package provides methods for creating an authentication
> system using PHP.
>
> Currently it supports the following storage containers to read/write
> the login data:
>
> * All databases supported by the PEAR database layer
> * All databases supported by the MDB database layer
> * All databases supported by the MDB2 database layer
> * Plaintext files
> * LDAP servers
> * POP3 servers
> * IMAP servers
> * vpopmail accounts
> * RADIUS
> * SAMBA password files
> * SOAP
>
hth,
Robby
On Mon, 2004-08-16 at 10:33, Teren wrote:
> Ok, here's the whole project, I have an openbsd box using authpf which uses
> authentication via ssh login. So, i'm trying to create a weblogin using php
> so people just have to enter their username/password (which would be a
> restricted unix account) to gain access to the internet. I have authpf all
> setup, but I'd like to add a web login to make it more user friendly. Thanks
>
> Teren
>
>
> ----- Original Message -----
> From: "Michal Migurski" <mike@teczno.com>
> To: "Robby Russell" <robby@planetargon.com>
> Cc: "Teren" <tsapp9@chartermi.net>; <php-general@lists.php.net>
> Sent: Monday, August 16, 2004 1:15 PM
> Subject: Re: [PHP] SSH Authentication using php
>
>
> > > > Hi, what my goal is is to be able to authenticate a user by they SSH
> > > > acount on the system using php. I tried looking on google, but didn't
> > > > see anything with ssh. What i've tried to do is use the exec() and
> > > > just do:
> > > >
> > > > exec("ssh user@localhost".escapleshellard("password"));
> > > >
> > >
> > > You can try setting up authorized_keys for this. Then you don't need to
> > > pass it the password.
> >
> > ...but you'd still need to provide the ssh passphrase, or have an instance
> > of ssh-agent running. Teren, what are you trying to do exactly? Is ssh
> > actually necessary, or are you really just trying to authenticate users by
> > their unix accounts?
> >
> > ---------------------------------------------------------------------
> > michal migurski- contact info and pgp key:
> > sf/ca http://mike.teczno.com/contact.html
> >
> >
--
/***************************************
* Robby Russell | Owner.Developer.Geek
* PLANET ARGON | www.planetargon.com
* Portland, OR | robby@planetargon.com
* 503.351.4730 | blog.planetargon.com
* PHP/PostgreSQL Hosting & Development
****************************************/
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc