Skip to Content.
Sympa Menu

grouper-users - jndi adapter in sources.xml

Subject: Grouper Users - Open Discussion List

List archive

jndi adapter in sources.xml


Chronological Thread 
  • From: THIA Jean-Marie <>
  • To: "" <>
  • Subject: jndi adapter in sources.xml
  • Date: Mon, 3 Sep 2007 18:36:23 +0200
  • Accept-language: fr-FR
  • Acceptlanguage: fr-FR

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.JNDISourceAdapter">
    <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>
                (&amp; (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>
                (&amp; (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>
                (&amp; (|(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
 



Archive powered by MHonArc 2.6.16.

Top of Page