Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • azam 4 posts 24 karma points
    Jun 18, 2012 @ 15:11
    azam
    0

    ldap connectivity of AD with Umbraco CMS

    ihi
    I need to configure my ldap connectivity of AD with my umbraco backoffIice login screen.
    The user from AD directory needs to be authenticated before the user logins to umbraco cms backoffice.

    This is the structure currently in AD directroy

    Y IS LDAP SERVER address

    DC=A,DC=COM
                                 ou=B
                                          ou=C
                                                     ou=Groups

                                                                          cn=testgroup
                                                     ou=Users
                                                                          cn=testuser

    My user resides inside ou=Users with name as testuser.The user is  added inside "testgroup" group under ou=Groups.


    I have added the following changes in web.config of file

    1)I have added the following changes in <connectionStrings> of web.config file
    <connectionStrings>
    <add name="ADConnectionString" connectionString="LDAP://Y.com:389/OU=Users,OU=C,OU=B,DC=A,DC=com" />
    </connectionStrings>

    2)I have added the following changes in <providers> of web.config file
    <membership defaultProvider="MyADMembershipProvider" userIsOnlineTimeWindow="15">
          <providers>
            <clear />
            <add name="MyADMembershipProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ADConnectionString"  connectionUsername="domain\username" connectionPassword="password" attributeMapUsername="sAMAccountName"/>
                      

            <add name="UmbracoMembershipProvider" type="umbraco.providers.members.UmbracoMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Another Type" passwordFormat="Hashed" />
            <add name="UsersMembershipProvider" type="umbraco.providers.UsersMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" passwordFormat="Hashed" />

          </providers>
        </membership>

    3)I have added the assembly System.Web used in MyADMembershipProvider in assemblies section of web.config.

     <compilation defaultLanguage="c#" debug="false" batch="false"  targetFramework="4.0">
     <assemblies>
            <!-- ASP.NET 4.0 Assemblies -->
            <add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
            <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
            <add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add assembly="System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Data.DataSetExtensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
          </assemblies>


    I have made following changes in umbracoSettings.cfg file

    <providers>
            <users>
              
                <DefaultBackofficeProvider>MyADMembershipProvider</DefaultBackofficeProvider>
            </users>
        </providers>


    The issue I am facing is when I am trying to login with username:domain\username and password:password at umbraco login interface.
    It focus back to username and password field highlighted in red.Kindly suggest how to trouble shoot the issue in umbraco as I am not getting errors.
    Please share any approach or changes i need to make to web.config and umbracoSettings.cfg

     

     

     

     

  • Bjørn Fridal 274 posts 784 karma points
    Oct 08, 2013 @ 00:05
    Bjørn Fridal
    0

    Hi Azam,

    I am facing a similar requirement. Did you ever get a working solution up and running?

    Cheers
    Bjørn Fridal 

Please Sign in or register to post replies

Write your reply to:

Draft