• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet and LDAP Problem

 
Mike Br
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hiya, Im working on a site that requires a user to authenticate to LDAP and presenting an applet as the login box. Problem is, cos of the applet sandbox problem (i think), I cant get the applet to talk to the LDAP server, even though theyre on the same domain.
ie, my applet comes from;
thiscomputer.myserver.com
and the ldap server is
ldap.myserver.com
how do people do this normally??? Obviously altering the security properties of everyones JRE is out the question. What do people normally do - must I use forms and servlets instead??
Thanks for you help
mike
 
Tim Holloway
Saloon Keeper
Posts: 18359
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As you've discovered, Java encourages the 3-tier approach. It's a pain, since you have to do more design and programming work, but is actual a more robust way of doing things on an enterprise scale.
Besides, if the purpose is top authenticate to a web site, it's better if security is built into the site itself. Clients can be hacked MUCH more easily. The the site is a Java webapp, consider using JAAS. That way the security is builtin. You should be able to have JAAS use LDAP as the authenticator and role definer.
 
Mike Br
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tim I'll have a look at that
mike
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic