Re: authenticating using system user list
| From: | Henry Ortega | Date: | Thu, 17 Feb 2005 17:12:24 +0000 |
| Subject: | Re: authenticating using system user list | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-38610@lists.php.net to get a copy of this message | ||
I already have the one account in postgres to use the DB.
I just need the authentication part. Sure, I can use table
based authentication, but if I have 100 users and those 100
users already have an email account on this server, I might
as well have them use those system account credentials to
authenticate.
Saves me time to create another 100 username/passwords
for these people and makes it easier for them to remember only
one password.
I'm thinking, maybe as unprivileged user, you can always do
a popen or write a different shell script to *query* the system if
the user/password pair is legit. Maybe /bin/login would do,
but I'm stuck since it doesn't take the password in the command
line... Still playing around.. any help is welcome...
On Thu, 17 Feb 2005 12:00:57 -0500, Bastien Koert <bastien_k@hotmail.com> wrote:
> why not create one account to use the db and use table based authentication?
> Same for email?
>
> bastien
>
> >From: Henry Ortega <juandelacruz@gmail.com>
> >Reply-To: Henry Ortega <juandelacruz@gmail.com>
> >To: php-db@lists.php.net
> >Subject: [PHP-DB] authenticating using system user list
> >Date: Thu, 17 Feb 2005 11:54:17 -0500
> >
> >I have a database program using postgres and having
> >a PHP front end. It requires people to login to gain access.
> >Everyone who needs to login to that database program has
> >a system user account in that machine. (since it's also the
> >email server)
> >
> >What is the best way to authenticate using
> >the system users/passwd? (/etc/shadow ?) I hate to create a a new set
> >of username/password in postgres for each person just
> >to be able to login to this program. And it would really
> >help a lot because they don't have to remember two
> >passwords.
> >
> >Any help will be appreciated. Thanks
> >
> >--
> >PHP Database Mailing List (http://www.php.net/)
> >To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>