Skip to Content.
Sympa Menu

grouper-users - Ldap import data from grouper fail

Subject: Grouper Users - Open Discussion List

List archive

Ldap import data from grouper fail


Chronological Thread 
  • From: "chqh" <>
  • To: "grouper-users" <>
  • Subject: Ldap import data from grouper fail
  • Date: Mon, 6 Aug 2007 22:15:52 +0800

When I use the edu.internet2.middleware.ldappc.ldappc -subject GrouperSystem -groups to import data to ldap from grouper.
But when the program runs in the GroupEntrySynchronizer, then errro happens:
 
tore memberdn : {uid=ylzhang2,ou=People,dc=scut,dc=edu,dc=cn} SUBJECT[[ NAME = allen ][ ID = ylzhang2 ]] Invalid name: list-empty
 
javax.naming.InvalidNameException: Invalid name: list-empty
        at javax.naming.ldap.Rfc2253Parser.doParse(Rfc2253Parser.java:86)
        at javax.naming.ldap.Rfc2253Parser.parseDn(Rfc2253Parser.java:45)
        at javax.naming.ldap.LdapName.parse(LdapName.java:772)
        at javax.naming.ldap.LdapName.<init>(LdapName.java:108)
        at com.sun.jndi.ldap.LdapNameParser.parse(LdapNameParser.java:21)
        at edu.internet2.middleware.ldappc.synchronize.DnAttributeModifier.convertDnString(DnAttributeModifier.java:130)
        at edu.internet2.middleware.ldappc.synchronize.DnAttributeModifier.isEqual(DnAttributeModifier.java:105)
        at edu.internet2.middleware.ldappc.synchronize.AttributeModifier.findIndex(AttributeModifier.java:552)
        at edu.internet2.middleware.ldappc.synchronize.AttributeModifier.removeValue(AttributeModifier.java:522)
        at edu.internet2.middleware.ldappc.synchronize.AttributeModifier.store(AttributeModifier.java:311)
        at edu.internet2.middleware.ldappc.synchronize.GroupEntrySynchronizer.storeGroupData(GroupEntrySynchronizer.java:648)
        at edu.internet2.middleware.ldappc.synchronize.GroupEntrySynchronizer.updateGroupEntry(GroupEntrySynchronizer.java:419)
        at edu.internet2.middleware.ldappc.synchronize.GroupEntrySynchronizer.performInclude(GroupEntrySynchronizer.java:362)
        at edu.internet2.middleware.ldappc.synchronize.GroupSynchronizer.synchronize(GroupSynchronizer.java:163)
        at edu.internet2.middleware.ldappc.GrouperProvisioner.provisionGroups(GrouperProvisioner.java:293)
        at edu.internet2.middleware.ldappc.GrouperProvisioner.provision(GrouperProvisioner.java:153)
        at edu.internet2.middleware.ldappc.LdappcGrouperProvisioner.provisionGroups(LdappcGrouperProvisioner.java:123)
        at edu.internet2.middleware.ldappc.LdappcProvisionControl.run(LdappcProvisionControl.java:78)
        at edu.internet2.middleware.ldappc.Ldappc.main(Ldappc.java:96)
 
almost all the dn found in the grouper follow the error above.
 
My source use jndi source using ldap data.
 
my Ldappc.xml is as follows:
 
<?xml version="1.0" encoding="utf-8"?>
 
<!--
    * This file contains data for testing Ldappc.
    *
    * See ldappcTemplate.xml for documentation regarding how to use these
    * elements.
-->
 
<ldappc>
<grouper>
    <group-queries>
      
        <subordinate-stem-queries>
            <stem-list>                     
                <stem>SCUT</stem>                
                <stem>etc</stem>                   
            </stem-list>
        </subordinate-stem-queries>
         <!--
        <attribute-matching-queries>
            <attribute-list>
                <attribute name="name" value="SCUT:A22" />
            </attribute-list>           
        </attribute-matching-queries>
         -->
    </group-queries>
 
    <groups structure="flat"
            root-dn="ou=testgrouper,dc=scut,dc=edu,dc=cn"
            ldap-object-class="groupOfNames"
            ldap-rdn-attribute="cn" grouper-attribute="name" >
       
        <group-members-dn-list list-object-class="groupOfNames" list-attribute="member" list-empty-value="list-empty"/>        
      </groups>
   
        <memberships>
            <member-groups-list
                list-object-class="eduPerson"
                list-attribute="ou"
                naming-attribute="name" />
        </memberships>
       
</grouper>
 

<source-subject-identifiers>     
       <source-subject-identifier source="scutjdni" subject-attribute="uid" >
        <ldap-search base="ou=People,dc=scut,dc=edu,dc=cn"
                     scope="subtree_scope"
                     filter="(uid={0})" />
    </source-subject-identifier>
   
</source-subject-identifiers>
 
<ldap>
    <context>
        <parameter-list>
            <parameter name="initial_context_factory" value="com.sun.jndi.ldap.LdapCtxFactory" />
            <parameter name="provider_url" value="ldap://xxxxxxx:389" />
            <parameter name="security_authentication" value="simple" />
            <parameter name="security_principal" value="cn=xxxx"/>
            <parameter name="security_credentials" value="xxxxx" />
        </parameter-list>
    </context>
</ldap>
 
</ldappc>
My sources.xml works well in the grouper, both in ui ang grouper shell.
 
 

chqh
2007-08-06



Archive powered by MHonArc 2.6.16.

Top of Page