I am getting error see below
-------------------------------------
I have this in my "deployerConfigContext.xml":
<property name="filter" value="(&(uid=%u) (employeeType=A))" />
The error is :
I am using CAS 3.3.5.1
ML11Configuration.java:808)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.java:737)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.
java:119)
at
com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.
java:235)
at
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Doc
umentBuilderImpl.java:284)
at
org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocum
ent(DefaultDocumentLoader.java:75)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB
eanDefinitions(XmlBeanDefinitionReader.java:396)
... 38 more
2011-02-10 18:15:09,176 FATAL
[org.jasig.cas.web.init.SafeContextLoaderListener]
- <SafeContextLoaderListener:
The Spring ContextLoaderListener we wrap threw on contextInitialized.
But for our having caught this error, the web application context would not
have
initialized.>
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line
95 i
n XML document from ServletContext resource
[/WEB-INF/deployerConfigContext.xml]
is invalid; nested exception is org.xml.sax.SAXParseException: The entity
name
must immediately follow the '&' in the entity reference.
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB
eanDefinitions(XmlBeanDefinitionReader.java:404)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
nDefinitions(XmlBeanDefinitionReader.java:342)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
nDefinitions(XmlBeanDefinitionReader.java:310)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReade
r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReade
r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReade
r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
at
org.springframework.web.context.support.XmlWebApplicationContext.load
BeanDefinitions(XmlWebApplicationContext.java:124)
at
org.springframework.web.context.support.XmlWebApplicationContext.load
BeanDefinitions(XmlWebApplicationContext.java:92)
at
org.springframework.context.support.AbstractRefreshableApplicationCon
text.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
at
org.springframework.context.support.AbstractApplicationContext.obtain
FreshBeanFactory(AbstractApplicationContext.java:422)
at
org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:352)
at
org.springframework.web.context.ContextLoader.createWebApplicationCon
text(ContextLoader.java:255)
at
org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:199)
at
org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:45)
at
org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized(S
afeContextLoaderListener.java:62)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:4135)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4
630)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:791)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
1)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740
)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500
)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:321)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
On Mon, Feb 7, 2011 at 9:48 AM, Marvin Addison <[email protected]>wrote:
> > Can the LDAP filter in BindLdapAuthenticationHandler take the format
> > <property name="filter"
> value="(&(cn=%u)(userStatus=A))"
>
> Yes. Any valid LDAP search query will work.
>
> > It is my understanding that this handler first search LAP and then binds
> to LDAP as the user.
>
> That is correct, it searches for a single user matching the search
> query and then attempts a bind operation using the returned DN and
> password. I should note that it's considered an error condition (by
> default) for the search query to return multiple results, although the
> handler can be configured to allow this.
>
> M
>
> --
> You are currently subscribed to [email protected] as:
> [email protected]
> To unsubscribe, change settings or access archives, see
> http://www.ja-sig.org/wiki/display/JSG/cas-dev
>
>
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-dev