confdir = AFSDIR_CLIENT_ETC_DIRPATH;
}
+ if (noAuthFlag) {
+ secFlags |= AFSCONF_SECOPTS_NOAUTH;
+ }
+
tdir = afsconf_Open(confdir);
if (!tdir) {
fprintf(stderr,
fprintf(stderr, "%s: can't create client security object", funcName);
return -1;
}
- if (scIndex == RX_SECIDX_NULL) {
+ if (scIndex == RX_SECIDX_NULL && !noAuthFlag) {
fprintf(stderr,
"%s: Could not get afs tokens, running unauthenticated.\n",
funcName);