grouper-users - [grouper-users] RE: [JIRA] (GRP-1474) ldap loader set pool options when using configFileFromClasspath
Subject: Grouper Users - Open Discussion List
List archive
[grouper-users] RE: [JIRA] (GRP-1474) ldap loader set pool options when using configFileFromClasspath
Chronological Thread
- From: "Hyzer, Chris" <>
- To: " Mailing List" <>
- Subject: [grouper-users] RE: [JIRA] (GRP-1474) ldap loader set pool options when using configFileFromClasspath
- Date: Fri, 27 Jan 2017 14:37:16 +0000
- Accept-language: en-US
- Authentication-results: spf=none (sender IP is ) ;
- Ironport-phdr: 9a23:E+R+SBRvH1ftdi4m0gfxj4xY1tpsv+yvbD5Q0YIujvd0So/mwa6zZxyN2/xhgRfzUJnB7Loc0qyN4vymBDNLv8rJmUtBWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYdFRrlKAV6OPn+FJLMgMSrzeCy/IDYbxlViDanb75/KBq7oR/Ru8QUjodvK6k8wQbVr3VVfOhb2XlmLk+JkRbm4cew8p9j8yBOtP8k6sVNT6b0cbkmQLJBFDgpPHw768PttRnYUAuA/WAcXXkMkhpJGAfK8hf3VYrsvyTgt+p93C6aPdDqTb0xRD+v4btnRAPuhSwaMTMy7WPZhdFqjK9DoByvuQFxw5Labo+WOvpxfKLdcs8VS2VORctRSzdODp+gY4cTE+YMP+BVpJT9qVsUqhu+ABGhCO3txD5Ih375w7c63/w8GgzY3AwgBdMOsG/aoN7oM6oSVPy6zKnIzDTCcfxWwyzw6InTch89u/2MQKpwftTXyUkpDQ/KkEifqZH8Mj6Ty+8DvW+b7+96WuKujW4qswBxoj6zxsgykInJgJwaykza+Slj3ok6OMC4RFZlbt+rCpRQsjmaN49oTc84X25ovyM6x7sbspC4ZCgH0IorywLdZvCdfIWF4wjvWPuQLDp2nn5oeLyyiw6v/UWu1uHwTM253EtQoiZbj9XBsmoB2wHR58WGTPZ2412v1iyV1w/J7+FJOUA0mrTfK54m2rM+joYev0PfEiPogUn7kq2Zelg99uiv8OvofK/qppiBN49okQ7+NbkumsqiDugiKggORW+b+fii27L/4U35QbJKjvssnqnerZDaOcAbpqm+Aw9WyIos9xG/DzK+3NQZm3kIMk5FdQqZg4T1OVzCOv/1APalj1ixkTpmyerKM73vD5nVK3jMirbhfbJz605GzwozyMhS55dIBbEBIPPyW1H+tMbDAx84KAy73/zrCMhl1owAX2KPBLWVP73Pvl+V/u4vOfWDZJcJuDbhLPgo//HujWU+mV8AZammw4EXZGmlHvR9PUqZe2Hsj8wFEWcLpQo+UPfqhEOYXT5SYXayQ7wz5is9CI24EYfPWJqhj6Kc0yemTdVqYTUMBUqLDG/lbcCZQPoWcwqTJNNsiDoJSeLnRoM8nTSntQv7zbUvCuvP5mdQ4Z3508Vt6veWiAo/7ydcDsKB3nuLQn0u2G4EWmll8rp4pBk36kaR3LI8y9dYD91IrbsdVww6JIzR1cR7ENu0RxrMeNHPRVq7FIb1SQotR848loddK312HM+v20jO
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
Chad,
Thanks so much for yet another valuable pull request.
Just to clarify. Now the loader ldap connections can set the pooling options
via an external vtldap file right? And anything that uses those connections
(loader, pspng, (eventuall) sources) would benefit from that configuration,
right?
Thanks
Chris
-----Original Message-----
From: Chad Redman (JIRA)
[mailto:]
Sent: Thursday, January 26, 2017 6:29 PM
To: Hyzer, Chris
<>
Subject: [JIRA] (GRP-1474) ldap loader set pool options when using
configFileFromClasspath
Chad Redman created GRP-1474:
--------------------------------
Summary: ldap loader set pool options when using
configFileFromClasspath
Key: GRP-1474
URL: https://bugs.internet2.edu/jira/browse/GRP-1474
Project: Grouper
Issue Type: Improvement
Components: grouperLoader
Reporter: Chad Redman
Assignee: Chris Hyzer
In the grouper-loader.properties file, there are two ways to set up
properties for LDAP sources. The primary way, and the one most documented, is
to define a series of "ldap.<sourceId>.\*" properties that set up the LDAP
config, the pool, and the optional validator function. However, a second way
to configure a source is via the property
"ldap.<sourceId>.configFileFromClasspath". In this method, the properties
defined in the file refered to in configFileFromClasspath are in the format
"edu.vt.middleware.ldap.*", and are parsed directly by vt-ldap functions, and
not by Grouper wrappers. This means that a larger set of the vt-ldap
properties can be set, rather than just the ones Grouper functions are coded
to handle.
However, parameters for pooling defined in the file are ignored. They can
still be set in the grouper-loader.properties as their "ldap.<sourceId>.\*"
versions, the same as for method #1.
I have a pull request that allows the pooling options to be set in the
external file. I can also update the documentation to show how to use the
configFileFromClasspath alternative. This brings the loader config closer in
line to the sources.xml/subject.properties option for an external file via
ldapProperties_file, which could already handle pool settings.
The validator-specific properties that can be set for the source (see
GRP-1428) can't be set in the external file, as vt-ldap has no way to handle
it. These will need to continue to be set in grouper-loader.properties, as
per method #1.
Example:
grouper-loader.properties
{code}
ldap.personLdap.configFileFromClasspath = ldap.personLdap.properties
ldap.personLdap.validator = CompareLdapValidator
ldap.personLdap.validatorCompareDn = ou=groups,dc=example,dc=com
ldap.personLdap.validatorCompareSearchFilterString = (ou=groups)
{code}
ldap.personLdap.properties
{code}
edu.vt.middleware.ldap.ldapUrl = ldap://ldap.example.com
edu.vt.middleware.ldap.bindDn =
cn=grouper.svc,ou=applications,dc=example,dc=com
edu.vt.middleware.ldap.bindCredential = XXXXXXXXXXX
edu.vt.middleware.ldap.pool.minPoolSize = 3
edu.vt.middleware.ldap.pool.maxPoolSize = 5
edu.vt.middleware.ldap.pool.validateOnCheckOut = false
edu.vt.middleware.ldap.pool.validateOnCheckIn = false
edu.vt.middleware.ldap.pool.validatePeriodically = true
edu.vt.middleware.ldap.pool.validateTimerPeriod = 270000
edu.vt.middleware.ldap.searchResultHandlers=edu.vt.middleware.ldap.handler.FqdnSearchResultHandler,edu.internet2.middleware.grouper.ldap.handler.RangeSearchResultHandler
{code}
--
This message was sent by Atlassian JIRA
(v7.2.6#72008)
- [grouper-users] RE: [JIRA] (GRP-1474) ldap loader set pool options when using configFileFromClasspath, Hyzer, Chris, 01/27/2017
- [grouper-users] RE: [JIRA] (GRP-1474) ldap loader set pool options when using configFileFromClasspath, Redman, Chad Eric, 01/27/2017
Archive powered by MHonArc 2.6.19.