AnsweredAssumed Answered

CIFS Not works With LDAP

Question asked by daliakamal2005 on Sep 20, 2007
Hi All

As the I Cannot connect to the CIFS when i use the ldap

I know that this topic is discussed a lot in the forum but i didn't find anything useful for me .

ldap-authentication-context.xml

beans>
    <bean name="authenticationDao" class="org.alfresco.repo.security.authentication.DefaultMutableAuthenticationDao" >
        <property name="allowDeleteUser">
            <value>true</value>
        </property>
    </bean>  
  
   <bean id="authenticationComponent" class="org.alfresco.repo.security.authentication.ldap.LDAPAuthenticationComponentImpl">
      <property name="LDAPInitialDirContextFactory">
         <ref bean="ldapInitialDirContextFactory"/>
      </property>
      <property name="userNameFormat">
         <value>%s</value>        
      </property>
   </bean>

<!–   <bean id="passwordEncoder" class="net.sf.acegisecurity.providers.encoding.Md5PasswordEncoder"></bean>–>

    <bean id="ldapInitialDirContextFactory" class="org.alfresco.repo.security.authentication.ldap.LDAPInitialDirContextFactoryImpl">
        <property name="initialDirContextEnvironment">
             <map>
                <entry key="java.naming.factory.initial">
                    <value>com.sun.jndi.ldap.LdapCtxFactory</value>
                </entry>
                <entry key="java.naming.provider.url">
                    <value>ldap://172.18.7.1:389</value>
                </entry>
                <entry key="java.naming.security.authentication">
                    <value>simple</value>    
                </entry>
             </map>
        </property>
    </bean>
</beans>



file-servers-custom.xml

<config evaluator="string-compare" condition="Filesystem Security" replace="true">
       <authenticator type="passthru">
          <Server>172.18.7.1</Server>
      </authenticator>
     </config>



My Ldap is Active Director.

I will be very thankful for any help.

Outcomes