summaryrefslogtreecommitdiff
path: root/server/responder/pam
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2009-04-28 09:53:56 +0200
committerSimo Sorce <ssorce@redhat.com>2009-04-28 11:56:40 -0400
commit69cfb4d581c6a0c75e5f46aa75518bb292e8f5e9 (patch)
tree7778ddd6b005101838b3aef1da160eddbc83529c /server/responder/pam
parentc4f46b40e2f55abd9ae2296fd68daa88bd60e32f (diff)
downloadsssd-69cfb4d581c6a0c75e5f46aa75518bb292e8f5e9.tar.gz
sssd-69cfb4d581c6a0c75e5f46aa75518bb292e8f5e9.tar.bz2
sssd-69cfb4d581c6a0c75e5f46aa75518bb292e8f5e9.zip
change PAM timeout the match NSS time
Diffstat (limited to 'server/responder/pam')
-rw-r--r--server/responder/pam/pamsrv.h2
-rw-r--r--server/responder/pam/pamsrv_cmd.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/server/responder/pam/pamsrv.h b/server/responder/pam/pamsrv.h
index f33c5dc7..d95df169 100644
--- a/server/responder/pam/pamsrv.h
+++ b/server/responder/pam/pamsrv.h
@@ -6,8 +6,6 @@
#include "sbus/sssd_dbus.h"
#include "responder/common/responder.h"
-#define PAM_DP_TIMEOUT 5000
-
struct pam_auth_req;
typedef void (pam_dp_callback_t)(struct pam_auth_req *preq);
diff --git a/server/responder/pam/pamsrv_cmd.c b/server/responder/pam/pamsrv_cmd.c
index 407d7fb9..4c7bf1f6 100644
--- a/server/responder/pam/pamsrv_cmd.c
+++ b/server/responder/pam/pamsrv_cmd.c
@@ -605,7 +605,7 @@ static void pam_dom_forwarder(struct pam_auth_req *preq)
}
else {
preq->callback = pam_reply;
- ret = pam_dp_send_req(preq, PAM_DP_TIMEOUT);
+ ret = pam_dp_send_req(preq, SSS_CLI_SOCKET_TIMEOUT/2);
DEBUG(4, ("pam_dp_send_req returned %d\n", ret));
}