ugen_ClientInit was still trying to use tokens to make an
authenticated connection, even if noAuthFlag was set. Make it so we do
not attempt authenticated connections with noAuthFlag, and suppress
the "Could not get afs tokens" message if noAuthFlag was set.
Change-Id: I1a0afbb8507307f09a3555e6a7ce0c197ddcc6ef
Reviewed-on: http://gerrit.openafs.org/2454
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
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);