Article View: news.software.nntp
Article #50863Re: hacking inn with kerberos hooks
From: Russ Allbery
Date: Mon, 26 Feb 2001 22:29
Date: Mon, 26 Feb 2001 22:29
33 lines
2132 bytes
2132 bytes
Russell Virgilio <russ@gatech.edu> writes:
> I need to add some kerberos hooks to inn 2.3.1 I have inserted them
> into ckpasswd.c, and am using a return value of 0 for success, and
> anything else for failure. I know my kerberos api is working, but I
> want to be sure there is nothing else I am missing in INN's process to
> validate user/pass. When innd calls ckpasswd does it pass in the
> user/pass?
Yes.
> I am using the existing ckpasswd routines to parse user/pass, is this
> safe?
Probably. Note that weirdness in the NNTP protocol means that this
probably won't work right for passwords containing spaces.
> Does Innd base it's authentication on the return value of ckpasswd?
In part; ckpasswd has to exit 0 and return a User:<user> string on stdout.
> here is my news.err file
If you add news.debug to your syslog.conf and send it to a good place, I
believe that you'll get more output about what the authentication stuff is
doing.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<yln1b93wo1.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mailReferences:
<3A9AD3EC.BF47214F@gatech.edu>Show Full Headers
Complete Article Headers
Message-ID: <yln1b93wo1.fsf@windlord.stanford.edu> Subject: Re: hacking inn with kerberos hooks Date: Mon, 26 Feb 2001 22:29:50 +0000 From: Russ Allbery <rra@stanford.edu> References: <3A9AD3EC.BF47214F@gatech.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 32 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 983226590 19702 171.64.13.23 (26 Feb 2001 22:29:50 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)