diff options
author | James Peach <jpeach@samba.org> | 2005-08-13 08:49:50 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:00:32 -0500 |
commit | 8def0da1da799c5e9d34f63aef80485c2eda3e86 (patch) | |
tree | ffa9359e8a321bb9cf39fa3d2bd4390ec7c9bd8a /source3/nsswitch | |
parent | baf5fd8336e6bceb05704bc76ecc511cc05be91b (diff) | |
download | samba-8def0da1da799c5e9d34f63aef80485c2eda3e86.tar.gz samba-8def0da1da799c5e9d34f63aef80485c2eda3e86.tar.bz2 samba-8def0da1da799c5e9d34f63aef80485c2eda3e86.zip |
r9301: Allow user-defined list and lookup timeouts on IRIX. Bugzilla bug #2284.
(This used to be commit bb579141d86202ac891a7b777c137cb87effefe3)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r-- | source3/nsswitch/winbind_nss_irix.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/source3/nsswitch/winbind_nss_irix.c b/source3/nsswitch/winbind_nss_irix.c index 26179773a9..73f3b4f33a 100644 --- a/source3/nsswitch/winbind_nss_irix.c +++ b/source3/nsswitch/winbind_nss_irix.c @@ -332,7 +332,22 @@ send_next_request(nsd_file_t *rq, struct winbindd_request *request) NSS_STATUS status; long timeout; - timeout = 1000; + switch (rq->f_index) { + case LOOKUP: + timeout = nsd_attr_fetch_long(rq->f_attrs, + "lookup_timeout", 10, 10 * 1000); + break; + case LIST: + timeout = nsd_attr_fetch_long(rq->f_attrs, + "list_timeout", 10, 10 * 1000); + break; + default: + nsd_logprintf(NSD_LOG_OPER, + "send_next_request (winbind) " + "invalid request type %d\n", rq->f_index); + rq->f_status = NS_BADREQ; + return NSD_NEXT; + } nsd_logprintf(NSD_LOG_MIN, "send_next_request (winbind) %d to = %d\n", rq->f_cmd_data, timeout); |