cancel
Showing results for 
Search instead for 
Did you mean: 

Authentication, Authorisation, Realm, TomCat, WAS, Constaints...

Former Member
0 Kudos

Hello,

I'm porting a WebApp Form <b>TomCat</b> to <b>WAS 6.20</b>.

I've problems figuring out how to set a JNDI-Realm in the application context.

The context in the TomCat Server.xml looks like this:

<b><Context docBase="C:\wert" path="/wert"

reloadable="false" workDir="C:\org\apache\jsp">

<Logger className="org.apache.catalina.logger.SystemOutLogger"

directory="logs" prefix="wert." suffix=".txt" timestamp="true" verbosity="5"/>

<Realm className="org.apache.catalina.realm.JNDIRealm"

connectionURL="ldap://wert.com:389" debug="99"

roleBase="ou=wert,ou=wert,o=wert,dc=wert,dc=com" roleName="cn"

roleSearch="(member=)" userBase="ou=wert,ou=wert,o=wert,dc=wert,dc=com" userSearch="(uid=)"/>

</Context></b>

How can I configure something similar on WAS 6.20?

<u>Any answer will be HIGHLY appreciated</u>

WALTER

Accepted Solutions (0)

Answers (1)

Answers (1)

Benny
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

sorry, but I'm not a specialist for TomCat, what does this do?

Regards,

Benny

Former Member
0 Kudos

Dear Benny,

thanks for Your reply.

In the the XML-snippet I'm defining a Realm for a Web-Context. This is for userauthentication and -authorisation. In this case it is a LDAP datasource.

According to Your "How To Guide": "Working with Java Server Pages and Servlets" I'm doing nearly the same as You did on page 15 (Deploying the Web Application with Security Constraint). The difference is that I want to use my own datasource for the User/Role/Password thing.

If it is not possible to define a serperate datasource how can I connect my WAS 6.20 to SAP or LDAP to retrieve a userlist according your example?

Regards

Walter

Former Member
0 Kudos

Hello Walter,

I posted a similar question two weeks ago. However I have not tried the recommended reading yet.

http://www.abapforum.com/forum/viewtopic.php?t=1700

Benny
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Walter,

this means you have to integrate the LDAP system to the server. This is not application specific, but done with the server.

There should be a way to configure an ldap server as security provider. Sorry I never done it. I definitely know that it works in 6.40 but it should have been in 6.20 already.

Thisd measn for you to go through manuals and notes...

Regards,

Benny