Copied to clipboard

Flag this post as spam?

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


  • Shea Daniels 8 posts 28 karma points
    Oct 30, 2009 @ 17:11
    Shea Daniels
    0

    Problem with Slashes in AD Username

    We are planning on using Umbraco as the CMS for our county government web site since we've been very impressed with it. We want to use Active Directory integration in the back office for the convenience factor, but we have multiple domains. So I wrote a custom membership provider that takes in a username in "domain\username" format.

    Umbraco doesn't like this, and I'm guessing it has to do with the slash in the username. It appears to authenticate the user, but then crashes. Here's the error message and stack trace:

    Server Error in '/' Application.

    Index was outside the bounds of the array.

    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.IndexOutOfRangeException: Index was outside the bounds of the array.

    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:

    [IndexOutOfRangeException: Index was outside the bounds of the array.]
    umbraco.cms.presentation._umbraco.Page_Load(Object sender, EventArgs e) +1713
    System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
    System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
    System.Web.UI.Control.OnLoad(EventArgs e) +99
    umbraco.BasePages.BasePage.OnLoad(EventArgs e) +15
    System.Web.UI.Control.LoadRecursive() +50
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627



    Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082

Please Sign in or register to post replies

Write your reply to:

Draft