🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #69142

Re: Problems with MySQL auth and inn 2.4.1

#69142
From: Sebastian Damm
Date: Mon, 17 May 2004 12:04
41 lines
2673 bytes
Russ Allbery schrieb:
> A standalone program has to tell nnrpd what the username is.  If it
> doesn't print a username, authentication will fail.

OK, then I misinterpreted the external-auth documentation:

<cite src="doc/external-auth">
Returning information to nnrpd

  Exit status and signals

    The external auth program must exit with a status of 0 to indicate
    success; any other exit status indicates failure.  (The non-zero exit
    value will be logged.)

    If the program dies due to catching a signal (for example, a
    segmentation fault occurs), this will be logged and treated as a
    failure.

  Returning a username and domain

    If the program succeeds, it may return a username string (optionally
    with a domain appended) by writing to standard output.  The line it
    should write is exactly:

        user:username\r

    where *username* is the string that nnrpd should use in matching
    readers.conf access blocks.
</cite>

I thought "may" leaves it up to the authenticator to do it or not.

But I just tested my own standalone program as it was only by substituting
\r with \n in the line where it gives something back to nnrpd. And it
worked. How I love these errors. ;)

Sebastian
-- 
Sebastian Damm ........................................ slim.post@gmx.de
                                            http://www.hsg-basketball.de
Technical Details
Message-ID: <slrncahai1.tom.slim.post@gibsmir.csn.tu-chemnitz.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news.tu-chemnitz.de!not-for-mail
References: <slrnca6kst.la6.slim.post@gibsmir.csn.tu-chemnitz.de> <c83e5l$n43$1@puck.litech.org> <slrncagnhs.tom.slim.post@gibsmir.csn.tu-chemnitz.de> <8765avlf1v.fsf@windlord.stanford.edu> <slrncah106.tom.slim.post@gibsmir.csn.tu-chemnitz.de> <877jvbieyi.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <slrncahai1.tom.slim.post@gibsmir.csn.tu-chemnitz.de>
Subject: Re: Problems with MySQL auth and inn 2.4.1
Date: Mon, 17 May 2004 12:04:17 +0000
From: Sebastian Damm <slim.post@gmx.de>
References: <slrnca6kst.la6.slim.post@gibsmir.csn.tu-chemnitz.de> <c83e5l$n43$1@puck.litech.org> <slrncagnhs.tom.slim.post@gibsmir.csn.tu-chemnitz.de> <8765avlf1v.fsf@windlord.stanford.edu> <slrncah106.tom.slim.post@gibsmir.csn.tu-chemnitz.de> <877jvbieyi.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.20140818.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news.tu-chemnitz.de!not-for-mail
Newsgroups: news.software.nntp
Organization: Chemnitz University of Technology
Lines: 41
NNTP-Posting-Host: gibsmir.csn.tu-chemnitz.de
X-Trace: anderson.hrz.tu-chemnitz.de 1084795457 32448 134.109.96.139 (17 May
X-Complaints-To: abuse@tu-chemnitz.de
NNTP-Posting-Date: Mon, 17 May 2004 12:04:17 +0000 (UTC)
User-Agent: slrn/0.9.8.0 (Linux)