Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 08-05-2004, 07:34 PM user authentication
troatie's Avatar
Skilled Talker

Posts: 64
Trades: 0
Hi all,

So I have a question about user authentication.

What i'd like is either a login page or something, such that only valid users can access to the site.

Now here's the tricky bit: I want the valid users to not be defined by .htpasswd or anything like that. I want the valid users to be those who can log into the server. And I want to use there logins/passwords for the server.

The reason I'm doing this is so that everytime a new user is added to the server (this is in a research lab), I won't have to update .htpasswd or any other files.

Any help would be appreciated!
__________________

Please login or register to view this content. Registration is FREE
troatie is offline
Reply With Quote
View Public Profile Visit troatie's homepage!
 
 
Register now for full access!
Old 08-05-2004, 09:05 PM
Republikin's Avatar
Defies a Status

Posts: 3,189
Trades: 3
I imagine, and I have never done this, that you could use the system() command in php and just use adduser. At least to add a user. After that I believe that user and pass combinations are stored in a file, I think in /etc/passwrds or something like that. The biggest security risk would be to then have write and read access from the script to the filesystem.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Republikin is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to user authentication
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.34566 seconds with 12 queries