ipa_auth.c revision 66e4134d8be0eb42c645e9730d46bb2c7f561e81
/*
SSSD
IPA Backend Module -- Authentication
Authors:
Sumit Bose <sbose@redhat.com>
Copyright (C) 2009 Red Hat
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <security/pam_modules.h>
#include "providers/ldap/ldap_common.h"
#include "providers/ldap/sdap_async.h"
#include "providers/krb5/krb5_auth.h"
#include "providers/ipa/ipa_common.h"
struct ipa_auth_ctx {
struct sdap_auth_ctx *sdap_auth_ctx;
void *pvt;
bool password_migration;
int dp_err_type;
int errnum;
char *errstr;
};
{
errstr));
}
struct ipa_auth_handler_state {
struct tevent_context *ev;
int dp_err_type;
int errnum;
char *errstr;
};
int dp_err_type,
int errnum,
const char *errstr);
struct tevent_context *ev,
{
struct ipa_auth_handler_state *state;
struct tevent_req *req;
return NULL;
}
return req;
}
int dp_err_type,
int errnum,
const char *errstr)
{
struct ipa_auth_handler_state);
errstr));
return;
}
int *dp_err_type, int *errnum,
char **errstr)
{
struct ipa_auth_handler_state);
enum tevent_req_state tstate;
return EIO;
}
return EOK;
}
{
struct tevent_req *req;
struct ipa_auth_ctx *ipa_auth_ctx;
struct sdap_id_ctx *sdap_id_ctx;
if (ipa_auth_ctx == NULL) {
}
struct sdap_auth_ctx);
goto fail;
}
struct sdap_id_ctx);
struct krb5_ctx);
/* TODO: test and activate when server side support is available */
ipa_auth_ctx->password_migration = false;
goto fail;
}
return;
fail:
}
{
struct ipa_auth_ctx);
int ret;
goto done;
}
goto done;
}
"starting password migration.\n"));
goto done;
}
return;
}
done:
}
{
struct ipa_auth_ctx);
int ret;
goto done;
}
goto done;
}
"trying Kerberos authentication again.\n"));
goto done;
}
return;
}
done:
}
{
struct ipa_auth_ctx);
int ret;
}
}
}