Re: Custom message for authentication

Julien ÉLIE <[email protected]> Wed, 27 Oct 2021 23:37:13 +0200
Newsgroups gmane.network.inn
Message-ID <[email protected]>
Hi ejs,

> we are running INN with Perl filter for authentication. We do not
> require the authentification for the 'trusted' hosts, e.g. the ones, can
> be tracked to a trusted local ISP.
> 
> For now, if a username/password is not set by a client, the server
> resonds with 480 response, and it seems the response is not comming from
> the Perl auth filter.
> 
> Is there any way to customize this response, the way 480 response can be
> customized by the return values?

The Perl authentication hook is called only when the client tries to 
authenticate (sending an AUTHINFO command) and the Python dynamic hook 
when the client tries to enter a group (sending a GROUP command).

Unfortunately, the responses you see for other commands are hard-coded. 
  For instance "480 IHAVE command disabled by administrator", "480 
Posting not allowed", "480 Read access denied"...

Maybe you could add something in "motd.nnrpd" but not many newsreaders 
know how to display that message of the day...

-- 
Julien ÉLIE

« Ta remise sur pied lui a fait perdre la tête ! » (Astérix)
_______________________________________________
inn-workers mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/inn-workers