CMDBuild Forum

Connection to LDAP failed

Hi everyone,

 

I'am unsuccessfully trying to connect CDMBuild to ldap. But I always get the following error : [jsonrpc ] A org.cmdbuild.exception.AuthException occurred calling method class org.cmdbuild.servlets.json.Login.login: AUTH_LOGIN_WRONG

 
Here is my configuration : 
 
auth.methods=LdapAuthenticator,DBAuthenticator
 
ldap.server.address=domain.com
ldap.server.port=636
ldap.use.ssl=true
ldap.basedn=OU=[...],DC=[...],DC=[...]
ldap.bind.attribute=sAMAccountName
 
ldap.search.filter=(objectClass=*)
ldap.search.auth.method=simple
ldap.search.auth.principal=CN=CMDBuildAccount,OU=[...],DC=[...],DC=[...]
ldap.search.auth.password=MyPassword
 
 
Can someone help me ? I really don't know where the problem is.
Thanks in advance,
Regards.
Hi!  It's my work config
 
ldap.server.address=192.168.32.2
ldap.server.port=389
ldap.use.ssl=false
ldap.basedn=dc=[...],dc=[...]
ldap.bind.attribute=samaccountname
 
ldap.search.filter=(objectClass=*)
##Accept only none (anonymous bind) and simple (simple bind)
#ldap.search.auth.method=none
##This section is only for simple bind
ldap.search.auth.method=simple
ldap.search.auth.principal=cn=[...],ou=[...],dc=[...],dc=[...]
ldap.search.auth.password=passwd
 
And you must create the same login into cmdbuild as your ldap server
 
Previously Baptiste wrote:

Hi everyone,

 

I'am unsuccessfully trying to connect CDMBuild to ldap. But I always get the following error : [jsonrpc ] A org.cmdbuild.exception.AuthException occurred calling method class org.cmdbuild.servlets.json.Login.login: AUTH_LOGIN_WRONG

 
Here is my configuration : 
 
auth.methods=LdapAuthenticator,DBAuthenticator
 
ldap.server.address=domain.com
ldap.server.port=636
ldap.use.ssl=true
ldap.basedn=OU=[...],DC=[...],DC=[...]
ldap.bind.attribute=sAMAccountName
 
ldap.search.filter=(objectClass=*)
ldap.search.auth.method=simple
ldap.search.auth.principal=CN=CMDBuildAccount,OU=[...],DC=[...],DC=[...]
ldap.search.auth.password=MyPassword
 
 
Can someone help me ? I really don't know where the problem is.
Thanks in advance,
Regards.

 

Hi,
 
Thanks for your help, still doesn't manage to get ldap connection working...
 
I tried with the ldap search command, this command works : 
ldapsearch -D "CN=CMDBuildAccount,OU=[...],OU=[...],DC=[...],DC=[...]" -b OU=[...],DC=[...],DC=[...] -h domain.com -p 389 -x -W -ZZ
 
I can also replace -h domain.com -p 389 with -H ldaps://domain.com
 
So I update my configuration to use port 389 and create the same login into cmdbuild as the one used for my ldap serveur but always the same error :
INFO  2013-06-19 10:29:57 [jsonrpc ] Calling url /login/login
ERROR 2013-06-19 10:29:57 [jsonrpc ] A org.cmdbuild.exception.AuthException occurred calling method class org.cmdbuild.servlets.json.Login.login: AUTH_LOGIN_WRONG
 
Any other idea ?
Regards.
 
 
Previously denis wrote:
Hi!  It's my work config
 
ldap.server.address=192.168.32.2
ldap.server.port=389
ldap.use.ssl=false
ldap.basedn=dc=[...],dc=[...]
ldap.bind.attribute=samaccountname
 
ldap.search.filter=(objectClass=*)
##Accept only none (anonymous bind) and simple (simple bind)
#ldap.search.auth.method=none
##This section is only for simple bind
ldap.search.auth.method=simple
ldap.search.auth.principal=cn=[...],ou=[...],dc=[...],dc=[...]
ldap.search.auth.password=passwd
 
And you must create the same login into cmdbuild as your ldap server
 
Previously Baptiste wrote:

Hi everyone,

 

I'am unsuccessfully trying to connect CDMBuild to ldap. But I always get the following error : [jsonrpc ] A org.cmdbuild.exception.AuthException occurred calling method class org.cmdbuild.servlets.json.Login.login: AUTH_LOGIN_WRONG

 
Here is my configuration : 
 
