20020825 Sunday August 25, 2002

Private Weblogs in Roller I've used a "quick and dirty" technique for making a private roller weblog for family members only. Maybe Lance can use this to create a private weblog for his mom ;-)

  1. Create a new roller user: i.e. "mom"
  2. Create a user for user's to login with (I just created another roller user): i.e. "kids"
  3. Add a new role (i.e. "family") to the "role" table in your database
  4. Add two new records to the role table so the "mom" and "kids" roles have the "family" role
  5. Add the following to web.xml:

    <security-constraint> 
        <web-resource-collection>
            <web-resource-name>My Family</web-resource-name>
            <description>Restricted to Family Members Only</description>
            <url-pattern>/page/mom/*</url-pattern>
            <url-pattern>/rss/mom</url-pattern>
            <http-method>POST</http-method>
            <http-method>GET</http-method>
        </web-resource-collection>
    
        <auth-constraint>
            <role-name>editor</role-name>
            <role-name>family</role-name>
        </auth-constraint>
    </security-constraint>
    
  6. Distribute the "kids" username/password to the appropriate parties.

Hope this helps! Posted in Roller at Aug 25 2002, 03:19:54 PM MDT 2 Comments

Comments:

your steps 3 and 4 re. creating a new role to be called "family" and making "momfamily" and "kidsfamily" entries in userrole table; how do you do these two steps?

now that, this is a comment i added in sep 27, 2004 on your original posting dated aug 25, 2002, how would you get to know about this? how would you ever read this and reply to this?

am i being naive or silly writing this comment?

hope you do respond to this somehow!!

thanks.

Posted by gary raghavan on September 27, 2004 at 06:09 PM MDT #

If you look at the userrole table using SQL - you should see how columns are laid out. Simply use SQL to insert new roles and usernames. If you're using MySQL - MySQL Administrator is a nice graphical tool.

Posted by Matt Raible on September 27, 2004 at 06:20 PM MDT #

Post a Comment:
  • HTML Syntax: Allowed
Click me to subscribe
Matt Raible is a Web Architect who enjoys developing applications with open source technologies. Contact me for rates.
« January 2009
SunMonTueWedThuFriSat
    
1
2
3
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
       
Today

Recent Entries

Tag Cloud