Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

XML parser issue while defining a Realm

Serlet Jean-Claude

2007-02-21

Replies:

Hello

My environment :
Windows 2003 server
Tomcat 5.5.12

What i tried :
userSearch="(&(uid={0})(|(dncomp=ou=Oneorgunit)(dencomp=ou=AnOtherOU)))"
while defining a Realm using an LDAP directory
I gave a xml parser error when i started the Tomcat Instance :
org.xml.sax.SAXParseException: The entity name must immediately follow the
'&' in the entity reference.
When i use this filter through an LDAP browser (replacing {0} with a valid
uid) that works well
Thanks

Jean-Claude

©2008 junlu.com - Jax Systems, LLC, U.S.A.