/*
SSSD
Kerberos 5 Backend Module - access control
Authors:
Sumit Bose <sbose@redhat.com>
Copyright (C) 2010 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 "providers/krb5/krb5_auth.h"
#include "providers/krb5/krb5_common.h"
#include "providers/krb5/krb5_utils.h"
struct krb5_access_state {
bool access_allowed;
};
struct tevent_context *ev,
{
int ret;
const char **attrs;
return NULL;
}
state->access_allowed = false;
goto done;
}
goto done;
}
goto done;
}
goto done;
}
&res);
if (ret) {
goto done;
}
case 0:
goto done;
break;
case 1:
goto done;
}
0);
goto done;
}
0);
goto done;
}
break;
default:
goto done;
break;
}
goto done;
}
return req;
done:
} else {
}
return req;
}
{
struct krb5_access_state);
int ret;
goto fail;
}
goto fail;
}
if (msg_status == EOK) {
state->access_allowed = true;
} else {
state->access_allowed = false;
}
return;
fail:
return;
}
{
struct krb5_access_state);
return EOK;
}