auth.methods=LdapAuthenticator,DBAuthenticator
 
ldap.server.address=domain.com
ldap.server.port=636
ldap.use.ssl=true
ldap.basedn=OU=[...],DC=[...],DC=[...]
ldap.bind.attribute=sAMAccountName
 
ldap.search.filter=(objectClass=*)
ldap.search.auth.method=simple
ldap.search.auth.principal=CN=CMDBuildAccount,OU=[...],DC=[...],DC=[...]
ldap.search.auth.password=MyPassword
 
 
Can someone help me ? I really don't know where the problem is.
Thanks in advance,
Regards.

 

 

are you change ldap.use.ssl=false?

Previously Baptiste wrote:
Hi,
 
Thanks for your help, still doesn't manage to get ldap connection working...
 
I tried with the ldap search command, this command works : 
ldapsearch -D "CN=CMDBuildAccount,OU=[...],OU=[...],DC=[...],DC=[...]" -b OU=[...],DC=[...],DC=[...] -h domain.com -p 389 -x -W -ZZ
 
I can also replace -h domain.com -p 389 with -H ldaps://domain.com
 
So I update my configuration to use port 389 and create the same login into cmdbuild as the one used for my ldap serveur but always the same error :
INFO  2013-06-19 10:29:57 [jsonrpc ] Calling url /login/login
ERROR 2013-06-19 10:29:57 [jsonrpc ] A org.cmdbuild.exception.AuthException occurred calling method class org.cmdbuild.servlets.json.Login.login: AUTH_LOGIN_WRONG
 
Any other idea ?
Regards.
 
 
Previously denis wrote:
Hi!  It's my work config
 
ldap.server.address=192.168.32.2
ldap.server.port=389
ldap.use.ssl=false
ldap.basedn=dc=[...],dc=[...]
ldap.bind.attribute=samaccountname
 
ldap.search.filter=(objectClass=*)
##Accept only none (anonymous bind) and simple (simple bind)
#ldap.search.auth.method=none
##This section is only for simple bind
ldap.search.auth.method=simple
ldap.search.auth.principal=cn=[...],ou=[...],dc=[...],dc=[...]
ldap.search.auth.password=passwd
 
And you must create the same login into cmdbuild as your ldap server
 
Previously Baptiste wrote:

Hi everyone,

 

I'am unsuccessfully trying to connect CDMBuild to ldap. But I always get the following error : [jsonrpc ] A org.cmdbuild.exception.AuthException occurred calling method class org.cmdbuild.servlets.json.Login.login: AUTH_LOGIN_WRONG

 
Here is my configuration : 
 
auth.methods=LdapAuthenticator,DBAuthenticator
 
ldap.server.address=domain.com
ldap.server.port=636
ldap.use.ssl=true
ldap.basedn=OU=[...],DC=[...],DC=[...]
ldap.bind.attribute=sAMAccountName
 
ldap.search.filter=(objectClass=*)
ldap.search.auth.method=simple
ldap.search.auth.principal=CN=CMDBuildAccount,OU=[...],DC=[...],DC=[...]
ldap.search.auth.password=MyPassword
 
 
Can someone help me ? I really don't know where the problem is.
Thanks in advance,
Regards.

 

 

 

Yes, I've tried to change it too but doesn't seems to work neither. This things makes me crazy...
Can we changging logging to be more verbose ?
 
 
Previously denis wrote:
are you change ldap.use.ssl=false?

Previously Baptiste wrote:
Hi,
 
Thanks for your help, still doesn't manage to get ldap connection working...
 
I tried with the ldap search command, this command works : 
ldapsearch -D "CN=CMDBuildAccount,OU=[...],OU=[...],DC=[...],DC=[...]" -b OU=[...],DC=[...],DC=[...] -h domain.com -p 389 -x -W -ZZ
 
I can also replace -h domain.com -p 389 with -H ldaps://domain.com
 
So I update my configuration to use port 389 and create the same login into cmdbuild as the one used for my ldap serveur but always the same error :
INFO  2013-06-19 10:29:57 [jsonrpc ] Calling url /login/login
ERROR 2013-06-19 10:29:57 [jsonrpc ] A org.cmdbuild.exception.AuthException occurred calling method class org.cmdbuild.servlets.json.Login.login: AUTH_LOGIN_WRONG
 
Any other idea ?
Regards.
 
 
Previously denis wrote:
Hi!  It's my work config
 
