[Webnews] Authentication

Marty Backe marty at lucidway.org
Fri, 28 Feb 2003 22:14:34 -0800


FYI. If you need to authenticate your news server (as I do), use the 
NNTPClient authinfo command. I added this after the connection to the 
server (line 105 of webnews.cgi):

   $nntp->authinfo("username","password");

I hardcoded my username and password in the program, but it should be a 
configuration file, perhaps initially set by values retrieved from the 
user (via a form) if the server reports that authentication is required.