mirror of
https://git.openafs.org/openafs.git
synced 2025-01-20 07:51:00 +00:00
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 <buildbot@rampaginggeek.com> Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
This commit is contained in:
parent
9dc6dd9858
commit
b3dd9c2f4e
@ -331,7 +331,8 @@ afsconf_PickClientSecObj(struct afsconf_dir *dir, afsconf_secflags flags,
|
|||||||
* explicitly requested. Check for this, and bail out if we
|
* explicitly requested. Check for this, and bail out if we
|
||||||
* get one. Note that this leaks a security object at present
|
* 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;
|
sc = NULL;
|
||||||
code = AFSCONF_NOTFOUND;
|
code = AFSCONF_NOTFOUND;
|
||||||
goto out;
|
goto out;
|
||||||
|
Loading…
Reference in New Issue
Block a user