ldap.server.address=192.168.32.2
ldap.server.port=389
ldap.use.ssl=false
ldap.basedn=dc=[...],dc=[...]
ldap.bind.attribute=samaccountname
 
ldap.search.filter=(objectClass=*)
##Accept only none (anonymous bind) and simple (simple bind)
#ldap.search.auth.method=none
##This section is only for simple bind
ldap.search.auth.method=simple
ldap.search.auth.principal=cn=[...],ou=[...],dc=[...],dc=[...]
ldap.search.auth.password=passwd
 
And you must create the same login into cmdbuild as your ldap server
 
Previously Baptiste wrote:

Hi everyone,

 

I'am unsuccessfully trying to connect CDMBuild to ldap. But I always get the following error : [jsonrpc ] A org.cmdbuild.exception.AuthException occurred calling method class org.cmdbuild.servlets.json.Login.login: AUTH_LOGIN_WRONG

 
Here is my configuration : 
 
auth.methods=LdapAuthenticator,DBAuthenticator
 
ldap.server.address=domain.com
ldap.server.port=636
ldap.use.ssl=true
ldap.basedn=OU=[...],DC=[...],DC=[...]
ldap.bind.attribute=sAMAccountName
 
ldap.search.filter=(objectClass=*)
ldap.search.auth.method=simple
ldap.search.auth.principal=CN=CMDBuildAccount,OU=[...],DC=[...],DC=[...]
ldap.search.auth.password=MyPassword
 
 
Can someone help me ? I really don't know where the problem is.
Thanks in advance,
Regards.

 

 

 

 

The configuration seems correct, what CMDBuild version are you using: 1.5, 2.0 or 2.1?
 
--
Davide Pavan
 
Previously Baptiste wrote:
Yes, I've tried to change it too but doesn't seems to work neither. This things makes me crazy...
Can we changging logging to be more verbose ?
 
 
Previously denis wrote:
are you change ldap.use.ssl=false?

Previously Baptiste wrote:
Hi,
 
Thanks for your help, still doesn't manage to get ldap connection working...
 
I tried with the ldap search command, this command works : 
ldapsearch -D "CN=CMDBuildAccount,OU=[...],OU=[...],DC=[...],DC=[...]" -b OU=[...],DC=[...],DC=[...] -h domain.com -p 389 -x -W -ZZ
 
I can also replace -h domain.com -p 389 with -H ldaps://domain.com
 
So I update my configuration to use port 389 and create the same login into cmdbuild as the one used for my ldap serveur but always the same error :
INFO  2013-06-19 10:29:57 [jsonrpc ] Calling url /login/login
ERROR 2013-06-19 10:29:57 [jsonrpc ] A org.cmdbuild.exception.AuthException occurred calling method class org.cmdbuild.servlets.json.Login.login: AUTH_LOGIN_WRONG
 
Any other idea ?
Regards.
 
 
Previously denis wrote:
Hi!  It's my work config
 
ldap.server.address=192.168.32.2
ldap.server.port=389
ldap.use.ssl=false
ldap.basedn=dc=[...],dc=[...]
ldap.bind.attribute=samaccountname
 
ldap.search.filter=(objectClass=*)
##Accept only none (anonymous bind) and simple (simple bind)
#ldap.search.auth.method=none
##This section is only for simple bind
ldap.search.auth.method=simple
ldap.search.auth.principal=cn=[...],ou=[...],dc=[...],dc=[...]
ldap.search.auth.password=passwd
 
And you must create the same login into cmdbuild as your ldap server
 
Previously Baptiste wrote:

Hi everyone,

 

I'am unsuccessfully trying to connect CDMBuild to ldap. But I always get the following error : [jsonrpc ] A org.cmdbuild.exception.AuthException occurred calling method class org.cmdbuild.servlets.json.Login.login: AUTH_LOGIN_WRONG

 
Here is my configuration : 
 
auth.methods=LdapAuthenticator,DBAuthenticator
 
ldap.server.address=domain.com
ldap.server.port=636
ldap.use.ssl=true
ldap.basedn=OU=[...],DC=[...],DC=[...]
ldap.bind.attribute=sAMAccountName
 
ldap.search.filter=(objectClass=*)
ldap.search.auth.method=simple
ldap.search.auth.principal=CN=CMDBuildAccount,OU=[...],DC=[...],DC=[...]
ldap.search.auth.password=MyPassword
 
 
Can someone help me ? I really don't know where the problem is.
Thanks in advance,
Regards.

 

 

 

 

 

