Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 12-19-2006
SteveHicks SteveHicks is offline
Registered User
 
Name: Steve Hicks
Organization: KBC FP
Project: Ice Java
 
Join Date: Dec 2006
Posts: 1
Simple password security

I'm looking at adding a simple user name / password security check to my Ice server (in Java), passing the credentials in the context for each call. Is there some way I can add the checking code in a generic way (in an interceptor or plugin), rather than having to put the same line at the start of each one of my implemented methods? Is there a way to hook in to e.g. the __dispatch method? Or can you recommend a better way to do password-based security (using SSL and certificates would be overkill)?

Cheers,

Steve
Reply With Quote
  #2 (permalink)  
Old 12-19-2006
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
Welcome to our forums. Can you please update your organization, and, if possible, also the project you are working on in your profile settings.
Reply With Quote
  #3 (permalink)  
Old 12-19-2006
matthew's Avatar
matthew matthew is offline
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,061
Doing access control in every method as you've discovered is a pretty difficult and inefficient way to go about doing things. Its far better to use some authentication method at a single point (for example, upon session creation) and then give the authenticated user access to the backend objects. You can look at the session demo to see how you might go about doing something like this. An alternative would be to use Glacier2 which already does this for you.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Do IEC-E support SSL or other security function? wekid Help Center 1 10-13-2006 05:01 AM
How to compile simple program using ICE in VC 6.0? AlexKom Help Center 2 07-06-2005 12:37 AM
Simple Ice Pack Demo Narendranath Help Center 2 06-17-2005 10:22 AM
Security on local network andre Help Center 0 11-23-2004 11:02 PM
suggest for Security of ice dragzhb Comments 8 07-12-2004 11:24 PM


All times are GMT -4. The time now is 01:47 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.