/*
SSSD
Data Provider, auth utils
Copyright (C) Sumit Bose <sbose@redhat.com> 2009
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 "data_provider.h"
{
const char *service;
const char *tty;
const char *ruser;
const char *rhost;
int authtok_length;
int new_authtok_length;
return db_ret;
}
{
int ret;
int authtok_length;
int new_authtok_length;
if (!db_ret) {
return false;
}
return false;
}
if (ret) {
return false;
}
if (ret) {
return false;
}
return true;
}
{
/* Append the PAM status */
if (!dbret) {
return false;
}
/* Append the lockout of account */
&pd->account_locked);
if (!dbret) {
return false;
}
/* Create an array of response structures */
DBUS_TYPE_ARRAY, "(uay)",
&array_iter);
if (!dbret) {
return false;
}
/* Create a DBUS struct */
&struct_iter);
if (!dbret) {
return false;
}
/* Add the response type */
&resp_type);
if (!dbret) {
return false;
}
/* Add the response message */
DBUS_TYPE_ARRAY, "y",
&data_iter);
if (!dbret) {
return false;
}
if (!dbret) {
return false;
}
if (!dbret) {
return false;
}
if (!dbret) {
return false;
}
}
/* Close the struct array */
if (!dbret) {
return false;
}
return true;
}
{
int type;
int len;
return false;
}
return false;
}
if (!dbus_message_iter_next(&iter)) {
return false;
}
return false;
}
if (!dbus_message_iter_next(&iter)) {
return false;
}
/* After this point will be an array of pam data */
return false;
}
return false;
}
/* Read in a pam data struct */
return false;
}
/* PAM data struct contains a type and a byte-array of data */
/* Get the pam data type */
return false;
}
if (!dbus_message_iter_next(&struct_iter)) {
return false;
}
/* Get the byte array */
return false;
}
return false;
}
}
return true;
}