sssd_krb5_localauth_plugin.c revision 2ca45dfa0144fea08bd360dafded57bc90111e68
8a5e793a0576250da80371e53aa3e7eba15cdb63Sumit Bose Sumit Bose <sbose@redhat.com>
8a5e793a0576250da80371e53aa3e7eba15cdb63Sumit Bose Copyright (C) 2014 Red Hat
8a5e793a0576250da80371e53aa3e7eba15cdb63Sumit Bose This program is free software; you can redistribute it and/or modify
8a5e793a0576250da80371e53aa3e7eba15cdb63Sumit Bose it under the terms of the GNU General Public License as published by
8a5e793a0576250da80371e53aa3e7eba15cdb63Sumit Bose the Free Software Foundation; either version 3 of the License, or
8a5e793a0576250da80371e53aa3e7eba15cdb63Sumit Bose (at your option) any later version.
8a5e793a0576250da80371e53aa3e7eba15cdb63Sumit Bose This program is distributed in the hope that it will be useful,
8a5e793a0576250da80371e53aa3e7eba15cdb63Sumit Bose but WITHOUT ANY WARRANTY; without even the implied warranty of
8a5e793a0576250da80371e53aa3e7eba15cdb63Sumit Bose MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8a5e793a0576250da80371e53aa3e7eba15cdb63Sumit Bose GNU General Public License for more details.
8a5e793a0576250da80371e53aa3e7eba15cdb63Sumit Bose You should have received a copy of the GNU General Public License
8a5e793a0576250da80371e53aa3e7eba15cdb63Sumit Bose along with this program. If not, see <http://www.gnu.org/licenses/>.
6b5044001e4b0a0caf971a2cf5f27674e0d270f4Sumit Boseenum nss_status _nss_sss_getpwnam_r(const char *name, struct passwd *result,
6b5044001e4b0a0caf971a2cf5f27674e0d270f4Sumit Bosestatic krb5_error_code sss_userok(krb5_context context,
6b5044001e4b0a0caf971a2cf5f27674e0d270f4Sumit Bose const char *lname)
6b5044001e4b0a0caf971a2cf5f27674e0d270f4Sumit Bose kerr = krb5_unparse_name(context, aname, &princ_str);
6b5044001e4b0a0caf971a2cf5f27674e0d270f4Sumit Bose nss_status = _nss_sss_getpwnam_r(princ_str, &pwd, buffer, buflen,
6b5044001e4b0a0caf971a2cf5f27674e0d270f4Sumit Bose nss_status = _nss_sss_getpwnam_r(lname, &pwd, buffer, buflen, &nss_errno);
6b5044001e4b0a0caf971a2cf5f27674e0d270f4Sumit Bosestatic krb5_error_code sss_an2ln(krb5_context context,
6b5044001e4b0a0caf971a2cf5f27674e0d270f4Sumit Bose kerr = krb5_unparse_name(context, aname, &princ_str);
6b5044001e4b0a0caf971a2cf5f27674e0d270f4Sumit Bose nss_status = _nss_sss_getpwnam_r(princ_str, &pwd, buffer, buflen,
8a5e793a0576250da80371e53aa3e7eba15cdb63Sumit Boselocalauth_sssd_initvt(krb5_context context, int maj_ver, int min_ver,