Article View: news.software.nntp
Article #673more little tidbits to NNTP 1.5.9?
From: Eliot
Date: Wed, 05 Sep 1990 19:32
Date: Wed, 05 Sep 1990 19:32
70 lines
2353 bytes
2353 bytes
I imagine this little change didn't get in before the beta test went
out...
If you want to use authentication, and you have existing logins for
things like UUCP that you might as well reuse, and you don't want to
mess with the login group of those users because we all know how uucp
is funny that way, this little fixit will check the group file. It's
not smart enough to look for multiple lines, but rick will have to
make those changes if he wants that feature ;-)
*** auth.c.ORIG Sat Jul 28 21:30:18 1990
--- auth.c Sat Jul 28 21:47:19 1990
***************
*** 109,119 ****
char *p;
{
static char pass[10];
! char *cp, *namep;
struct passwd *pwd;
struct group *grp;
int i;
int nntpgid;
strncpy(pass,p,8);
pass[8] = 0;
--- 109,121 ----
char *p;
{
static char pass[10];
! char *cp, *namep,**curgrp;
struct passwd *pwd;
struct group *grp;
int i;
int nntpgid;
+ int authfail=0;
+
strncpy(pass,p,8);
pass[8] = 0;
***************
*** 127,134 ****
grp = getgrnam("nntp");
if (grp == NULL || pwd == NULL || namep == NULL
! || strcmp(namep, pwd->pw_passwd)
! || pwd->pw_gid != grp->gr_gid)
{
#ifdef SYSLOG
syslog(LOG_ERR, "AUTHENTICATION ERROR");
--- 129,143 ----
grp = getgrnam("nntp");
if (grp == NULL || pwd == NULL || namep == NULL
! || strcmp(namep, pwd->pw_passwd))
! authfail++;
!
! if ( grp->gr_gid != pwd->pw_gid )
! for (curgrp=grp->gr_mem; *curgrp != NULL; curgrp++)
! if (!strcmp(*curgrp,User))
! break;
!
! if (authfail ||(*curgrp == NULL))
{
#ifdef SYSLOG
syslog(LOG_ERR, "AUTHENTICATION ERROR");
--
Eliot Lear
[lear@turbo.bio.net]
Technical Details
Message-ID:
<Sep.5.12.32.45.1990.27936@turbo.bio.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utstat!helios.physics.utoronto.ca!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!bionet!turbo.bio.net!learShow Full Headers
Complete Article Headers
Message-ID: <Sep.5.12.32.45.1990.27936@turbo.bio.net> Subject: more little tidbits to NNTP 1.5.9? Date: Wed, 05 Sep 1990 19:32:45 +0000 From: lear@turbo.bio.net (Eliot) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utstat!helios.physics.utoronto.ca!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!bionet!turbo.bio.net!lear Newsgroups: news.software.nntp Organization: GenBank Computing Resource for Mol. Biology Lines: 69