Git Product home page Git Product logo

orchard.activedirectoryauthorization's Introduction

Active Directory Authorization for Orchard

Orchard is a community driven content management system that allows users to rapidly create websites for the .NET platform. This module overrides the default authentication & authorization by using the currently logged in active directory user instead of requiring a user to authenticate using credentials.

How it works

This blog post contains more detail about why we built the module and how it works.

Status

An update (v1.2) is now available from the Orchard Gallery to solve issues with Orchard 1.8.x.

Versions

1.2

  • Fixed stack overflow exception caused by dependency to IMembershipService.
  • Updated project to target .NET 4.5.
  • Removed call to the method that has been removed (ContentManager.Flush).

Published on 7th March 2015

1.1

  • Fixed bug with active directory users having multiple Orchard users created.
  • Active directory users have an orchard user created for them no matter what role they have, instead of only being created when the user has access to the Admin dashboard.
  • Email address of the active directory user is saved on the Orchard user that is created.
  • Roles set on Orchard users in the administration area are now taken into account as well as AD user roles when checking user access to a permission.
  • Fixed bug with null reference exceptions occurring when the User on the context is null.
  • Fixed bug causing exception when the content item permission part is enabled on a content item.
  • Active directory user roles are checked against orchard roles, any matched roles are assigned to the orchard user that is created on active directory user's first visit.

Published on 3rd April 2013

1.0

Original Release.

Published on 17th October 2012

Installation

In order to install the module follow the steps below.

  1. Add the relevant roles in Orchard that your Active Directory users have. It is important that the name of the Orchard role matches the name of the role in your active directory. For example "MyDomain\MyContentManagerRole" should be both an AD and Orchard role.

  2. In the modules section in the administration dashboard for your Orchard install search the gallery for Active Directory Authorization and then download the module titled Active Directory Authorization. Ensure that you have completed the first step of adding the roles before you enable the module otherwise you may lock yourself out of the administration dashboard. If you have any problems installing the module through the Orchard Gallery then alternatively you can download and install this module manually following the instructions below.

  3. Once the module is installed and enabled, you need to setup IIS to enable windows authentication. On IIS7 and newer, open IIS and navigate to your Orchard website. Select the "Authentication" option, then enable "Windows Authentication", and have the rest as disabled.

  4. The final step is to change the authentication configuration in the Web.config of the root of your website, replacing the current configuration to use FormsAuthentication.

    <authentication mode="Windows" />
     <roleManager enabled="true" defaultProvider="AspNetWindowsTokenRoleProvider"/>
     

orchard.activedirectoryauthorization's People

Contributors

peterkeating avatar excommunicated avatar dannyt avatar hughknz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.