Thanks jlevie.
I had actually been authenticating against a mySQL database. I no longer need the mySQL database in the CGI script as I will now be using a daemon to do the work. I could use FTP or POP but was hoping for something with a little less overhead as I do it on each CGI call. Do you think FTP is faster than POP for authentication?
Can you confirm that there is absolutely no way to do this with a Linux API.
If I don't find an efficient solution I will pass the ID/Password down the pipe to the daemon to validate against the shadow file but I worry about passing this sort of thing down a named pipe in that someone might spoof a pipe on me and capture IDs and passwords. I suppose I can carefully control the access so that everyone can write but only root can read the pipe.
Main Topics
Browse All Topics





by: jleviePosted on 2004-03-04 at 09:38:20ID: 10515968
There are several ways to do this without access to the shadow file. One common way, if the server is running a POP or IMAP server is to attempt to authenticate to POP or IMAP. The same sort of thing can be done against an FTP or other server.