LDAP authentication trouble
Hello,
I'm currently evaluationg Team City 2.1.1 for my company.
I need to use LDAP authentication so I tried to configure it using the documentation template.
The ldap is Active Directory, and I run Team City in tomcat 5.5.23 on Solaris.
main-config.xml :
...
<auth-type>
<login-module />
<guest-login allowed="false" />
<free-registration allowed="false" />
</auth-type>
...
ldap-config.properties :
java.naming.referral=follow
java.naming.provider.url="ldap://ldap1.domain:3268 ldap://ldap2.domain:3268"
java.naming.security.authentication=simple
loginFilter=.+
I also tried :
java.naming.provider.url=ldap://ldap1.domain:3268/OU=users,OU=accounts,DC=dc1,DC=dc2
where the OU and DC values are correct...
And each time I try to log in I obtain this error in the teamcity-server.log file :
DEBUG - ide.impl.auth.ServerLoginModel - Login failed, error: javax.security.auth.login.LoginException: java.lang.NullPointerException
The error returned by the webapp is :
Failed to set up administrator account. Unknown username or password.
I tried all possible login patterns... With no success.
Anyone has an idea about what's wrong ?
Thanks for our help.
Charles
Please sign in to leave a comment.
See if this thread helps:
http://www.intellij.net/forums/thread.jspa?threadID=266806&tstart=195
-Dave
Hello,
Thanks for answering Dave.
The error in this thread is not the same than the one I get : no matter which syntax I use, I always get java.lang.NullPointerException.
I'm trying to create a custom login module so I can see more precisely what's going on.
Charles
Did you try to connect with JXplorer using this connection strings?
Charles Meunier wrote:
--
Alexey Gopachenko
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
Hello,
I eventually made a new clean install of TC and my troubles are gone.
Thanks a lot for your time.
TC is a fine product, too bad LDAP authentication doesn't allow to limit users.
Regards,
Charles
Charles,
Concerning limiting TeamCity access for LDAP users please watch/vote for
http://www.jetbrains.net/jira/browse/TW-1974
--
Best regards,
Yegor Yarko
Quality Assurance Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"