From 43be64a4909653bad09f3dc37c1845d2b2c17303 Mon Sep 17 00:00:00 2001 From: rettenbe Date: Thu, 2 Apr 2009 08:33:53 +0000 Subject: [PATCH] * maximal number of ldap handles can be defined by config file now * number of precreated ldap handles can be defined by config file now git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13577 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/gosa-si-server | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server index ddff0298d..a115ef324 100755 --- a/gosa-si/gosa-si-server +++ b/gosa-si/gosa-si-server @@ -104,7 +104,7 @@ our $no_arp; our $verbose; our $forground; our $cfg_file; -our ($ldap_uri, $ldap_base, $ldap_admin_dn, $ldap_admin_password, $ldap_server_dn, $ldap_version); +our ($ldap_uri, $ldap_base, $ldap_admin_dn, $ldap_admin_password, $ldap_server_dn, $ldap_version, $max_ldap_handle, $precreate_ldap_handle); our ($mysql_username, $mysql_password, $mysql_database, $mysql_host); our $known_modules; our $root_uid; @@ -250,6 +250,8 @@ our $logged_in_user_date_of_expiry = 600; "ldap-admin-dn" => [\$ldap_admin_dn, ""], "ldap-admin-password" => [\$ldap_admin_password, ""], "ldap-version" => [\$ldap_version, 3], + "max-ldap-handle" => [\$max_ldap_handle, 10], + "precreate-ldap-handle" => [\$precreate_ldap_handle, 5], "gosa-unit-tag" => [\$gosa_unit_tag, ""], "max-clients" => [\$max_clients, 10], "wol-password" => [\$wake_on_lan_passwd, ""], @@ -3279,10 +3281,10 @@ daemon_log($server_status_hash->{$server_status}.": $server_revision", 1); $ldap_factory = ResourcePool::Factory::Net::LDAP->new($ldap_uri, version => $ldap_version); $ldap_factory->bind($ldap_admin_dn, password=>$ldap_admin_password); $ldap_pool = ResourcePool->new($ldap_factory, - Max => 10, + Max => $max_ldap_handle, #MaxTry => 1, #SleepOnFail => [0, 0, 1, 1], - PreCreate => 5, + PreCreate => $precreate_ldap_handle, ); -- 2.30.2