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: "Klug, Lawrence" <>
  • To: Chris Hyzer <>, Tom Zeller <>
  • Cc: "" <>
  • Subject: RE: [grouper-users] ldap: null
  • Date: Tue, 1 May 2012 16:14:09 +0000
  • Accept-language: en-US

When performing a Subject search, I'm seeing this exception. It looks like a
properties file is not in the classpath. Any comment? BTW, I'm using Maven
to build the package, so something may be out of place.

2012-05-01 09:05:18,803: [http-8080-1] ERROR
GrouperCapableAction.execute(298) - < isistestidsix
B85235A0CF8D7B4D0C719FDECF86778C-0012 099ab48b918640abba8aa0622e967e56
urn:mace:ucla.edu:ppid:person:311b17e1507245cbae6048db8f62628d ldap > -
java.util.MissingResourceException: Can't find resource for bundle
edu.internet2.middleware.grouper.ui.util.ChainedResourceBundle, key
pager.removeFromSubjectSearch
at java.util.ResourceBundle.getObject(ResourceBundle.java:374)
at java.util.ResourceBundle.getString(ResourceBundle.java:334)
at
edu.internet2.middleware.grouper.ui.actions.DoSearchSubjectsAction.grouperExecute(DoSearchSubjectsAction.java:240)
at
edu.internet2.middleware.grouper.ui.actions.GrouperCapableAction$1.callback(GrouperCapableAction.java:217)
at
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3TransactionDAO$1.callback(Hib3TransactionDAO.java:51)
at
edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:523)
at
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3TransactionDAO.transactionCallback(Hib3TransactionDAO.java:41)
at
edu.internet2.middleware.grouper.hibernate.GrouperTransaction.callbackGrouperTransaction(GrouperTransaction.java:72)
at
edu.internet2.middleware.grouper.hibernate.GrouperTransaction.callbackGrouperTransaction(GrouperTransaction.java:91)
at
edu.internet2.middleware.grouper.ui.actions.GrouperCapableAction.grouperTransactionExecute(GrouperCapableAction.java:214)
at
edu.internet2.middleware.grouper.ui.actions.GrouperCapableAction.execute(GrouperCapableAction.java:279)
at

-----Original Message-----
From: Chris Hyzer
[mailto:]

Sent: Tuesday, May 01, 2012 8:55 AM
To: Tom Zeller; Klug, Lawrence
Cc:

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

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