• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

LDAP for web application user login - Weblogic

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want my user accounts to be stored in a LDAP (for e.g. OpenLDAP), and the users of my web application login based on this LDAP user accounts.
I know I can configure weblogic to manage this, anyone has any online tutorial article for this topic?


Thanks in advance.
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can set up Weblogic to use an external LDAP (it uses a built-in one by default), but you can't manage it through Weblogic. I use Apache Directory Studio.
Once you have your LDAP set up, open the Weblogic console and create an Authenticator under Security Realms->myrealm->Providers. You'll need to provide the appropriate contact and mapping information for your configuration. That all depends on how you set up the database and for those details you'll have to rely on the provider's documentation.
 
pin guan wang
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have successfully got Apache Directory working with my Weblogic.
The users and groups from Apache Directory is showing in Weblogic Users & Groups section.

However, when I tried to login by using j_security_check, it always returns "Authentication Failed".
I have created some users and groups manually from weblogic, I can login with those users, but not those from Apache Directory.

I guess it could be caused by the password encryption in Apache Directory, when I set up a user, the password will be set to SSHA even I have selected plaintext.
If not my config files could be wrong.

Any idea?


login.xhtml





web.xml



weblogic.xml


 
pin guan wang
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have solved the problem.

I just need to "Reorder" my LDAP authenitcation provider in Weblogic (Security Realms -> myrealm -> Providers -> Authentication) to the top of the list and it works like a charm.


Thank you anyway.
 
reply
    Bookmark Topic Watch Topic
  • New Topic