After configuring ldap via the ./cmdbuild.sh restws setconfig method, i’m not able to see where it saves this information and LDAP is not working. Is there anything that needs to be restarted, or is there a way to see what the current system is set to. I see the settings when i do a ‘getconfigs’ in the Menus under authentication, I see LDAP listed under the disabled authentication methods. I’m using CMDBUild version 3.3.3.
Guide for LDAPS
#CentOS 8 Stream
#Install CA Server cert
cp ./CAcert.cer /etc/pki/ca-trust/source/anchors/
update-ca-trust extract
#Disable Java check RSA keySize < 2048 for CA Server cert (it may not be necessary)
sed -i 's/, RSA keySize < 2048/ /g' /etc/crypto-policies/back-ends/java.config
#Edit cmdbuild config
#CHANGE VALUES IN CAPS!
/usr/share/tomcat/webapps/cmdbuild/cmdbuild.sh restws setconfig org.cmdbuild.auth.ldap.enabled=true
/usr/share/tomcat/webapps/cmdbuild/cmdbuild.sh restws setconfig org.cmdbuild.auth.ldap.basedn=dc=CONTOSO,dc=INT
/usr/share/tomcat/webapps/cmdbuild/cmdbuild.sh restws setconfig org.cmdbuild.auth.ldap.bind.attribute=sAMAccountName
/usr/share/tomcat/webapps/cmdbuild/cmdbuild.sh restws setconfig org.cmdbuild.auth.ldap.search.auth.password=PASSWORD
/usr/share/tomcat/webapps/cmdbuild/cmdbuild.sh restws setconfig org.cmdbuild.auth.ldap.search.auth.principal="CN=USER,OU=USERS-OU,DC=CONTOSO,DC=INT"
/usr/share/tomcat/webapps/cmdbuild/cmdbuild.sh restws setconfig org.cmdbuild.auth.ldap.server.address=CONTOSO.INT
/usr/share/tomcat/webapps/cmdbuild/cmdbuild.sh restws setconfig org.cmdbuild.auth.ldap.server.port=636
/usr/share/tomcat/webapps/cmdbuild/cmdbuild.sh restws setconfig org.cmdbuild.auth.ldap.use.ssl=true
/usr/share/tomcat/webapps/cmdbuild/cmdbuild.sh restws setconfig org.cmdbuild.auth.ldap.search.filter="(objectCategory=*)(memberof=CN=CMDBusers,OU=GROUPS,DC=CONTOSO,DC=INT)"
reboot
[root@slcmdpro02 cmdbuild]# ./cmdbuild.sh restws setconfig org.cmdbuild.auth.ldap.server.port=636
Exception in thread "main" java.lang.NullPointerException: method not found for name = setconfig param count = 1
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:1195)
at org.cmdbuild.utils.cli.utils.CliCommandUtils.prepareAction(CliCommandUtils.java:25)
at org.cmdbuild.utils.cli.commands.RestCommandRunner.exec(RestCommandRunner.java:274)
at org.cmdbuild.utils.cli.commands.AbstractCommandRunner.exec(AbstractCommandRunner.java:78)
at org.cmdbuild.utils.cli.Main.runMain(Main.java:127)
at org.cmdbuild.utils.cli.Main.main(Main.java:56)
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)
i got this exception, what does it mean?