Doug's Resume
OO Lexicon
Chat with Doug!
Recent Entries
You may also be interested in...

heaters
hotels boeken in 7 sec
Engagement Rings
Online Dating Australia




SURF'S UP!
You:
Your Web Site:
<< May, 2008 >>
SMTWTFS
123
45678910
11121314151617
18192021222324
25262728293031
Search Blog

ColdFusion Jobs
Recent Comments
Re: The Perfect Alternative to Gas Powered Vehicles (by Thomas Messier at 5/09 12:47 PM)
Re: Promoting Family Unity: Lowering Your Utility Bills! (by Fernando Lopez at 5/07 10:12 PM)
Re: Why I Hate ORMs (a solicited rant) (by Richard at 5/06 10:56 AM)
Re: Why I Hate ORMs (a solicited rant) (by dougboude at 5/06 10:27 AM)
Re: Why I Hate ORMs (a solicited rant) (by Richard at 5/06 6:50 AM)
Re: Why I Hate ORMs (a solicited rant) (by Sean Corfield at 5/06 1:40 AM)
Re: Why I Hate ORMs (a solicited rant) (by Steve Bryant at 5/05 5:07 PM)
Re: Why I Hate ORMs (a solicited rant) (by dougboude at 5/05 4:36 PM)
Re: Why I Hate ORMs (a solicited rant) (by Mark Mandel at 5/05 3:52 PM)
Re: Why I Hate ORMs (a solicited rant) (by dougboude at 5/05 3:42 PM)
Categories
Archives
Photo Albums
Funnies (5)
Family (3)
RSS
Reciprocal Links

Powered by
BlogCFM v1.11

29 August 2006
Easy Security for Canvas Wiki
with auto-author population
I'm sure we here at my day job aren't the only ones who are using Ray Camden's Canvas Wiki and wish that those who author and edit pages within it didn't have to type their names in every time. Well leave it to my brilliant coworker Doug Sims to have implemented a slick, surgical way to incorporate both security and automatically capture the correct author/editor. The basic steps are:
  1. Enable IIS Challenge/Response on the web directory where Wiki lives;
  2. Modify one line in one file of the Wiki

Okay, if you have to do it yourself (and don't have a shining infrastructure department who manages your web servers), enabling security on the wiki directory is a snap.

  • Go to the IIS Admin, navigate to your wiki directory, right click and click Properties.
  • Click the Directory Security tab, then click the Edit button in the "Authentication and access control" section.
  • In the "Authentication Methods" window, uncheck the "Enable Anonymous acess" box and make sure that "Integrated Windows authentication IS checked.
  • Hit 'Okay', then 'Apply' and close out the IIS admin.
Screenshot of the IIS Admin:

Whenever a user navigates to the wiki web directory now, they will be asked for their username and password (it'll be the same one they use to log into their machine on the network). They may also have to append the network domain name to their username, as in the following example where user 'DBoude' is on the BPL domain: BPL\DBoude

For step 2, open the wiki template Views/dsp.edit.cfm. Somewhere around line 50 to 59, find the table row for author, and change it to this:

<tr>
    <td>
    Author:
    </td>
    <td><input type="text" name="author" value="#listlast(cgi.auth_user, "\")#"></td>
</tr>

That's it!

 




Posted by dougboude at 5:45 PM | PRINT THIS POST! |Link | 1 comment
Subscription Options

You are not logged in, so your subscription status for this entry is unknown. You can login or register here.

Re: Easy Security for Canvas Wiki
Nice. Another way to do prevent folks from having to re-enter stuff would be to use cookies. I may add that.

I'm also considering adding a real user system to Canvas. Would that be useful?
Posted by Raymond Camden on August 30, 2006 at 10:08 AM

Name:   Required
Email:   Required your email address will not be publicly displayed.

Want to receive notifications when new comments are added? Login/Register for an account.

Time to take the Turing Test!!!

What letter comes three place(s) before the letter Q?
Type your answer exactly three time(s) in the designated box.

Type in the answer to the question you see above:

Your comment:

Sorry, no HTML allowed!