summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2017-08-23 17:06:20 +0200
committerJakub Hrozek <jhrozek@redhat.com>2017-08-28 21:50:33 +0200
commit3f94a979eebd1c9496b49b4e07b7823550dec97e (patch)
tree59347e5639979bebe648818c7fe6b55599312e4b /src
parent6c3841099addb84bf3e9a2f85e96dffae1b94623 (diff)
downloadsssd-3f94a979eebd1c9496b49b4e07b7823550dec97e.tar.gz
sssd-3f94a979eebd1c9496b49b4e07b7823550dec97e.tar.xz
sssd-3f94a979eebd1c9496b49b4e07b7823550dec97e.zip
localauth plugin: change return code of sss_an2ln
It is expected that the an2ln plugin function returns KRB5_LNAME_NOTRANS to indicate that no mapping can be determined and other an2ln methods can be tried. Currently SSSD's localauth plugin returns KRB5_PLUGIN_NO_HANDLE which sould only be used for the userok plugin function. Resolves https://pagure.io/SSSD/sssd/issue/3459 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Fabiano FidĂȘncio <fidencio@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/krb5_plugin/sssd_krb5_localauth_plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/krb5_plugin/sssd_krb5_localauth_plugin.c b/src/krb5_plugin/sssd_krb5_localauth_plugin.c
index 13ab07d13..60567d783 100644
--- a/src/krb5_plugin/sssd_krb5_localauth_plugin.c
+++ b/src/krb5_plugin/sssd_krb5_localauth_plugin.c
@@ -137,7 +137,7 @@ static krb5_error_code sss_an2ln(krb5_context context,
&nss_errno);
if (nss_status != NSS_STATUS_SUCCESS) {
if (nss_status == NSS_STATUS_NOTFOUND) {
- ret = KRB5_PLUGIN_NO_HANDLE;
+ ret = KRB5_LNAME_NOTRANS;
} else {
ret = EIO;
}