More in this section

Forums / Developing with Sitefinity / Using Active Directory with Forum Email Subscriptions

Using Active Directory with Forum Email Subscriptions

2 posts, 0 answered
  1. MNP
    MNP avatar
    79 posts
    23 Apr 2008
    14 Jan 2010
    Link to this post
    This is more of a FYI, if people are planning to follow the awesome post by Ivan on how to Implement forum subscriptions - here

    Internally we use Sitefinity as an Internal Web type of application. We use Active Directory to authenticate the user and give them a variety of information. When following Ivan's post, one of the errors I was getting was that GUID was emtpy for the user. This of course makes sense as we weren't using Sitefinity as the Membership Provider

    So instead of ProviderUserKey being a GUID, it is actually a SecurityIdentifier - see

    Dim user As ActiveDirectoryMembershipUser = Membership.GetUser(uName) 
    Dim sidValue As System.Security.Principal.SecurityIdentifier 
    sidValue = CType(user.ProviderUserKey, System.Security.Principal.SecurityIdentifier) 

    This does change the database table slightly. Instead of using UserID as an Indentifier column, we now switch it to be a string.

    Hope this helps somebody in the future. Thanks Sitefinity for posting the detailed example.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    14 Jan 2010
    Link to this post
    Hello Matt,

    Thank you for your input.

    Active Directory can work with Guids as well, but this depends on the configuration you have. Generally you may have objectGUID and objectSID.

    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
2 posts, 0 answered