You are probably missing application-client.xml, and orion-application-client.xml; they have to be in a META-INF directory relative to the source root of your client. You should be able to find the apropriate tags in the orion docs and on the sites referenced before.
In my own situation, I call RoleManager from an ejb which acts as a facade for my own security interface to make it independent from the underlying appserver (I like using Orion, but many potential clients require that it runs on the appserver of their choice ...) - so my xml files reference my Bean and not the RoleManager, which is called by my Orion-specific bean-Implementation. --peter -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 7:17 AM To: Orion-Interest Subject: Re(2): Application client log in Hi, Thanks for this interesting code, but when i try it , i can't make a lookup on the RoleManager : javax.naming.NameNotFoundException: java:comp/RoleManager not found Is there something special to parameter in the app server ? Thanks for your anwser. > You use the rolemanager to do the login ... SECURITY_PRINCIPAL and > credentials can be the orion admin account. > > > Hashtable env = new Hashtable(); > env.put("dedicated.connection","true"); > env.put("java.naming.factory.initial","com.evermind.server.ApplicationClien > tInitialContextFactory"); > env.put("java.naming.provider.url","ormi://myhost/myapp"); > env.put(javax.naming.Context.SECURITY_PRINCIPAL, > "someuserwithrmiprivilages"); // NOT the user you want to log in > env.put(javax.naming.Context.SECURITY_CREDENTIALS,"somepassword"); > > InitialContext initialcontext = new InitialContext(env); > RoleManager rolemanager = > (RoleManager)initialcontext.lookup("java:comp/RoleManager"); > > try > { > roleManager.login(username, password); > } > catch(Exception exception) > { > throw new SecurityException(exception.getMessage()); > } > > There is a lot of discussion about this in the archives and e.g. on the > Elephantwalkers site, as well as orionsupport and I think Atlassian. > -----Original Message----- > From: Randahl Fink Isaksen [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 07, 2002 8:22 AM > To: Orion-Interest > Subject: Application client log in > > > We are currently implementing a Java Swing client, and I am wondering how > to write the log in system. When not using http or form based log in (HTML) > and when you wish to let the client log in from a GUI interface (Swing), > which part of Orion is then used to hand over the username and password for > authorization? > > > Randahl