Page 1 of 1

com.openkm.core.RepositoryException: PathNotFoundException: 7ad783de-448c-4c4a-8dad-663da322229f : /okm:trash

PostPosted:Thu Apr 06, 2017 3:16 pm
by Florentin
Bonjour!
je suis un novice dans l'utilisation de OpenKM. J'ai essayé de configurer OpenKM afin de me connecter avec les utilisateurs de OpenLdap. les deux systèmes sont sur le même serveur (OS: Ubuntu server 16.04). quand je tente de me connecter avec un utilisateurs du Ldap j'ai le message d'erreur com.openkm.core.RepositoryException: PathNotFoundException. pouvez vous m'aider s'il vous plait.
openLdap:
Image
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">
 
  <security:authentication-manager alias="authenticationManager">
  	<security:authentication-provider ref="ldapAuthProvider" />
  </security:authentication-manager>
 
  <beans:bean id="contextSource" class="org.springframework.security.ldap.DefaultSpringSecurityContextSource">
  	<beans:constructor-arg value="ldap://192.168.2.15:389/dc=slimbot,dc=tic"/>
		<beans:property name="userDn" value="cn=admin,dc=slimbot,dc=tic"/>
  	<beans:property name="password" value="02097787"/>
  </beans:bean>
 
	<beans:bean id="ldapAuthProvider" class="org.springframework.security.ldap.authentication.LdapAuthenticationProvider">
		<beans:constructor-arg>
			<beans:bean class="org.springframework.security.ldap.authentication.BindAuthenticator">
				<beans:constructor-arg ref="contextSource"/>
				<beans:property name="userSearch" ref="userSearch"></beans:property>
			</beans:bean>
		</beans:constructor-arg>
		<beans:constructor-arg>
			<beans:bean class="org.springframework.security.ldap.userdetails.DefaultLdapAuthoritiesPopulator">
				<beans:constructor-arg ref="contextSource"/>
				<beans:constructor-arg value="ou=samba"/>
				<beans:property name="groupSearchFilter" value="memberUid={1}"/>
				<beans:property name="groupRoleAttribute" value="cn"/>
        <beans:property name="searchSubtree" value="true" />
        <beans:property name="convertToUpperCase" value="true" />
 
        <beans:property name="rolePrefix" value="" /> 
 
			</beans:bean>
		</beans:constructor-arg>
  </beans:bean>
 
   <beans:bean id="userSearch" class="org.springframework.security.ldap.search.FilterBasedLdapUserSearch">
    <beans:constructor-arg index="0" value="ou=sambaSlimbot" />
    <beans:constructor-arg index="1" value="uid={0}" />
    <beans:constructor-arg index="2" ref="contextSource" />
    <beans:property name="searchSubtree" value="true" />
  </beans:bean>
 
</beans:beans>
Image

Merci d'avance!

Re: com.openkm.core.RepositoryException: PathNotFoundException: 7ad783de-448c-4c4a-8dad-663da322229f : /okm:trash

PostPosted:Fri Apr 07, 2017 6:20 pm
by jllort
The reason of it is the user is not member of ROLE_USER or ROLE_ADMIN ( or ldap configuration is wrong when getting roles by user into the OpenKM.xml file )