+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Multiple LDAP sources

Multiple LDAP sources

3 posts, 1 answered
  1. Ted
    Ted avatar
    2 posts
    Registered:
    03 Jun 2016
    03 Jun
    Link to this post

    I'm working on a test setup attempting to use multiple LDAP sources. 

    Sitefinity is set up on a Windows 2012R2 server in a corporate AD Domain.  The default "LdapUsers" connection is setup and configured by default for that domain.  The users in the domain are various "administrators" of content and general administrators for Sitefinity administrator role.

     

    We've set up a trust relationship with an external domain that's in a DMZ.  This Microsoft AD DS domain is the location for the user accounts for our customers.

     

    Using knowledge I gathered from this post:  http://www.sitefinity.com/developer-network/forums/general-discussions-/custom-membership-provider

     

    I've done the following:

     

    Added a second LDAP connection named "ExtranetLDAP"

     

    Created a membership provider "ExtranetUsers".  With that membership provider, made sure to use the providertype "
    Telerik.Sitefinity.Security.Ldap.LdapMembershipProvider, Telerik.Sitefinity"

     

    Created two parameters for that membership provider "applicationName" and "connection".  For connection, I made the value "ExtranetLDAP". 

     

    Question, on the applicationName parameter, does it matter what the value is for the key?  Can it be the same value as the connection key from the "LdapUsers" membership provider?

     

    I then created a new role provider "ExtranetRoles".  With that membership provider, made sure to use the providertype "
    Telerik.Sitefinity.Security.Ldap.LdapMembershipProvider, Telerik.Sitefinity"

     

    I created two parameters, "applicationName" and "connection".  For connection, I made the value "ExtranetLDAP". 

     

    Same question on the role provider "applicationName" parameter.  Does the value have to be something specific or does it have to match something else?  Can it be the same value as the connection key from the "LdapRoles" provider?

     

    Thank you

     

     

  2. Velizar Bishurov
    Velizar Bishurov avatar
    143 posts
    Registered:
    01 Dec 2016
    08 Jun
    Link to this post
    Hello,

    For the role provider you need to use "Telerik.Sitefinity.Security.Ldap.LdapRoleProvider, Telerik.Sitefinity".

    The applicationName can be set to whatever you like. The important thing is that is the same for the Membership provider and the Role provider.

    The connection parameter serves to point which LDAP connection will be used. The name should correspond to a name of a connection under Security -> LDAP Settings -> LDAP Connections. Make sure it is the same for the role and membership providers.

    If the connection parameter is left blank it will use the default connection specified in Security -> LDAPSettings.

    Regards,
    Velizar Bishurov
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
    Answered
  3. Ted
    Ted avatar
    2 posts
    Registered:
    03 Jun 2016
    09 Jun in reply to Velizar Bishurov
    Link to this post
    Thank you
3 posts, 1 answered