Re: Why are administrator username and password required at runtime to connect to DB?
u specify the admin username and password in the data-source.xml. - Original Message - From: Daniel Huang To: Orion-Interest Sent: Thursday, March 28, 2002 8:12 AM Subject: Why are administrator username and password required at runtime to connect to DB? I have setup Orion and it works for me. However, I think I missed something in the configuration files. My client can connect to any EJB objects. The EJB objects talk to the DB. When an EJB object tries to connect to the DB, Orion always prompts a window that requires the administrator username and password. I have to enter the administrator username and password to run the EJB. I think there must be a place that I can specify username and password but I do not know where. Anyone can help me? Thanks in advance. Daniel Huang
RE: Login username and password:-LDAP DOUBT.
Dear elephantwalker, Another great article. A lot of thanks for the help. I have a doubt.Is this ldap(light weight directory access protocol) means restricting access to a particular directory as we are doing with Orion in this article? thanks, Prasanth. >From: "The elephantwalker" <[EMAIL PROTECTED]> >To: "Orion-Interest" <[EMAIL PROTECTED]>, ><[EMAIL PROTECTED]> >Subject: RE: Login username and password >Date: Sun, 3 Mar 2002 15:27:17 -0800 > >Dear Prasanth, > >I have put together a simple set of lessons for user security...not to be >confused with personalization. > >http://www.elephantwalker.com/rfa?id=404 > >You will need a password to see this, but its free to join the >elephantwalker. I hope the lessons are easy to understand...after the first >two lessons, you can configure your web application for login. > >Regards, > >the elephantwalker >www.elephantwalker.com > > >-Original Message- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED]]On Behalf Of prasanth sb >Sent: Sunday, March 03, 2002 3:05 AM >To: Orion-Interest >Subject: Login username and password > > >Dear friends, > I have seen in many application servers a login username and >password popping up for the entry allowing to the site. Will some one >help in getting the informations regarding this with orion application >server.Wish a good day. >thanks, >Prasanth > >_ >MSN Photos is the easiest way to share and print your photos: >http://photos.msn.com/support/worldwide.aspx > > > _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
Re: Login username and password
Hi Scott, Thanks a lot for the information. thnks, Prasanth >From: Scott Farquhar <[EMAIL PROTECTED]> >To: Orion-Interest <[EMAIL PROTECTED]>, [EMAIL PROTECTED] >Subject: Re: Login username and password >Date: Mon, 04 Mar 2002 10:04:25 +1100 > >Prasanth, > >This article may help you: > http://kb.atlassian.com/content/atlassian/howto/securingdirectory.html > >Cheers, >Scott > >Scott Farquhar :: [EMAIL PROTECTED] > >Atlassian :: http://www.atlassian.com > Supporting YOUR J2EE World > >prasanth sb wrote: > >>Dear friends, >> I have seen in many application servers a login username and >>password popping up for the entry allowing to the site. Will some one >>help in getting the informations regarding this with orion application >>server.Wish a good day. >>thanks, >>Prasanth >> >>_ >>MSN Photos is the easiest way to share and print your photos: >>http://photos.msn.com/support/worldwide.aspx >> >> >> > > >-- > _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com
RE: Login username and password
Dear Prasanth, I have put together a simple set of lessons for user security...not to be confused with personalization. http://www.elephantwalker.com/rfa?id=404 You will need a password to see this, but its free to join the elephantwalker. I hope the lessons are easy to understand...after the first two lessons, you can configure your web application for login. Regards, the elephantwalker www.elephantwalker.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of prasanth sb Sent: Sunday, March 03, 2002 3:05 AM To: Orion-Interest Subject: Login username and password Dear friends, I have seen in many application servers a login username and password popping up for the entry allowing to the site. Will some one help in getting the informations regarding this with orion application server.Wish a good day. thanks, Prasanth _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx
Login username and password
Dear friends, I have seen in many application servers a login username and password popping up for the entry allowing to the site. Will some one help in getting the informations regarding this with orion application server.Wish a good day. thanks, Prasanth _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx
RE: Username and Password
Hi All, Thanks for your responses. They were very helpful. Joanne
RE: Username and Password
Dear Joanne, String username = request.getRemoteUser(); That does the trick for me. As far as the password, this is what I do. Protect a servlet or jsp(lets say /login) where you want to get the vital information from within your web.xml. Since you have already used form-based authorization...you know how to do this. Lets say the servlet is /login, from within the post (because all processing of form-based stuff is post) processing, you can do this: String username = request.getRemoteUser(); String password = request.getParameter("j_password"); And then you can do stuff with this (for example, encrypt the password and username, and create some authorization cookies). After you do stuff, you can forward to other protected resources. This is all assuming you already have a user. If you want to programatically create a user, you use the roleManager interface to do this (by using roleManager, you can change your usermanager later without having to change any code). RoleManager manager = (RoleManager)new InitialContext().lookup("java:comp/RoleManager"); Principal principal = manager.createPrincipal(username,password,) you can also add principals to various roles with manager.addToRole(principal,role); or remove from role manager.removeFromRole(principal,role); You can even programatically log somebody in... manager.login(username,password); or even remove the user manager.remove(principal); Its really quite flexible. A little like JAAS, but easier to use. Regards, the elephantwalker www.elephantwalker.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Christian, Joanne Sent: Wednesday, February 06, 2002 9:30 AM To: Orion-Interest Subject: Username and Password HI All, I'm new to J2EE and Orion. I have set up form-based authorization using DataSourceUserManager. Super! >From my initial jsp and/or servlet (not the login page), I would like to access the username of the person who just logged in. How can I do this? I have tried to get attributes from the ServletContext an the session. I have also tried various other things I'd rather not mention . . . So: How can I access the values of j_username and j_password once the user has been logged in? Also, where and what is j_security_check? Thanks, Joanne
RE: Username and Password
You can get the user name for the request like this: request.getRemoteUser() I think, by design, you are not able to get the password from the container. You can however, use the request.isUserInRole() method to see what role they are in. Otherwise, you'll need to access your DB for the password. Marc -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Christian, Joanne Sent: Wednesday, February 06, 2002 12:30 PM To: Orion-Interest Subject: Username and Password HI All, I'm new to J2EE and Orion. I have set up form-based authorization using DataSourceUserManager. Super! >From my initial jsp and/or servlet (not the login page), I would like to access the username of the person who just logged in. How can I do this? I have tried to get attributes from the ServletContext an the session. I have also tried various other things I'd rather not mention . . . So: How can I access the values of j_username and j_password once the user has been logged in? Also, where and what is j_security_check? Thanks, Joanne
RE: Username and Password
HttpServletRequest.getUserPrincipal().getName() should do the trick. Jeff Schnitzer [EMAIL PROTECTED] > -Original Message- > From: Christian, Joanne [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 06, 2002 9:30 AM > To: Orion-Interest > Subject: Username and Password > > HI All, > > I'm new to J2EE and Orion. I have set up form-based authorization using > DataSourceUserManager. Super! > > From my initial jsp and/or servlet (not the login page), I would like to > access the username of the person who just logged in. > > How can I do this? I have tried to get attributes from the ServletContext > an the session. I have also tried various other things I'd rather not > mention . . . > > So: > How can I access the values of j_username and j_password once the user has > been logged in? > > Also, where and what is j_security_check? > > > Thanks, > > Joanne
RE: Username and Password
Most of this material is not specific to Orion but defined in the J2EE specs. Part of the process is that j_username, etc are effectively 'special values' recognized by the app server when doing authentication, so you really won't ever have access to these values. But since it is defined in the spec there are very simple and standardized ways of getting some information. request.getRemoteUser() will tell you the username of the current login, and request.isUserInRole(somegroup) will tell you if the user is in a particullar role. I don't belive there is any standard way to find their password though (and you probably wouldn't want there to be if you were security minded). -Original Message- From: Christian, Joanne [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 9:30 AM To: Orion-Interest Subject: Username and Password HI All, I'm new to J2EE and Orion. I have set up form-based authorization using DataSourceUserManager. Super! >From my initial jsp and/or servlet (not the login page), I would like to access the username of the person who just logged in. How can I do this? I have tried to get attributes from the ServletContext an the session. I have also tried various other things I'd rather not mention . . . So: How can I access the values of j_username and j_password once the user has been logged in? Also, where and what is j_security_check? Thanks, Joanne
RE: Username and Password
Would you please take me off your email list. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Christian, Joanne Sent: Wednesday, February 06, 2002 9:30 AM To: Orion-Interest Subject: Username and Password HI All, I'm new to J2EE and Orion. I have set up form-based authorization using DataSourceUserManager. Super! >From my initial jsp and/or servlet (not the login page), I would like to access the username of the person who just logged in. How can I do this? I have tried to get attributes from the ServletContext an the session. I have also tried various other things I'd rather not mention . . . So: How can I access the values of j_username and j_password once the user has been logged in? Also, where and what is j_security_check? Thanks, Joanne
Username and Password
HI All, I'm new to J2EE and Orion. I have set up form-based authorization using DataSourceUserManager. Super! >From my initial jsp and/or servlet (not the login page), I would like to access the username of the person who just logged in. How can I do this? I have tried to get attributes from the ServletContext an the session. I have also tried various other things I'd rather not mention . . . So: How can I access the values of j_username and j_password once the user has been logged in? Also, where and what is j_security_check? Thanks, Joanne