> Cool!  That solved my problem.
> 
> Thanks for the quick response Marcus.
> 
> I found it difficult in the documentation to figure out which tags are
> nested inside which.  It might be useful to have some kind of visual
> indicator of how the tags should be nested, such as a vertical line, or a
> tree view.  Just displaying the closing tags for all start tags probably
> would help to figure out where things start and finish.
Yes, this (closing tag) has been suggested by others too and will change. Thanks
for the input.

> I am running 0.7.4 -- I'll upgrade to the latest version.  Is 0.7.6
> available on the site? I see only 0.7.5b.
Yes, 0.7.6 is the currently downloadable one. We apologize for the lagged
website update.

> Next question:  Do I have to define my users in the principals.xml file?
> I'd like to leave them in a database table, and point Orion to look at that.
> Can this be done?
Yes, funny you should bring it up, Orion supports a pluggable UserManager
interface, and will ship with with four core implementations of which three
are present in the current release: XMLUserManager (default), EJBUserManager
and DataSourceUserManager (LDAPUserManager is the fourth, missing one).

The API/configuration format for the managers will be added to the next release (0.7.7)
along with examples of how to access them from the client-side.

Meanwhile, here is some example syntax for the config file (web-application.xml) when
using one:

 <user-manager class="com.evermind.sql.DataSourceUserManager">
  <init-param>
   <param-name>dataSource</param-name>
   <param-value>/jdbc/DefaultDS</param-value>
  </init-param>

<!-- Optional attributes follows -->
  <init-param>
   <param-name>defaultGroups</param-name>
   <param-value>users, guests</param-value>
  </init-param>
 </user-manager>

(there are three more attributes for this particular user-manager too btw: tableName, 
usernameField and passwordField.
They probably dont they need a closer explenation)

Have a nice day! :)

/Magnus Stenman, the Orion team
 
> 
> Darren.
> 
> 
> --
> Darren Gibbons                                    [EMAIL PROTECTED]
> OpenRoad Communications                               ph: 604.681.0516
> Internet Application Development                     fax: 604.681.0916
> Vancouver, B.C.                                 http://www.openroad.ca
> ----- Original Message -----
> From: Magnus Stenman <[EMAIL PROTECTED]>
> To: Darren Gibbons <[EMAIL PROTECTED]>; Orion Interest
> <[EMAIL PROTECTED]>
> Sent: Friday, October 08, 1999 1:28 AM
> Subject: RE: Problems setting up authentication
> 
> 
> > Hi, you almost got it right, just move the auth-contraint outsite of the
> web-resource tag:
> >          <security-constraint>
> >                  <web-resource-collection>
> >                          <web-resource-name>Site</web-resource-name>
> >                          <description>Main security</description>
> >                          <url-pattern>/*.html</url-pattern>
> >                          <http-method>GET</http-method>
> >                  </web-resource-collection>
> >                  <auth-constraint>
> >                          <description>All users</description>
> >                          <role-name>intranet-users</role-name>
> >                  </auth-constraint>
> >          </security-constraint>
> >
> > Which version of the distro is this? 0.7.4 had a problem with displaying
> > realm names properly, it ignored the <realm-name> tag and only used
> > the <display-name> tag if present in the web-app.
> > Regarding the user authentication failing we have also just found a
> delegation
> > bug in 0.7.5 which might cause you problems if you are defining "global"
> > users/groups (/config/principals.xml) as opposed to local users to the
> > web-app (/my-site/principals.xml), is this the case?
> >
> > If it is then download the 0.7.6 patch (jar should be sufficient if you've
> got
> > a recent distro), let us know if the problem persists.
> >
> > /Magnus Stenman, the Orion team
> >
> > ----- Original Message -----
> > From: Darren Gibbons <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, October 08, 1999 7:00 AM
> > Subject: Problems setting up authentication
> >
> >
> > > Hi all,
> > >
> > > I'm trying to set up simple authentication (using Basic) using Orion,
> and
> > > I've run into some problems.  The documentation on this is somewhat
> sparse
> > > (I know, you're working on it...) but if someone could point me in the
> right
> > > direction, it would be appreciated.
> > >
> > > I've created a copy of the default-site directory called 'intranet', and
> > > modified it's web-site.xml file, and I've added the entry to the
> server.xml
> > > to load up the new site, which does load properly.  However, I can't get
> the
> > > site to authenticate.
> > >
> > > I added the following tags to the web-site.xml for the intranet virtual
> > > server.
> > >
> > >         <login-config>
> > >                 <auth-method>BASIC</auth-method>
> > >                 <realm-name>Foobar</realm-name>
> > >         </login-config>
> > >
> > >
> > >         <security-constraint>
> > >                 <web-resource-collection>
> > >                         <web-resource-name>Site</web-resource-name>
> > >                         <description>Main security</description>
> > >                         <url-pattern>/*.html</url-pattern>
> > >                         <http-method>GET</http-method>
> > >                         <auth-constraint>
> > >                                 <description>All users</description>
> > >                                 <role-name>intranet-users</role-name>
> > >                         </auth-constraint>
> > >                 </web-resource-collection>
> > >         </security-constraint>
> > >
> > >
> > >
> > >
> > >         <security-role>
> > >                 <description>Role security</description>
> > >                 <role-name>intranet-users</role-name>
> > >         </security-role>
> > >
> > >
> > > When I access the site (it's running on port 8080), I get the pop-up
> dialog
> > > box.  It states that the realm is:
> > >
> > > Realm: file:/C:/orion/intranet/web-application.xml
> > >
> > > I would have thought that it have stated Foobar for the realm, as
> defined
> > > above.  If I enter a userid and password that I identified in the
> > > principals.xml file, it denies that user.
> > >
> > > Any ideas?  I've included the web-site.xml file, the web-application.xml
> > > file, and the principals.xml file.
> > >
> > >
> > > Thanks,
> > >
> > > Darren.
> > >
> > >
> > >
> > >
> > > --
> > > Darren Gibbons                                    [EMAIL PROTECTED]
> > > OpenRoad Communications                               ph: 604.681.0516
> > > Internet Application Development                     fax: 604.681.0916
> > > Vancouver, B.C.                                 http://www.openroad.ca
> > >
> >

Reply via email to