[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Using LDAP on iSeries to authenticate a user

Posted on 2008-11-17
4
Medium Priority
?
3,982 Views
Last Modified: 2013-12-19
Hi,

We have a web application on Websphere 6.1 (running on a RedHat server), we wish to process the logon to the server initially using LDAP against an iSeries account, then once authenticated and session established on Websphere server - we use webservices (RPG programs using HTTP CGI) that require a login in the HTTP header to run.

I need to know if I can process a "user and password are valid" operation through LDAP, i have always used the AS400Connection java objects from IBM to check users and passwords before.

The IBM documentation regarding HTTP servers running LDAP appear to indicate a usage more suited to an address book or information lookup rather than as a loging checking mechanism.

Can anyone tell me what i need to do with LDAP to allow us to process log on authentication?

Many thanks
0
Comment
Question by:ProgrammingSmurf
  • 2
3 Comments
 
LVL 36

Expert Comment

by:Gary Patterson
ID: 22989733
Assuming AS/400 LDAP is configured in it's default configuration, if all you want to do is verify that an AS/400 user id / password pair is valid via LDAP, just bind using a projected user and the correct password:

os400-profile=MYPROFILE,cn=accounts,os400-sys=my-system.acme.com

Basic sample Java code:

http://java.sun.com/products/jndi/tutorial/ldap/security/ldap.html

Unless you use SSL, this information flows in the clear.  

This also doesn't help you much if you have multiple applications, and you need to provide selective access to these applications to a group of users, or if you want to provide various application-level rights to users (view versus update).

The WAS 6.1 Security Redbook explains web application security (including LDAP) in detail:

http://www.redbooks.ibm.com/redbooks/pdfs/sg246316.pdf

- Gary Patterson
0
 
LVL 1

Author Comment

by:ProgrammingSmurf
ID: 23012309
Hi,

I am sorry for the late reply ...

When you say LDAP running in dft config - i can see the Directory server running which has (LDAP) in the text ... is this the same thing?

Thank you for your help.
0
 
LVL 36

Accepted Solution

by:
Gary Patterson earned 1000 total points
ID: 23030537
Default configuration means the AS/400 LDAP server is started with it's default configuration as shipped from IBM.  Variations to default configuration can change behaviour.  If the code doesn't work, check with whoever configured your LDAP server and determine if LDAP config changes were made that interfere.

- Gary Patterson
0

Featured Post

Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
The article covers five tools all IT professionals should know about, as they up productivity by a great deal!
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question