• changes made to Openkm.cfg is ignored

  • 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.
 #15370  by rasha123
 
hi all,

i m working in OpenKm 5.1.9

every time i make changes in the configuration view and run the jboos again , all the configurations are gone alse if i created new role they are gone as well!

i made changes in Openkm.cfg file also but i thing they are ignored i donno why ??
Code: Select all
# Since OpenKM 5.1 this file is only used for Hibernate configuration.
# To change configuration parameters, use Administration -> Configuration
#
hibernate.dialect=org.hibernate.dialect.HSQLDialect
hibernate.hbm2ddl=create
system.login.lowercase=on
principal.adapter=com.sun.jndi.ldap.LdapCtxFactory
principal.ldap.server=ldap://10.100.xx.xx:389/
principal.ldap.security.principal=CN=Administrator,ou=xxx,dc=xxx,dc=local
principal.ldap.security.credentials=password
principal.ldap.user.search.base=ou=xx,dc=xxx,dc=local
principal.ldap.user.search.filter=(objectclass=person)
principal.ldap.user.attribute=sAMAccountName
principal.ldap.role.search.base=ou=xxxe,dc=xxx,dc=local
principal.ldap.role.search.filter=(objectclass=group)
principal.ldap.role.attribute=cn
principal.ldap.mail.search.base=cn={0},ou=xxxx,dc=xxxx,dc=local
principal.ldap.mail.search.filter=(&(objectclass=person)(sAMAccountName={0}))
principal.ldap.mail.attribute=mail
principal.ldap.users.by.role.search.base=cn={0},ou=xxxx,dc=xxxx,dc=local
principal.ldap.users.by.role.search.filter=(objectclass=group)
principal.ldap.users.by.role.attribute=member
principal.ldap.roles.by.user.search.base=cn={0},ou=xxxx,dc=xxx,dc=local
principal.ldap.roles.by.user.search.filter=(&(objectclass=person)(sAMAccountName={0}))
principal.ldap.roles.by.user.attribute=memberOf
and this is for the login-config
Code: Select all
  <application-policy name="OpenKM">
     <authentication>
         <login-module flag="required" code="org.jboss.security.auth.spi.LdapExtLoginModule">
             <module-option name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</module-option>
          <module-option name="java.naming.provider.url">ldap://10.100.xx.xxx:389/</module-option>
          <module-option name="java.naming.security.authentication">simple</module-option>
          <module-option name="bindDN">xxx\Administrator</module-option>
          <module-option name="bindCredential">password</module-option>
          <module-option name="baseCtxDN">ou=xxxx,dc=xxx,dc=local</module-option>
          <module-option name="baseFilter">(sAMAccountName={0})</module-option>
          <module-option name="rolesCtxDN">ou=xxxx,dc=xxxx,dc=local</module-option>
<module-option name="roleFilter">(sAMAccountName={0})</module-option>
      <module-option name="roleAttributeID">memberOf</module-option>
          <module-option name="roleAttributeIsDN">true</module-option>
<module-option name="roleRecursion">0</module-option>
      <module-option name="roleNameAttributeID">cn</module-option>
      <module-option name="searchScope">ONELEVEL_SCOPE</module-option>
          <module-option name="java.naming.referral">follow</module-option>
        </login-module>
     </authentication>
</application-policy>
if any one can help me i have struggling for many days now :(

also i cannt get the users and roles in the user list :(
 #15405  by jllort
 
From version 5.1.x after first login the changes should be done in administration tab ( second icon from left ). OpenKM.cfg values are only for first starting OpenKM.
 #15416  by rasha123
 
should i now reload Openkm again and after the first login (as the default okmadmin) , i make the changes in the administration view and then in the login-config.xml file ( to be able to connect with active directory) ?

and when i should change OpenKM.cfg file ?
 #15423  by vkasgpta
 
first of all the issue is your files keep resetting... pls read the wiki on hibernate setting in the openkm config file.
secondly as pavila said all changes to be done from within openkm.

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.