<?xml version="1.0" encoding="ISO-8859-1"?>
<!--

    Copyright (C) 2009 eXo Platform SAS.

    This is free software; you can redistribute it and/or modify it
    under the terms of the GNU Lesser General Public License as
    published by the Free Software Foundation; either version 2.1 of
    the License, or (at your option) any later version.

    This software is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this software; if not, write to the Free
    Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
    02110-1301 USA, or see the FSF site: http://www.fsf.org.

-->
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.exoplatform.org/xml/ns/kernel_1_2.xsd http://www.exoplatform.org/xml/ns/kernel_1_2.xsd"
   xmlns="http://www.exoplatform.org/xml/ns/kernel_1_2.xsd">
   <component>
      <key>org.exoplatform.services.ldap.LDAPService</key>
      <type>org.exoplatform.services.ldap.impl.LDAPServiceImpl</type>
      <init-params>
         <object-param>
            <name>ldap.config</name>
            <description>Default ldap config</description>
            <object type="org.exoplatform.services.ldap.impl.LDAPConnectionConfig">

               <!-- for multiple ldap servers, use comma seperated list of host:port (Ex. ldap://127.0.0.1:389,10.0.0.1:389) -->
               <!-- field  name="providerURL"><string>ldap://127.0.0.1:389,10.0.0.1:389</string></field -->

               <!-- field  name="providerURL"><string>ldap://exoua.dnsalias.net:389</string></field -->

               <field name="providerURL">
                  <string>ldap://localhost:389</string>
               </field>

               <field name="rootdn">
                  <string>CN=Manager,DC=exoplatform,DC=org</string>
               </field>

               <field name="password">
                  <string>secret</string>
               </field>

               <field name="version">
                  <string>3</string>
               </field>

               <field name="minConnection">
                  <int>5</int>
               </field>

               <field name="maxConnection">
                  <int>10</int>
               </field>

               <field name="referralMode">
                  <string>follow</string>
               </field>

               <!--
               <field  name="referralMode"><string>ignore</string></field>  
               -->

               <field name="serverName">
                  <string>default</string>
               </field>

               <!--
                  LDAP server names : default, active.directory, open.ldap, netscape.directory, redhat.directory;
               -->


            </object>
         </object-param>
      </init-params>
   </component>
</configuration>

