summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorPierre Carrier <pcarrier@redhat.com>2010-09-14 16:43:39 -0700
committerJeremy Allison <jra@samba.org>2010-09-14 16:43:39 -0700
commiteeb24afd78a6448e808aaf96dbd7d5abf51bbd40 (patch)
tree259985fbd4f6a16dd3352c21f312fc56279e0307 /source3/winbindd
parent0b270f014f67b8ff49b70fb41b2cceac121f337e (diff)
downloadsamba-eeb24afd78a6448e808aaf96dbd7d5abf51bbd40.tar.gz
samba-eeb24afd78a6448e808aaf96dbd7d5abf51bbd40.tar.bz2
samba-eeb24afd78a6448e808aaf96dbd7d5abf51bbd40.zip
Allows changing the maximum number of simultaneous clients in winbindd through an smb.conf option.
Signed-off-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c
index 7a9ebb8a82..9c0a1fb921 100644
--- a/source3/winbindd/winbindd.c
+++ b/source3/winbindd/winbindd.c
@@ -908,17 +908,15 @@ static void winbindd_listen_fde_handler(struct tevent_context *ev,
struct winbindd_listen_state *s = talloc_get_type_abort(private_data,
struct winbindd_listen_state);
- while (winbindd_num_clients() >
- WINBINDD_MAX_SIMULTANEOUS_CLIENTS - 1) {
+ while (winbindd_num_clients() > lp_winbind_max_clients() - 1) {
DEBUG(5,("winbindd: Exceeding %d client "
"connections, removing idle "
- "connection.\n",
- WINBINDD_MAX_SIMULTANEOUS_CLIENTS));
+ "connection.\n", lp_winbind_max_clients()));
if (!remove_idle_client()) {
DEBUG(0,("winbindd: Exceeding %d "
"client connections, no idle "
"connection found\n",
- WINBINDD_MAX_SIMULTANEOUS_CLIENTS));
+ lp_winbind_max_clients()));
break;
}
}