grouper-users - RE: [grouper-users] jndi adapter in sources.xml
Subject: Grouper Users - Open Discussion List
List archive
- From: THIA Jean-Marie <>
- To: Jim Fox <>, THIA Jean-Marie <>
- Cc: "" <>
- Subject: RE: [grouper-users] jndi adapter in sources.xml
- Date: Tue, 4 Sep 2007 10:25:53 +0200
- Accept-language: fr-FR
- Acceptlanguage: fr-FR
Hello,
Once again sorry for the disturbance, I found my error in the sources.xml
file. The security principal should be :
uid=thia,OU=People,dc=upmc,dc=fr
Off course the People branch in an OU !
Jean Marie
> -----Original Message-----
> From: Jim Fox
> [mailto:]
> Sent: lundi 3 septembre 2007 18:57
> To: THIA Jean-Marie
> Cc:
>
> Subject: Re: [grouper-users] jndi adapter in sources.xml
>
>
> Does your error log show any errors from parsing or using this
> sources file?
>
> You can also test the various sources with the gsh tool. It is
> quicker and doesn't involve all the tomcat overhead. Remember that
> the gsh tool will use sources.xml from your build directories,
> whereas the tomcat application will use the sources.xml from the
> install directory.
>
> Jim
>
> On Sep 3, 2007, at 9:36 AM, THIA Jean-Marie wrote:
>
> > Hi all,
> >
> > I am trying to use the jndi source Adapter to connect to an open
> > Ldap directory. I used the provided sample with customized value,
> > but after restarting the tomcat server I can't see any the adapter
> > on the search subjects screen.
> >
> > Should I add a specific library in order to user the jndi adapter ?
> >
> > Here is the content of the grouper\lib directory
> > antlr.jar
> > commons-discovery-0.4.jar
> > commons-fileupload.jar
> > commons-lang-2.0.jar
> > commons-math-1.1.jar
> > commons-validator.jar
> > ehcache-0.9.jar
> > grouper.jar
> > hibernate2-2.1.8.jar
> > hsqldb-1.7.2.11.jar
> > i2mi-common-0.1.0.jar
> > jakarta-oro.jar
> > jstl.jar
> > jta-1.0.1B.jar
> > jug-1.1.1.jar
> > log4j-1.2.8.jar
> > postgresql-8.2-505.jdbc2.jar
> > postgresql-8.2-505.jdbc2ee.jar
> > postgresql-8.2-505.jdbc3.jar
> > postgresql-8.2-505.jdbc4.jar
> > serializer.jar
> > standard.jar
> > struts-el.jar
> > struts.jar
> > subject-0.3.0-rc1-cvs.jar
> > taglibs-datetime.jar
> > taglibs-request.jar
> > xalan.jar
> > xercesImpl.jar
> > xml-apis.jar
> >
> > Or maybe I made a mistake in the sources file
> >
> > Here is my sources.xml
> > <source
> > adapterClass="edu.internet2.middleware.subject.provider.JNDISourceAdap
> > ter">
> > <id>annUpmc</id>
> > <name>Annuaire upmc</name>
> > <type>person</type>
> > <init-param>
> > <param-name>INITIAL_CONTEXT_FACTORY</param-name>
> > <param-value>com.sun.jndi.ldap.LdapCtxFactory</param-value>
> > </init-param>
> > <init-param>
> > <param-name>PROVIDER_URL</param-name>
> > <param-value>ldap://annuaire.upmc.fr</param-value>
> > </init-param>
> > <init-param>
> > <param-name>SECURITY_AUTHENTICATION</param-name>
> > <param-value>simple</param-value>
> > </init-param>
> > <init-param>
> > <param-name>SECURITY_PRINCIPAL</param-name>
> > <param-value>uid=thia,cn=People,dc=upmc,dc=fr</param-value>
> > </init-param>
> > <init-param>
> > <param-name>SECURITY_CREDENTIALS</param-name>
> > <param-value>password</param-value>
> > </init-param>
> > <init-param>
> > <param-name>SubjectID_AttributeType</param-name>
> > <param-value>uidInterne</param-value>
> > </init-param>
> > <init-param>
> > <param-name>Name_AttributeType</param-name>
> > <param-value>cn</param-value>
> > </init-param>
> > <init-param>
> > <param-name>Description_AttributeType</param-name>
> > <param-value>displayName</param-value>
> > </init-param>
> >
> > /// Scope Values can be: OBJECT_SCOPE, ONELEVEL_SCOPE,
> > SUBTREE_SCOPE
> > /// For filter use
> >
> > <search>
> > <searchType>searchSubject</searchType>
> > <param>
> > <param-name>filter</param-name>
> > <param-value>
> > (& (displayName=%TERM%) (objectclass=etudiant))
> > </param-value>
> > </param>
> > <param>
> > <param-name>scope</param-name>
> > <param-value>
> > SUBTREE_SCOPE
> > </param-value>
> > </param>
> > <param>
> > <param-name>base</param-name>
> > <param-value>
> > ou=people,dc=upmc,dc=fr
> > </param-value>
> > </param>
> >
> > </search>
> > <search>
> > <searchType>searchSubjectByIdentifier</searchType>
> > <param>
> > <param-name>filter</param-name>
> > <param-value>
> > (& (uidInterne=%TERM%) (objectclass=etudiant))
> > </param-value>
> > </param>
> > <param>
> > <param-name>scope</param-name>
> > <param-value>
> > SUBTREE_SCOPE
> > </param-value>
> > </param>
> > <param>
> > <param-name>base</param-name>
> > <param-value>
> > ou=people,dc=upmc,dc=fr
> > </param-value>
> > </param>
> > </search>
> >
> > <search>
> > <searchType>search</searchType>
> > <param>
> > <param-name>filter</param-name>
> > <param-value>
> > (& (|(uidInterne=%TERM%)(cn=*%TERM%*))
> > (objectclass=etudiant))
> > </param-value>
> > </param>
> > <param>
> > <param-name>scope</param-name>
> > <param-value>
> > SUBTREE_SCOPE
> > </param-value>
> > </param>
> > <param>
> > <param-name>base</param-name>
> > <param-value>
> > ou=people,dc=upmc,dc=fr
> > </param-value>
> > </param>
> > </search>
> > ///Attributes you would like to display when doing a search
> > <attribute>displayName</attribute>
> > <attribute>familleDisciplinaire</attribute>
> >
> > </source>
> >
> > Thanks,
> >
> > Jean Marie
> >
> >
- jndi adapter in sources.xml, THIA Jean-Marie, 09/03/2007
- Re: [grouper-users] jndi adapter in sources.xml, Jim Fox, 09/03/2007
- RE: [grouper-users] jndi adapter in sources.xml, THIA Jean-Marie, 09/04/2007
- RE: [grouper-users] jndi adapter in sources.xml, THIA Jean-Marie, 09/04/2007
- Re: [grouper-users] jndi adapter in sources.xml, Jim Fox, 09/03/2007
Archive powered by MHonArc 2.6.16.