More in this section
Forums / Bugs & Issues / Active Direcotry Groups within Groups

Active Direcotry Groups within Groups

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. MNP
    MNP avatar
    79 posts
    23 Apr 2008
    19 Feb 2009
    Link to this post
    I've got AD to work perfectly in Sitefinity but am having a few issues when adding groups. The problems seems to be when I try to load a group through Administrations->Users->Users By Role.

    If I click on a role that has just users in it, it works ok. However, if I load up a group that has a group as a member, I get an Object Reference error.

     Object reference not set to an instance of an object. 
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. 
    Source Error: 
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 
    Stack Trace: 
    [NullReferenceException: Object reference not set to an instance of an object.] 
       Telerik.Security.ActiveDirectory.TelerikADMembershipProvider.GetUser(String username, Boolean userIsOnline) +67 
       Telerik.Security.UserManager.GetUser(String username, Boolean userIsOnline) +62 
       Telerik.Security.UserManager.GetUser(String username) +45 
       Telerik.Security.UserManager.GetUsersInRole(String roleName, Int32 from, Int32 maxRows, String sortExpr, Int32& totalRows) +404 
       Telerik.Security.WebControls.UsersDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +502 
       System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +19 
       System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142 
       System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73 
       System.Web.UI.WebControls.GridView.DataBind() +4 
       Telerik.Security.WebControls.ManageUsers.BindUsers(Boolean dataChanged) +676 
       Telerik.Security.WebControls.ManageUsers.BindUsers() +52 
       Telerik.Security.WebControls.ManageUsers.FindUsersByRole(String roleName) +189 
       Telerik.Security.WebControls.ManageUsers.commandPanel_SpecialCommand(Object sender, CommandEventArgs e) +239 
       Telerik.Security.WebControls.UsersCommands.OnSpecialCommand(CommandEventArgs e) +166 
       Telerik.Security.WebControls.UsersCommands.repeater_ItemCommand(Object source, RepeaterCommandEventArgs e) +81 
       System.Web.UI.WebControls.Repeater.OnItemCommand(RepeaterCommandEventArgs e) +108 
       System.Web.UI.WebControls.Repeater.OnBubbleEvent(Object sender, EventArgs e) +68 
       System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 
       System.Web.UI.WebControls.RepeaterItem.OnBubbleEvent(Object source, EventArgs e) +123 
       System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 
       System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +118 
       System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +135 
       System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175 
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565 

    Is there anything you can do about this, or is this just a limitation of the role provider?


  2. Georgi
    Georgi avatar
    3583 posts
    28 Oct 2016
    20 Feb 2009
    Link to this post
    Hi Matt,

    Unfortunately we are not able to replicate the issue. We followed exactly the same steps as you have described. Such error may occur if you have invalid user name in the active directory.
    We suggest you override the GetUsers method in order to get it working with group members as well. You can check if the member you load is a group, and recursively call GetUsers again for this group.

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
2 posts, 0 answered