I am on 1.5 because i cannot migrate to 2.1 when I want to update it to v2.1.4. Everything works fine until the moment when CMDBuild ask me to proceed to (SQL) patches. I have the following error :
 
Call: services/json/configure/applypatches
-------------------------------------------
Error: org.cmdbuild.exception.ORMException: ORM_SQL_PATCH
    at org.cmdbuild.exception.ORMException$ORMExceptionType.createException(ORMException.java:59)
    at org.cmdbuild.services.DefaultPatchManager.applyPatch(DefaultPatchManager.java:264)
    at org.cmdbuild.services.DefaultPatchManager.applyPatchList(DefaultPatchManager.java:239)
    at org.cmdbuild.servlets.json.Configure.applyPatches(Configure.java:176)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.cmdbuild.servlets.JSONDispatcher.dispatch(JSONDispatcher.java:94)
    at org.cmdbuild.servlets.JSONDispatcher.doPost(JSONDispatcher.java:54)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.cmdbuild.filters.AuthFilter.doFilter(AuthFilter.java:133)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.cmdbuild.filters.PatchManagerFilter.doFilter(PatchManagerFilter.java:33)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.cmdbuild.filters.ConfCheckFilter.doFilter(ConfCheckFilter.java:31)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.cmdbuild.filters.TranslationFilter.doFilter(TranslationFilter.java:39)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    at java.lang.Thread.run(Thread.java:722)
 
Previously Tecnoteca wrote:
The configuration seems correct, what CMDBuild version are you using: 1.5, 2.0 or 2.1?
 
--
Davide Pavan
 
Previously Baptiste wrote:
Yes, I've tried to change it too but doesn't seems to work neither. This things makes me crazy...
Can we changging logging to be more verbose ?
 
 
Previously denis wrote:
are you change ldap.use.ssl=false?

Previously Baptiste wrote:
Hi,
 
Thanks for your help, still doesn't manage to get ldap connection working...
 
I tried with the ldap search command, this command works : 
ldapsearch -D "CN=CMDBuildAccount,OU=[...],OU=[...],DC=[...],DC=[...]" -b OU=[...],DC=[...],DC=[...] -h domain.com -p 389 -x -W -ZZ
 
I can also replace -h domain.com -p 389 with -H ldaps://domain.com
 
So I update my configuration to use port 389 and create the same login into cmdbuild as the one used for my ldap serveur but always the same error :
INFO  2013-06-19 10:29:57 [jsonrpc ] Calling url /login/login
ERROR 2013-06-19 10:29:57 [jsonrpc ] A org.cmdbuild.exception.AuthException occurred calling method class org.cmdbuild.servlets.json.Login.login: AUTH_LOGIN_WRONG
 
Any other idea ?
Regards.
 
 
Previously denis wrote:
Hi!  It's my work config
 
ldap.server.address=192.168.32.2
ldap.server.port=389
ldap.use.ssl=false
ldap.basedn=dc=[...],dc=[...]
ldap.bind.attribute=samaccountname
 
ldap.search.filter=(objectClass=*)
##Accept only none (anonymous bind) and simple (simple bind)
#ldap.search.auth.method=none
##This section is only for simple bind
ldap.search.auth.method=simple
ldap.search.auth.principal=cn=[...],ou=[...],dc=[...],dc=[...]
ldap.search.auth.password=passwd
 
And you must create the same login into cmdbuild as your ldap server
 
Previously Baptiste wrote:

Hi everyone,

 

I'am unsuccessfully trying to connect CDMBuild to ldap. But I always get the following error : [jsonrpc ] A org.cmdbuild.exception.AuthException occurred calling method class org.cmdbuild.servlets.json.Login.login: AUTH_LOGIN_WRONG

 
Here is my configuration : 
 
auth.methods=LdapAuthenticator,DBAuthenticator
 
ldap.server.address=domain.com
ldap.server.port=636
ldap.use.ssl=true
ldap.basedn=OU=[...],DC=[...],DC=[...]
ldap.bind.attribute=sAMAccountName
 
ldap.search.filter=(objectClass=*)
ldap.search.auth.method=simple
ldap.search.auth.principal=CN=CMDBuildAccount,OU=[...],DC=[...],DC=[...]
ldap.search.auth.password=MyPassword
 
 
Can someone help me ? I really don't know where the problem is.
Thanks in advance,
Regards.