From d4c5627073865b2c36b8e283b2cdc866c7514086 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 14 Jun 2006 23:39:18 +0000 Subject: r16234: Set the request timeout from the LDAP search. Without this, the initial request time is uninitialised, and this causes havoc later. This also allows us to honour the client's wishes. We should be doing this for all the operations... Andrew Bartlett (This used to be commit c8f5b1c9281072179cd3f3cf282cf376dca24ba0) --- source4/ldap_server/ldap_backend.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source4/ldap_server/ldap_backend.c') diff --git a/source4/ldap_server/ldap_backend.c b/source4/ldap_server/ldap_backend.c index 0c8d9da45b..0dafd0f312 100644 --- a/source4/ldap_server/ldap_backend.c +++ b/source4/ldap_server/ldap_backend.c @@ -247,7 +247,9 @@ static NTSTATUS ldapsrv_SearchRequest(struct ldapsrv_call *call) lreq->async.context = res; lreq->async.callback = ldapsrv_SearchCallback; - lreq->async.timeout = 600; + + /* Copy the timeout from the incoming call */ + ldb_set_timeout(samdb, lreq, req->timelimit); ldb_ret = ldb_request(samdb, lreq); -- cgit