Skip to Content.
Sympa Menu

grouper-users - RE: [grouper-users] ldap: null

Subject: Grouper Users - Open Discussion List

List archive

RE: [grouper-users] ldap: null


Chronological Thread 
  • From: Chris Hyzer <>
  • To: Tom Zeller <>, "Klug, Lawrence" <>
  • Cc: "" <>
  • Subject: RE: [grouper-users] ldap: null
  • Date: Tue, 1 May 2012 15:55:06 +0000
  • Accept-language: en-US

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) {
message.append(propertiesFile);
} else {

String principal = props.getProperty("SECURITY_PRINCIPAL");
if (!StringUtils.isBlank(principal)) {
message.append(principal).append("@");
}
message.append(getNeededProperty(props, "PROVIDER_URL"));

}

return message.toString();
}

Thanks,
Chris

-----Original Message-----
From:


[mailto:]
On Behalf Of Tom Zeller
Sent: Tuesday, May 01, 2012 11:36 AM
To: Klug, Lawrence
Cc:

Subject: Re: [grouper-users] ldap: null

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
>
> 310 825-2061
>
> ext 52061
>
>



Archive powered by MHonArc 2.6.16.

Top of Page