Details
-
Bug
-
Resolution: Fixed
-
Minor
-
2.1.1
-
None
Description
Right, just ignore the null.
I changed the source in 2.1.1 to be this which should be more descriptive. If someone sees a problem with it feel free to adjust it or let me know.
FROM:
public void checkConfig() {
}
/**
- @see edu.internet2.middleware.subject.Source#printConfig()
*/
public String printConfig() { String message = "sources.xml ldap source id: " + this.getId() + ": " + propertiesFile; return message; }
TO:
public String printConfig() {
StringBuilder message = new StringBuilder("sources.xml ldap source id: ").append(this.getId()).append(": ");
if (propertiesFile != null)
else {
String principal = props.getProperty("SECURITY_PRINCIPAL");
if (!StringUtils.isBlank(principal))
message.append(getNeededProperty(props, "PROVIDER_URL"));
}
return message.toString();
}
Thanks,
Chris
----Original Message----
From:Tom Zeller
Sent: Tuesday, May 01, 2012 11:36 AM
To: Klug, Lawrence
Cc: grouper-users
Read "null" as "no properties file"
Looking at the source, it means you have configured the
LdapSourceAdapter without a vt-ldap properties file, which is ok if
connection information is specified in sources.xml itself, which is
the default in sources.example.xml.
To configure the LdapSourceAdapter via a vt-ldap properties file, you
would want something like :
<source adapterClass="edu.internet2.middleware.subject.provider.LdapSourceAdapter">
<id>ldap</id>
<name>LdapSourceAdapter</name>
<type>person</type>
<init-param>
<param-name>ldapProperties_file</param-name>
<param-value>ldap.properties</param-value>
</init-param>
On Tue, May 1, 2012 at 10:05 AM, Klug, Lawrence wrote:
> I'm running Grouper 2.1 and I see this line in the console:
>
>
>
> sources.xml ldap source id: ldap: null
>
>
>
> What is the cause of this? How can I fix it?
>
>
>
> Thanks,
>
>
>
> Lawrence Klug
>
> IMS Platform Development
>
>
>