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

5 comments

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=u
sers,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


See if this thread helps:
http://www.intellij.net/forums/thread.jspa?threadID=266806&tstart=195

-Dave

0

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

0

Did you try to connect with JXplorer using this connection strings?

Charles Meunier wrote:

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



--
Alexey Gopachenko
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

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

0

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!"

0

Please sign in to leave a comment.