CMDBuild Forum

Ldap cmdbuild 3.3.2 ready2use

Hi, i’m trying to enable ldap on the last version of cmdbuild ready2use but i’m having some trouble.
I don’t understand where to insert the auth.conf file. I’ve tried in:
/var/lib/tomcat9/webapps/cmdbuild/WEB-INF/conf
and in :
/var/lib/tomcat9/conf/cmdbuild/
but when i execute :
sh cmdbuild.sh restws setconfig org.cmdbuild.auth.ldap.server.port 389
it throws me this error:

18:17:03.716 ERROR o.c.u.cli.commands.RestCommandRunner - error building file password
java.lang.IllegalArgumentException: invalid auth dir = /var/lib/tomcat9/webapps/cmdbuild/../../temp
	at com.google.common.base.Preconditions.checkArgument(Preconditions.java:204)
	at org.cmdbuild.auth.login.file.FileAuthUtils.buildAuthFile(FileAuthUtils.java:27)
	at org.cmdbuild.utils.cli.commands.RestCommandRunner.tryToBuildFilePassword(RestCommandRunner.java:323)
	at org.cmdbuild.utils.cli.commands.RestCommandRunner.exec(RestCommandRunner.java:272)
	at org.cmdbuild.utils.cli.commands.AbstractCommandRunner.exec(AbstractCommandRunner.java:80)
	at org.cmdbuild.utils.cli.Main.runMain(Main.java:129)
	at org.cmdbuild.utils.cli.Main.main(Main.java:57)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.cmdbuild.webapp.cli.Main.runCli(Main.java:125)
	at org.cmdbuild.webapp.cli.Main.startFromWebappDir(Main.java:43)
	at org.cmdbuild.webapp.cli.Main.main(Main.java:35)
Exception in thread "main" java.lang.NullPointerException: missing 'password' param for user = system
	at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:830)
	at org.cmdbuild.utils.lang.CmPreconditions.checkNotBlank(CmPreconditions.java:112)
	at org.cmdbuild.utils.cli.commands.RestCommandRunner.exec(RestCommandRunner.java:294)
	at org.cmdbuild.utils.cli.commands.AbstractCommandRunner.exec(AbstractCommandRunner.java:80)
	at org.cmdbuild.utils.cli.Main.runMain(Main.java:129)
	at org.cmdbuild.utils.cli.Main.main(Main.java:57)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.cmdbuild.webapp.cli.Main.runCli(Main.java:125)
	at org.cmdbuild.webapp.cli.Main.startFromWebappDir(Main.java:43)
	at org.cmdbuild.webapp.cli.Main.main(Main.java:35)

this is my auth.conf file :
org.cmdbuild.auth.methods=LdapAuthenticator,DBAuthenticator
org.cmdbuild.auth.ldap.server.address=ldap.server.net
org.cmdbuild.auth.ldap.server.port=389
org.cmdbuild.auth.ldap.use.ssl=false
org.cmdbuild.auth.ldap.use.tls=false
org.cmdbuild.auth.ldap.bind.attribute=cn
org.cmdbuild.auth.ldap.basedn=cn=admin,dc=example,dc=net
org.cmdbuild.auth.ldap.search.auth.method=simple
org.cmdbuild.auth.ldap.search.auth.password=