Page 1 of 1

Ldap Not communicating

PostPosted:Thu Apr 18, 2013 1:05 pm
by Asifsalam96
I have done all the configurations for ldap,but i cant login with ldap credentials.where can i find log ??

openkm.xml----
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns:beans="http://www.springframework.org/schema/beans"
             xmlns:security="http://www.springframework.org/schema/security"
             xmlns:task="http://www.springframework.org/schema/task"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://www.springframework.org/schema/beans
                                 http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
                                 http://www.springframework.org/schema/security
                                 http://www.springframework.org/schema/security/spring-security-3.1.xsd
                                 http://www.springframework.org/schema/task
                                 http://www.springframework.org/schema/task/spring-task-3.1.xsd">

  <!-- Tasks configuration -->
  <!--
  <task:scheduler id="taskScheduler" pool-size="1"/>
  <task:scheduled-tasks scheduler="taskScheduler">
    <task:scheduled ref="textExtractorWorker" method="work" fixed-delay="60000"/>
  </task:scheduled-tasks>
  <beans:bean id="textExtractorWorker" class="com.openkm.extractor.TextExtractorWorker" />
  -->
  
  <!-- Security configuration -->

<security:ldap-server id="ldapServer"
    url="ldap://192.168.0.21:389/DC=ldap,dc=INTDEVCCS,dc=IN"
    manager-dn="CN=asif.salam,cn=users,dc=INTDEVCCS,dc=IN"
    manager-password="ccs#1234"/>
 
  <security:authentication-manager alias="authenticationManager">
    <security:ldap-authentication-provider
      server-ref="ldapServer"
      user-search-base="cn=Users"
      user-search-filter="(sAMAccountName={0})"
      group-search-base="cn=Users"
      group-search-filter="(member={0})"
      group-role-attribute="cn"
      role-prefix="none">
    </security:ldap-authentication-provider>
  </security:authentication-manager>

<security:authentication-manager alias="authenticationManager">
    <security:authentication-provider>
      <security:password-encoder hash="md5"/>
      <security:jdbc-user-service 
        data-source-ref="dataSource"
        users-by-username-query="select usr_id, usr_password, 1 from OKM_USER where usr_id=? and usr_active='T'"
        authorities-by-username-query="select ur_user, ur_role from OKM_USER_ROLE where ur_user=?"/>
    </security:authentication-provider>
  </security:authentication-manager>
</beans:beans>
Please help me,am a beginer in ldap integrating

Re: Ldap Not communicating

PostPosted:Thu Apr 18, 2013 1:07 pm
by Asifsalam96
Sorry my version is openkm6.2.2 community server
OS is Ubuntu

Re: Ldap Not communicating

PostPosted:Fri Apr 19, 2013 6:12 am
by dejanfc
$tomcat_install_dir/logs

Alternatively you can run the server with ./catalina run instead of ./startup and check the error messages directly on stdout.

Re: Ldap Not communicating

PostPosted:Fri Apr 19, 2013 12:57 pm
by Asifsalam96
from which line of log we can find whether it communicating or not???
am not getting any users under Administrator-->Users .

will you help to configure correctly ???

Re: Ldap Not communicating

PostPosted:Sun Apr 21, 2013 6:29 pm
by jllort
I suggest you take a look at the complete active directory examples at http://wiki.openkm.com/index.php/LDAP_examples ( I suggest second http://wiki.openkm.com/index.php/Ldap-example3 ).

To enable log you should modify log4j.properties int conf folder and add org.springframework.security.ldap pakage to be logged in debug mode