> Hi, > > I'm trying to configure canned slide server to authenticate against a > LDAP. I've added the JNDI realm to the local host server of the Calalina > engine in server.xml file: > > <Engine name="Catalina" defaultHost="localhost" debug="0"> > <Host name="localhost" debug="0" appBase="webapps" unpackWARs="false" > configPath="slide" className="wrappers.catalina.SlideHost"> > <Realm className="org.apache.catalina.realm.JNDIRealm" debug="99" > connectionName="cn=Manager,dc=prod,dc=domain,dc=com" > connectionPassword="****************" > connectionURL="ldap://prod.domain.com:389" > roleBase="dc=roles,dc=roles,dc=prod,dc=domain,dc=com" > roleName="cn" > roleSearch="(uniqueMember={0})" > roleSubtree="true" > userPassword="userPassword" > userPattern="cn={0},dc=users,dc=prod,dc=domain,dc=com" > digest="SHA" > /> > ..... > > When the server starts up I can see it hit the LDAP server asking for info > on the connectionName entity. Then I point the browser to the slide > domain, I get the expected authentication dialog box, but when I enter > user/password combo, nothing happens. I don't see any activity on the LDAP > server at all. But there is an error in the log file: > > Slide realm[/slide]: User null doesn't have his password property set : > can't authenticate > > Any ideas as to what I'm doing wrong?
Well, the problem is that the SlideHost is very aggressive about setting a SlideRealm on each of the contexts. I'm not too sure about what happens, though. The WebDAV servlet calls getUserPrincipal to get a Principal object representing the authenticated pricipal. Here, it doesn't look like it did work. Remy -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
