java - Authentication on Tomcat 8.0.26 via LDAP issue using Netbeans 8.0.2 -


i'm trying setup tomcat server ldap authentication. inserted following snippet in server.xml

<realm classname="org.apache.catalina.realm.jndirealm"                    authentication="simple"                   connectionurl="ldap://intra.domain.com:389"                   alternateurl="ldap://intra.domain.com:389"                   userbase="ou=benutzer,dc=intra,dc=domain,dc=com"                   usersearch="(emailaddress={0})"                   usersubtree="true"                   connectionname="ldap@intra.domain.com"                   connectionpassword="{password user above}"                   userpattern="uid={0},ou=benutzer,dc=intra,dc=domain,dc=com"                   rolesearch="(uniquemember={0})"             /> 

the server starts without exceptions or warnings. however, when try run web application netbeans popup asks authentication username , password. after typing in correct credentials , click "ok"-button, popup shows again , again. tomcat-log shows no errors either.

did miss here? can explain, i'm doing wrong?

thanks.


Comments