History log of /sssd/src/krb5_plugin/sssd_krb5_localauth_plugin.c
Revision Date Author Comments Expand
2ca45dfa0144fea08bd360dafded57bc90111e68 06-Jul-2016 Sumit Bose <sbose@redhat.com>

localauth: make plugin non-authoritative on failures According to the documentation in localauth_plugin.h "aname will be considered authorized if at least one module returns 0 and all other modules return KRB5_PLUGIN_NO_HANDLE." So it is safe to always return KRB5_PLUGIN_NO_HANDLE because a different plugin has to return 0 to allow access to the given principal. Resolves https://fedorahosted.org/sssd/ticket/2788 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

cc98e19b424861c2a7fd91e0d657d82c1dbf3059 26-May-2015 Pavel Reichl <preichl@redhat.com>

localauth plugin: fix coverity warning Error: FORWARD_NULL (CWE-476): [#def1] sssd-1.12.90/src/krb5_plugin/sssd_krb5_localauth_plugin.c:111: assign_zero: Assigning: "pwd.pw_name" = "NULL". sssd-1.12.90/src/krb5_plugin/sssd_krb5_localauth_plugin.c:142: var_deref_model: Passing null pointer "pwd.pw_name" to "strdup", which dereferences it. 140| } 141| 142|-> str = strdup(pwd.pw_name); 143| if (str == NULL) { 144| ret = ENOMEM; Reviewed-by: Pavel Březina <pbrezina@redhat.com>

6b5044001e4b0a0caf971a2cf5f27674e0d270f4 02-Sep-2014 Sumit Bose <sbose@redhat.com>

Implement MIT Kerberos localauth plugin The MIT Kerberos localauth pluing interface defines two different calls. The first checks if a given Kerberos principal relates to a given name of a local user (userok). The implementation lets SSSD resolve the principal and the user name and if the returned user entries both have the same UID success is returned. The second translates a given Kerberos principal to a local user name (a2l). Here SSSD is only called once to resolve the principal and the user name is returned. Resolves https://fedorahosted.org/sssd/ticket/1835 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

8a5e793a0576250da80371e53aa3e7eba15cdb63 02-Sep-2014 Sumit Bose <sbose@redhat.com>

Add conditional build for MIT Kerberos localauth plugin This patch adds everything what is needed to build the MIT Kerberos localauth plugin if the used version of MIT Kerberos supports it. It does not implement the plugin. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>