This project is read-only.
1
Vote

Always getting a NntpNotAuthorizedException when using Rfc977NntpClientWithExtensions with authentification

description

*** How to reproduce ?
Write a simple console program referencing the library, and whose main method code is :
 
using (Rfc977NntpClientWithExtensions nntpClient = new Rfc977NntpClientWithExtensions())
{
nntpClient.Connect("server", 119, "login", "password");
Console.WriteLine("Connected.");
}
 
Note : Replace "server", "login" and "password" with appropriate credentials.
 
*** What is expected ?
A message "Connected." is output to the console.
 
*** What happens ?
An exception NntpNotAuthorizedException is raised in Rfc977NntpClientWithExtensions.cs:137 (method NntpClientLib.Rfc977NntpClientWithExtensions.AuthenticateUser(string userName, string password))

file attachments

comments

bneau wrote Jan 7, 2012 at 12:21 PM

To fix this issue, apply the following patch (also attached):
--- Rfc977NntpClientWithExtensions.cs mer. mai 9 14:10:56 2007
+++ Rfc977NntpClientWithExtensions.cs sam. janv. 7 13:16:07 2012
@@ -77,7 +77,7 @@
     /// <param name="password">The password.</param>
     public virtual void Connect(string hostName, int port, string userName, string password)
     {
  • Open(hostName, port);
  • base.Connect(hostName, port);
         AuthenticateUser(userName, password);
    
         CheckToSupportedExtensions();

wrote Feb 14, 2013 at 1:45 AM