pamsrv_dp.c revision f1bc4e8b9daf04a5cb4b9464021bb9e816eed3ea
/*
SSSD
NSS Responder - Data Provider Interfaces
Copyright (C) Simo Sorce <ssorce@redhat.com> 2008
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 <time.h>
#include <talloc.h>
#include <security/pam_modules.h>
#include "responder/common/responder_packet.h"
#include "providers/data_provider.h"
#include "sbus/sbus_client.h"
{
int ret;
int type;
struct pam_auth_req *preq;
DEBUG(0, ("Severe error. A reply callback was called but no reply was"
"received and no timeout occurred\n"));
goto done;
}
switch (type) {
if (!ret) {
DEBUG(0, ("Failed to parse reply.\n"));
goto done;
}
break;
case DBUS_MESSAGE_TYPE_ERROR:
DEBUG(0, ("Reply error.\n"));
break;
default:
DEBUG(0, ("Default... what now?.\n"));
}
done:
}
{
int res;
/* double check dp_ctx has actually been initialized.
* in some pathological cases it may happen that nss starts up before
* dp connection code is actually able to establish a connection.
*/
return EIO;
}
DEBUG(0,("Out of memory?!\n"));
return ENOMEM;
}
if (!ret) {
return EIO;
}
return res;
}