git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@644
959494ce-11ee-0310-bf91-
de5d638817bd
authorized = 1;
if(authorized)
{
authorized = 1;
if(authorized)
{
- flog(LOG_INFO, "krb5 principal %s successfully authorized as %s", data->cname, data->username);
+ flog(LOG_INFO, "krb5 principal %s successfully authorized as %s%s", data->cname, data->username, (data->creds == NULL)?"":" (with fwd creds)");
return(AUTH_SUCCESS);
} else {
flog(LOG_INFO, "krb5 principal %s not authorized as %s", data->cname, data->username);
return(AUTH_SUCCESS);
} else {
flog(LOG_INFO, "krb5 principal %s not authorized as %s", data->cname, data->username);
krb5_free_tgt_creds(k5context, fwdcreds);
return(AUTH_ERR);
}
krb5_free_tgt_creds(k5context, fwdcreds);
return(AUTH_ERR);
}
- flog(LOG_INFO, "received forwarded credentials for %s", data->username);
/* Copy only the first credential. (Change this if it becomes a problem) */
ret = krb5_copy_creds(k5context, *fwdcreds, &data->creds);
krb5_free_tgt_creds(k5context, fwdcreds);
/* Copy only the first credential. (Change this if it becomes a problem) */
ret = krb5_copy_creds(k5context, *fwdcreds, &data->creds);
krb5_free_tgt_creds(k5context, fwdcreds);