Show Changes Show Changes
Print Print
Recent Changes Recent Changes
Subscriptions Subscriptions
Lost and Found Lost and Found
Find References Find References
Rename Rename
Administration Page Administration Page
Search

History

9/19/2008 6:09:44 AM
FLWCOM-jwdavidson
7/23/2008 12:25:23 PM
-216.80.67.135
7/23/2008 12:23:06 PM
-216.80.67.135
12/21/2007 12:12:52 PM
-66.131.28.148
10/5/2007 10:28:05 AM
-170.211.216.8
List all versions List all versions

RSS feed for the FlexWiki namespace

Access Control
.
Summary

Using Windows Authentication

As described in AuthenticationOptions, Windows Authentication is great for Intranet applications where all users have accounts that are known to the web server. Usually these will be domain accounts but they can also be machine accounts.

Even in an Internet setting, Windows Authentication wins as the quick and secure way to control access to FlexWiki content.

The steps are:

  1. Make web.config changes to select Windows authentication, deny anonymous users, and impersonate identity.
  2. Configure IIS to disable "Anonymous access".
  3. Change the ACLs on the files and folders under the namespace root that you want restricted.

Step 1: web.config changes.

 <configuration>
    <system.web> 
       <authentication mode="Windows" />
        <authorization> 
           <deny users="?"/>
        </authorization>
        <identity impersonate="true" />

Step 2: IIS changes.

Its important to disable anonymous access on the root of the FlexWiki web site. It may be tempting to only restrict access on specific folders and files under the WikiBases folder, but that leads to eratic behavior.

The content is accessed by application file read and write operations, not by IIS directly. Authentication may not be triggered by these file operations wich means users won't have access to the pages you expect them to or will be able to read but not edit.

Step 3: Change ACLs.

Set the Security properties (ACLs) on the files and folders under the namespace root to reflect your desired access policy.

Open the file or folder Properties dialog and click Advanced on the Security tab.

Uncheck the "Inherit from parent..." check box.

Click Remove to remove all the existing ACL entries.

Click OK to committ the changes.

Click Yes to the "You have denied everyone..." warning.

And make sure to add the users and groups you want to allow access.

For read only access give them Read & Execute, List Folder Contents, and Read.

For write access as well, also check Write.

Notes on the limitations of Windows Authentication.

The biggest limitation is that it will not work for all internet users. To work, you must be using IE 5.x or later, you must not be located behind a proxy and firewall (a shared cable modem connection seems to work fine), and you must have a way of providing user accounts to all users.

It's unfortunate but the login dialog doesn't support changing passwords.

Another problem is that if you switch to storing your wiki in a SQL database that the windows authentication won't work anymore.

Note
Question
Answer
When I connected to my FlexWiki test installation with IE 6 on Windows XP SP2, I did not supply any credentials. The browser was configured to automatically pass on my Windows logon credentials. With Firefox 1.0.6, I did have to enter my credentials. -- JimmySieben [17-Aug-05]
Question
Answer
That is the behavior I am getting with IE 6 on Windows XP SP2 and Firefox 1.0.6, with FlexWiki 1.8.0.1677 running on Windows Server 2003 with IIS (6?) installed.
Note
Question
Answer
Question
I tried using the authentication feature in FlexWiki to authenticate users on an intranet. When I tried restricting write access for a particular account, i found out that the restricted account can still edit FlexWiki pages? Can anyone give me any idea on how to restrict editing access for an account? Thanks
Note

Not logged in. Log in

Welcome to the home of FlexWiki, a collaboration tool, based on WikiWiki, implemented using Microsoft .NET technologies

This is FlexWiki, an open source wiki engine.

This site supports the new NoFollow anti-spam initiative.
Change Style

Recent Topics