rlm_ldap (ldap): 0 of 3 connections in use
Hi! My server logs some strange things. What could be the problem? The radius server is working Ok Tue Jan 19 11:50:16 2016 : Warning: rlm_ldap (ldap): You probably need to lower "min" Tue Jan 19 11:50:18 2016 : Info: rlm_ldap (ldap): 0 of 3 connections in use. Need more spares Tue Jan 19 11:50:18 2016 : Info: rlm_ldap (ldap): Opening additional connection (83) Tue Jan 19 11:50:20 2016 : Info: rlm_ldap (ldap): 0 of 4 connections in use. Need more spares Tue Jan 19 11:50:20 2016 : Info: rlm_ldap (ldap): Opening additional connection (84) Tue Jan 19 11:50:20 2016 : Warning: rlm_ldap (ldap): You probably need to lower "min" Tue Jan 19 11:50:29 2016 : Info: rlm_ldap (ldap): 0 of 4 connections in use. Need more spares Tue Jan 19 11:50:29 2016 : Info: rlm_ldap (ldap): Opening additional connection (85) Tue Jan 19 11:50:29 2016 : Warning: rlm_ldap (ldap): You probably need to lower "min" Tue Jan 19 11:50:31 2016 : Info: rlm_ldap (ldap): 0 of 4 connections in use. Need more spares Tue Jan 19 11:50:31 2016 : Info: rlm_ldap (ldap): Opening additional connection (86) Tue Jan 19 11:50:42 2016 : Warning: rlm_ldap (ldap): You probably need to lower "min" Tue Jan 19 11:50:44 2016 : Info: rlm_ldap (ldap): 0 of 4 connections in use. Need more spares Tue Jan 19 11:50:44 2016 : Info: rlm_ldap (ldap): Opening additional connection (87) Tue Jan 19 11:51:26 2016 : Warning: rlm_ldap (ldap): You probably need to lower "min" Tue Jan 19 11:51:34 2016 : Info: rlm_ldap (ldap): 0 of 4 connections in use. Need more spares Tue Jan 19 11:51:34 2016 : Info: rlm_ldap (ldap): Opening additional connection (88) My config file: ldap { server = "172.17.0.232 172.17.0.27" identity = "cn=Manager,dc=example,dc=local" password = xxxxxxxxxxx base_dn = "dc=example,dc=local" valuepair_attribute = "radiusAttribute" update { control:Password-With-Header += 'userPassword' } user { base_dn = "${..base_dn}" filter = "(uid=%{%{Stripped-User-Name}:-%{User-Name}})" } group { base_dn = "${..base_dn}" filter = "(objectClass=posixGroup)" membership_attribute = "memberOf" } profile { } client { base_dn = "${..base_dn}" filter = '(objectClass=frClient)' attribute { identifier = 'radiusClientIdentifier' secret = 'radiusClientSecret' } } accounting { reference = "%{tolower:type.%{Acct-Status-Type}}" type { start { update { description := "Online at %S" } } interim-update { update { description := "Last seen at %S" } } stop { update { description := "Offline at %S" } } } } post-auth { update { description := "Authenticated at %S" } } options { chase_referrals = yes rebind = yes timeout = 4 timelimit = 3 net_timeout = 1 idle = 60 probes = 3 interval = 3 ldap_debug = 0x0028 } tls { } pool { start = 15 min = 5 max = ${thread[pool].max_servers} spare = 10 uses = 10 lifetime = 120 idle_timeout = 120 } } Thank you for response.
Hi, version? unless you are running a recent version you will want to look at setting the timeout and lifetime to 0 - ie dont kill them off. (older versions wouldnt then open new connections when needed - thus you have no LDAP to use) otherwise, tweak your values (why only 10 uses before churn?) - you have min 5 and spare 10 and lifetimes....so connections are being closed and then having to be open to meet your requirements. alan
Hi, I like to apologise. Freeradius version: freeradius-3.0.4 OS. CentOS 7 A.L.M.Buxey@lboro.ac.uk je 19.1.2016 ob 13:20 napisal:
Hi,
version? unless you are running a recent version you will want to look at setting the timeout and lifetime to 0 - ie dont kill them off. (older versions wouldnt then open new connections when needed - thus you have no LDAP to use)
otherwise, tweak your values (why only 10 uses before churn?) - you have min 5 and spare 10 and lifetimes....so connections are being closed and then having to be open to meet your requirements.
alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (2)
-
A.L.M.Buxey@lboro.ac.uk -
Marko Mernik