• Ldap Not communicating

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #22569  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
Attachments
conf.png
conf.png (693.61 KiB) Viewed 3991 times
 #22574  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.
 #22578  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 ???
 #22603  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

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.