Added example resolver.xml that shows how to use JNDI to pull eduPerson attrs from...
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Fri, 18 Apr 2003 15:46:17 +0000 (15:46 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Fri, 18 Apr 2003 15:46:17 +0000 (15:46 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@578 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/conf/resolver.ldap.xml [new file with mode: 0644]

diff --git a/src/conf/resolver.ldap.xml b/src/conf/resolver.ldap.xml
new file mode 100644 (file)
index 0000000..93334e6
--- /dev/null
@@ -0,0 +1,29 @@
+<AttributeResolver xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:mace:shibboleth:resolver:1.0" xsi:schemaLocation="urn:mace:shibboleth:resolver:1.0 shibboleth-resolver-1.0.xsd">
+       
+       <SimpleAttributeDefinition id="urn:mace:eduPerson:1.0:eduPersonPrincipalName" smartScope="shibdev.edu">
+               <DataConnectorDependency requires="directory"/>
+       </SimpleAttributeDefinition>
+       
+       <SimpleAttributeDefinition id="urn:mace:eduPerson:1.0:eduPersonEntitlement">
+               <DataConnectorDependency requires="directory"/>
+       </SimpleAttributeDefinition>
+       
+       <SimpleAttributeDefinition id="urn:mace:eduPerson:1.0:eduPersonAffiliation">
+               <DataConnectorDependency requires="directory"/>
+       </SimpleAttributeDefinition>
+       
+       <SimpleAttributeDefinition id="urn:mace:eduPerson:1.0:eduPersonScopedAffiliation" smartScope="shibdev.edu">
+               <AttributeDependency requires="urn:mace:eduPerson:1.0:eduPersonAffiliation"/>
+       </SimpleAttributeDefinition>
+
+       <JNDIDirectoryDataConnector id="directory">
+               <Search filter="cn=%PRINCIPAL%">
+                       <Controls searchScope="SUBTREE_SCOPE" returningObjects="false" />
+               </Search>
+               <Property name="java.naming.factory.initial" value="com.sun.jndi.ldap.LdapCtxFactory" />
+               <Property name="java.naming.provider.url" value="ldap://ldap.example.edu/dc=example,dc=edu" />
+               <Property name="java.naming.security.principal" value="cn=admin,dc=example,dc=edu" />
+               <Property name="java.naming.security.credentials" value="examplepw" />
+       </JNDIDirectoryDataConnector>
+
+</AttributeResolver>
\ No newline at end of file