From: Simon Wilkinson Date: Sat, 2 Feb 2013 07:20:14 +0000 (+0000) Subject: auth: Permit NULL fallback in localauth case X-Git-Tag: openafs-stable-1_8_0pre1~1614 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=b3dd9c2f4e753c363ed5e75b50f73c70b4b675ad auth: Permit NULL fallback in localauth case Allow the caller of afsconf_PickClientSecObj to specify both local authentication, and to request fallback to null authentication if local auth isn't available. Change-Id: Ib3b801bfde3f32b4cb9cdc7c08a3d8ab985c080f Reviewed-on: http://gerrit.openafs.org/9022 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/auth/authcon.c b/src/auth/authcon.c index 9148624..54e842d 100644 --- a/src/auth/authcon.c +++ b/src/auth/authcon.c @@ -331,7 +331,8 @@ afsconf_PickClientSecObj(struct afsconf_dir *dir, afsconf_secflags flags, * explicitly requested. Check for this, and bail out if we * get one. Note that this leaks a security object at present */ - if (*scIndex == RX_SECIDX_NULL) { + if (!(flags & AFSCONF_SECOPTS_FALLBACK_NULL) && + *scIndex == RX_SECIDX_NULL) { sc = NULL; code = AFSCONF_NOTFOUND; goto out;