CMDBuild Forum

Ad configuration

Hi,

I would like to configure the connection betwen the ad and my cmdbuild.

I installed cmdbuild under windows and in the manual it says to use cmdbuild.sh for the configuration, but unfortunately under windows it doesn’t work.

I tested by installing git under windows without success.

Can you help me to configure the ad connection on windows?

Thanks !

I have advanced a little.
I have run the .sh file with Cygwin software.
But when I try to run the command: cmdbuild.sh restws setconfig org.cmdbuild.auth.methods = LdapAuthenticator, DBAuthenticator I get the following error:

Error: A JNI error has occurred, please check your installation and try again
Exception in thread “main” java.lang.UnsupportedClassVersionError: org/cmdbuild/webapp/cli/Main has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)

Can you help me ?
Thanks

Hi,

ok i found the solution to connect the ad, just add the following entries to the table _sytemconfig database:
org.cmdbuild.auth.methods=LdapAuthenticator,DBAuthenticator
org.cmdbuild.auth.ldap.server.address=192.168.X.X
org.cmdbuild.auth.ldap.server.port=389
org.cmdbuild.auth.ldap.basedn=dc=mydomain,dc=com
org.cmdbuild.auth.ldap.search.auth.method=simple
org.cmdbuild.auth.ldap.search.auth.principal=CN=myuser,OU= Users,DC=mydomain,DC=com
org.cmdbuild.auth.ldap.search.auth.password=mypassword
orgcmdbuild.auth.ldap.bind.attribute=sAMAccountName

It was not necessary to use the script cmdbuild.sh.
A week of research for a simple configuration. I hope this can help other people.

Bye

I’m also having an issue getting LDAP to work. I did as you said yet I still cannot log into an account on my AD. Is there anything else I need to be doing?