This is how I did it...
I built an ASP.NET 2.0 (or higher) application before I even knew YAF existed. I used Forms Authentication to restrict access to 3 subdirectories;
~/guest/,
~/member/ and
~/admin/.
Guest is accessible to anyone, logged in or not.
Member is accessible to my 'Member' or 'Admin' role.
Admin is accessible only by 'Admin' role.
These permissions are set by adding a custom
web.config file to each directory. If you're unsure how to do this, have Visual Studio do it for you. Select Project -> ASP.NET Configuration -> Security -> Create access rules. Create a rule and it will automatically create a web.config in the appropriate directory which you can then analyze and figure out how it works.
Then, when I discovered YAF, I simply put it into
~/members/forum/ and I'm done. My own authentication and login controls are being used and I could basically leave YAF wide-open (although I did go through and define permissions in YAF also).
www.bunkerhollow.com |
www.careercomputing.com
When I post
fp:mddubs in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Mek 🙂, who stole this off Ederon 🙂 )