From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <39b17e26a926e5f512cfa9ac236b8ff3@sdgm.net> From: cross@sdgm.net To: 9fans@cse.psu.edu MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] Patch to secstore to unforce STA authentication. Date: Sun, 28 Sep 2003 17:37:08 -0400 Topicbox-Message-UUID: 5378db24-eacc-11e9-9e20-41e7f4b1d025 My CPU server has two interfaces, with seperate IP stacks. I run secstored listening on both. This works reasonably well, except that when using the `-x' flag to get secstored to listen on the second stack (mounted on /net.alt), it forces STA authentication. This isn't really the behavior I want; I don't need STA authentication there. So, I finally got around to adding a flag to secstored to tell it to disable STA authentication in all cases. Here's the patch; could this please be incorporated onto sources? Thanks. - Dan C. brahma% ape/diff -u /n/sources/plan9/sys/src/cmd/auth/secstore/secstored.c secstored.c --- /n/sources/plan9/sys/src/cmd/auth/secstore/secstored.c Tue Sep 2 13:55:49 2003 +++ secstored.c Sun Sep 28 17:32:17 2003 @@ -319,7 +319,7 @@ void main(int argc, char **argv) { - int afd, dfd, lcfd, forceSTA = 0; + int afd, dfd, lcfd, forceSTA = 0, unforceSTA = 0; char adir[40], ldir[40], *remote; char *serve = "tcp!*!5356", *p, aserve[128], net[128]; char *S = "secstore"; @@ -340,12 +340,18 @@ setnetmtpt(net, sizeof(net), p); forceSTA = 1; // for any non-standard network setting, be paranoid break; + case 'u': + unforceSTA = 1; + break; case 'v': verbose++; break; default: usage(); }ARGEND; + + if(unforceSTA) + forceSTA = 0; if(!verbose) switch(rfork(RFNOTEG|RFPROC|RFFDG)) { brahma%