Article View: news.software.nntp
Article #83766Re: docheckgroups et al
From: Julien ÉLIE
Date: Mon, 03 Jan 2011 19:19
Date: Mon, 03 Jan 2011 19:19
56 lines
3092 bytes
3092 bytes
Hi Russ,
>> P.-S.: An interesting question would be how to have a username which
>> contains a comma. Impossible to put here I think (because of our parsing
>> expecting a comma-separated list).
>
> Doesn't the parsing use wildmat matching? If so, I think it could just
> use uwildmat() (rather than splitting on comma and using uwildmat_simple()
> if it currently does -- I didn't check), and then \, would do the right
> thing.
I did not check.
Now done, and :-)
First:
CompressList(curaccess->users);
Well, not good for usernames containing a space (this function removes
CR, LF and SP). Allowed by RFC 4643 if an implementation wishes to.
Then:
NGgetlist(&list, cp);
if (PERMmatch(list, user)) {
syslog(L_TRACE, "%s match_user %s %s", Client.host,
PERMuser, access_realms[i]->users);
with PERMmatch using uwildmat() but:
bool
NGgetlist(char ***argvp, char *list)
{
char *p;
for (p = list; *p; p++)
if (*p == ',')
*p = ' ';
return Argify(list, argvp) != 0;
}
I see that these functions are used at other places too for parsing
readers.conf; well, I believe it should be better to change a bit this
behaviour. Yet, I wonder how many people actually use commas or spaces
in usernames (maybe a space would be more frequent).
--
Julien ÉLIE
« – Rendre compte ? Mais nous n'y sommes pas allés et nous n'avons
rien vu ! Et puis Jules César a dit…
– Je ne sais pas ce que Jules César a dit, mais ne pas y aller et
ne pas voir, c'est le meilleur moyen de ne pas être vaincus ! »
(Olibrius)
Technical Details
Message-ID:
<8oelp8FfibU1@mid.individual.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news3.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<ie88v7$hg8$1@n102.xanadu-bbs.net> <ifatoj$1av$1@n102.xanadu-bbs.net> <8nu4a2Fp64U1@mid.individual.net> <ifcqt0$ig8$1@n102.xanadu-bbs.net> <ifrihc$4jg$2@puck.litech.org> <ifs31u$rvp$1@n102.xanadu-bbs.net> <ifsdak$uos$1@n102.xanadu-bbs.net> <8oekiiF73sU1@mid.individual.net> <87pqsdajyz.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <8oelp8FfibU1@mid.individual.net> Subject: Re: docheckgroups et al Date: Mon, 03 Jan 2011 20:19:04 +0100 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <ie88v7$hg8$1@n102.xanadu-bbs.net> <ifatoj$1av$1@n102.xanadu-bbs.net> <8nu4a2Fp64U1@mid.individual.net> <ifcqt0$ig8$1@n102.xanadu-bbs.net> <ifrihc$4jg$2@puck.litech.org> <ifs31u$rvp$1@n102.xanadu-bbs.net> <ifsdak$uos$1@n102.xanadu-bbs.net> <8oekiiF73sU1@mid.individual.net> <87pqsdajyz.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.20141118.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news3.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 56 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net iSyKhXiO21fyJzCObOu7PAAUmdrAoM7xYYcYfZrRh828cEDWY= Cancel-Lock: sha1:g+BJQbr6YGQSyaGOoYOl0ee+22Q= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; fr; In-Reply-To: <87pqsdajyz.fsf@windlord.stanford.edu> X-Original-Bytes: 2882