<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements.  See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License.  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<beans>



  <!-- ************** Ldap Configuration ************** -->
  <bean id="org.apache.jetspeed.security.spi.impl.ldap.LdapBindingConfig"
      class="org.apache.jetspeed.security.spi.impl.ldap.LdapBindingConfig">
      <!-- The LDAP initial context factory. -->
      <constructor-arg index="0"><value>com.sun.jndi.ldap.LdapCtxFactory</value></constructor-arg>
      <!-- The LDAP server name. -->
      <constructor-arg index="1"><value>localhost</value></constructor-arg>
      <!-- The LDAP server port. -->
      <constructor-arg index="2"><value>10389</value></constructor-arg>
      <!-- The LDAP server root context. -->
      <constructor-arg index="3"><value>o=sevenSeas</value></constructor-arg>
      <!-- The LDAP server root dn. -->
      <constructor-arg index="4"><value>uid=admin,ou=system</value></constructor-arg>
      <!-- The LDAP server root password. -->
      <constructor-arg index="5"><value>secret</value></constructor-arg>
      <!-- The roles filter. -->
      <constructor-arg index="6"><value>(objectclass=jetspeed-2-role)</value></constructor-arg>
      <!-- The groups filter. -->
      <constructor-arg index="7"><value>(objectclass=jetspeed-2-group)</value></constructor-arg>
      <!-- The user filter. -->
      <constructor-arg index="8"><value>(objectclass=jetspeed-2-user)</value></constructor-arg>
      <!-- The roleMembershipAttributes. -->
      <constructor-arg index="9"><value>j2-role</value></constructor-arg>
      <!-- The userRoleMembershipAttributes. -->
      <constructor-arg index="10"><value>j2-role</value></constructor-arg>
      <!-- The groupMembershipAttributes. -->
      <constructor-arg index="11"><value>uniqueMember</value></constructor-arg>
      <!-- The userGroupMembershipAttributes. -->
      <constructor-arg index="12"><value>j2-group</value></constructor-arg>
      <!-- The groupMembershipForRoleAttributes. -->
      <constructor-arg index="13"><value>uniqueMember</value></constructor-arg>
      <!-- The roleGroupMembershipForRoleAttributes. -->
      <constructor-arg index="14"><value></value></constructor-arg>      
      <!-- The defaultSearchBase. -->
      <constructor-arg index="15"><value>o=sevenSeas</value></constructor-arg>
      <!-- The roleFilterBase. -->
      <constructor-arg index="16"><value>ou=Roles,ou=rootOrg</value></constructor-arg>
      <!-- The groupFilterBase. -->
      <constructor-arg index="17"><value>ou=Groups,ou=rootOrg</value></constructor-arg>
      <!-- The userFilterBase. -->
      <constructor-arg index="18"><value>ou=People,ou=rootOrg</value></constructor-arg>
      <!-- The roleObjectClasses. -->
      <constructor-arg index="19"><value>top,groupOfUniqueNames,jetspeed-2-role</value></constructor-arg>
      <!-- The groupObjectClasses. -->
      <constructor-arg index="20"><value>top,groupOfUniqueNames,jetspeed-2-group</value></constructor-arg>
      <!-- The userObjectClasses. -->
      <constructor-arg index="21"><value>top,person,organizationalPerson,inetorgperson,jetspeed-2-user</value></constructor-arg>
      <!-- The roleIdAttribute. -->
      <constructor-arg index="22"><value>cn</value></constructor-arg>
      <!-- The groupIdAttribute. -->
      <constructor-arg index="23"><value>cn</value></constructor-arg>
	  	<!-- The userIdAttribute. -->
      <constructor-arg index="24"><value>cn</value></constructor-arg>
      <!-- The UidAttribute. -->
      <constructor-arg index="25"><value>uid</value></constructor-arg>
      <!-- The MemberShipSearchScope. -->
      <constructor-arg index="26"><value>1</value></constructor-arg>
      <!-- The roleUidAttribute. -->
      <constructor-arg index="27"><value>cn</value></constructor-arg>
      <!-- The groupUidAttribute. -->
      <constructor-arg index="28"><value>cn</value></constructor-arg>
	  <!-- The userUidAttribute. -->
      <constructor-arg index="29"><value>uid</value></constructor-arg>
	  <!-- The roleObjectRequiredAttributeClasses. -->
      <constructor-arg index="30"><value>cn,j2-classname,uid,uniquemember</value></constructor-arg>
	  <!-- The groupObjectRequiredAttributeClasses. -->
      <constructor-arg index="31"><value>cn,j2-classname,uid,uniqueMember</value></constructor-arg>
	  <!-- The userAttributes. -->
      <constructor-arg index="32"><value>sn={u},cn={u},uid={u}</value></constructor-arg>
	  <!-- The roleAttributes. -->
      <constructor-arg index="33"><value></value></constructor-arg>
	  <!-- The groupAttributes. -->
      <constructor-arg index="34"><value></value></constructor-arg>
	  <!-- The userPasswordAttribute. -->
      <constructor-arg index="35"><value>userPassword</value></constructor-arg>
	  <!-- The knownAttributes. -->
      <constructor-arg index="36"><value>cn,sn,o,uid,ou,objectClass,userPassword,member,uniqueMember,memberOf,j2-role,j2-group</value></constructor-arg>
  </bean>

</beans>

