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

Forums / Security / All Users Missing First Page

All Users Missing First Page

9 posts, 0 answered
  1. RSewell
    RSewell avatar
    54 posts
    Registered:
    25 Apr 2007
    22 Feb 2011
    Link to this post
    We're using the Telerik Active Directory membership provider, based on Gabe's webinar, and this seems to be mostly working.  However, the first page of users is missing in the All Users list of User.aspx.  Also, it says there are 18 pages of users, but page 18 is blank.  It's almost like the user list is being shifted left by 20, causing the first 20 to disappear.

    Where can I go to troubleshoot this?  The user list is populated into GridView1 on Users.aspx, but the page doesn't define the grid's datasource as far as I can tell.  How can I verify it is correct, or if some error is causing it to lose the first 20 entries?  I don't see any obvious places to set a breakpoint to watch how it populates the gridview.

    Are there any AD entries that might cause it to throw an error?

    Also, is it possible to add a filter on the LDAP results to objectClass=user, or maybe sAMAccountType=805306368?
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    28 Feb 2011
    Link to this post
    Hello RSewell,

    Thank you for using our services.

    Can you please let us know exactly which version of Sitefinity you are using? We have tried to reproduce the issue with configuration described in this help article. There you can see the definitions you can provide for the membership provider declaration. You can apply filters such as userDefinitionFilter="sAMAccountType=805306368"


    Best wishes,
    Radoslav Georgiev
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. RSewell
    RSewell avatar
    54 posts
    Registered:
    25 Apr 2007
    01 Mar 2011
    Link to this post
    Hi, Radoslav.

    We are running Sitefinity 3.7.2057.2:1.

    We are using a custom roleProvider, based on Gabe's webinar and notes on his web site.  I've followed the execution when I log into Sitefinity and click on Administration > Users, but it only enters GetRolesForUser (for my username) and then GetUsersInRole for each role we've defined.  This doesn't seem to be part of pulling up the full user list, as far as I can tell.

    As I mentioned before, we are using the Telerik Active Directory membership provider, defined in web.config as:
    <membership defaultProvider="Sitefinity" userIsOnlineTimeWindow="15" hashAlgorithmType="">
        <providers>
            <clear/>
            <add name="Sitefinity"
                connectionStringName="ActiveDirectorySvc"
                connectionUsername="SESAC\anAdminAccount"
                connectionPassword="************"
                enableSearchMethods="true"
                attributeMapUsername="sAMAccountName"
                type="Telerik.Security.ActiveDirectory.TelerikADMembershipProvider, Telerik.Security"/>
        </providers>
    </membership>

    I suspect that it is code in the membership provider that pulls the list of users from AD, but am having trouble finding where to add a breakpoint to see what list it's returning and/or how the list is added to the page.

    I cannot find a list of membership provider attributes.  Does it also accept something like userDefinitionFilter="sAMAccountType=805306368"?

    Thanks,

    Robert
  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    08 Mar 2011
    Link to this post
    Hello RSewell,

    Does it also accept something like userDefinitionFilter="sAMAccountType=805306368"?
    Yes.
    We are actually just extending the standard LDAP provider implemented by Microsoft. I may send you parts of our implementation if this will help.

    Greetings,
    Georgi
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  5. RSewell
    RSewell avatar
    54 posts
    Registered:
    25 Apr 2007
    14 Mar 2011
    Link to this post
    Hi, Georgi.

    I get the error "Attribute not recognized 'userDefinitionFilter'" when I add the line userDefinitionFilter="sAMAccountType=805306368" to the <membership> section of web.config.  And it doesn't make sense in the rolemanger section, since this part doesn't use Active Directory roles.  But that's a secondary question.

    The main problem is still there, I'm still missing the first page of users.  Where can I troubleshoot this at?  Are there any AD entries that might cause it to throw an error, such as accounts that begin with an underscore?

    Robert Sewell
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    15 Mar 2011
    Link to this post
    Hello RSewell,

    You can check all available properties of the AD provider using the links below

    • http://www.sitefinity.com/help/developer-manual/telerik.security-telerik.security.activedirectory.telerikadroleprovider_properties.html
    • http://www.sitefinity.com/help/developer-manual/active-directory.html
    Sitefinity is an acceptor of the AD, so the users that are displayed in the GridView are pass from the AD provider directly.
    All the best,
    Ivan Dimitrov
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  7. RSewell
    RSewell avatar
    54 posts
    Registered:
    25 Apr 2007
    16 Mar 2011
    Link to this post
    "Sitefinity is an acceptor of the AD, so the users that are displayed in the GridView are pass from the AD provider directly."

    Right.  Where does this happen?  Where in the code can I watch the GridView being populated?  Why does it not load the first 20 users, and leave the last page blank?
  8. RSewell
    RSewell avatar
    54 posts
    Registered:
    25 Apr 2007
    17 Mar 2011
    Link to this post
    Is this an issue I should open a support ticket on?  Is it something you can and will help me with?
  9. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    18 Mar 2011
    Link to this post
    Hello RSewell,

    I saw that you opened a support ticket, so we will keep the discussion there. The GridView is populated by a datasource that comes from your AD, so the problem is most probably related to the implementation you have.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
Register for webinar
9 posts, 0 answered