Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] ldappc_1_0 help

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] ldappc_1_0 help


Chronological Thread 
  • From: Tom Barton <>
  • To:
  • Subject: Re: [grouper-users] ldappc_1_0 help
  • Date: Wed, 30 May 2007 10:42:50 -0500

Excellent. A couple of amplifications below. -Tom


wrote:
At 5:02 PM -0400 5/25/07,

wrote:
Hello,


While building this package, should I be able to successfully pass all tests, since I do not have grouper quickstart database populated?
Is test script going to populate quickstart database for testing purposes?

Much has to be arranged to support the test suite, not really surprising when you consider that Ldappc is an integration tool, after all. It is documented at <http://middleware.internet2.edu/dir/groups/grouper/ldappc-1.0/javadoc/edu/internet2/middleware/ldappc/documentation/DeploymentGuide.html>, but I'm not convinced that it is worthwhile for most site to bother.

Here are the steps I followed:

1) copy these files from your Grouper install to ldappc/ldappc_1_0/conf

ehcache.xml
grouper.hibernate.properties
grouper.properties
sources.xml

2) edit the ldappc/ldappc_1_0/lib directory
add hsqldb-1.7.2.11.jar (copy it from your grouper deploy)
remove hsqldb.jar

-- this may only be necessary if you're storing your group definitions in hsql, rather than oracle (which I was doing originally....)

Indeed, only necessary if you store data in HSQLDB.

3) edit sources.xml

At the bottom of the file:

///Attributes you would like to display when doing a search
<attribute>uid</attribute>
<attribute>cn</attribute>
<attribute>department</attribute>
<attribute>brownBRUID</attribute>

add an attribute element referring to the key value that links your grouper DB to ldap person objects (in our case, this is brownBRUID )

Note that <attribute> elements are only used by the JNDISourceAdapter. If any are present, only the listed attributes are returned in LDAP queries initiated by JNDISourceAdapter. If none are present, all attributes are returned in the LDAP query. So you can also just remove all <attribute> elements from sources.xml.

4) if you're using Grouper v1.2, then copy grouper.jar to the ldappc/lib directory

5) if you're using oracle, copy the appropriate oracle jar to the lib directory (we're using oracle 10g, and I'm using ojdbc14.jar )

Generally, put the jarfile here that contains the "hibernate.connection.driver_class" declared in your grouper.hibernate.properties file.

6) create ldappc.xml -- NOTE that the references to sources -- the attribute values on the source-subject-identifier element -- are case-sensitive....

7) I use this shell script to run ldappc; Michael Gettes created the script. edit as appropriate... both HOME and CMD....

let me know if these set of notes is complete... than perhaps we can get them on the wiki....

#!/bin/sh

HOME=/home/stc/Downloads/ldappc/ldappc_1_0
APP_HOME=$HOME/build/ldappc

# The user's $CLASSPATH
CP="${APP_HOME}/classes:${APP_HOME}/conf:${HOME}/lib"

for f in ${HOME}/lib/*.jar; do
CP="${CP}:$f"
done

cd $HOME

### changed path to java
CMD="/usr/jdk1.5.0_11/bin/java -classpath ${CP} -Xmx256m edu.internet2.middleware.ldappc.Ldappc -subject GrouperSystem -groups -memberships $*"

echo $CMD
$CMD




Archive powered by MHonArc 2.6.16.

Top of Page