Copied to clipboard

Flag this post as spam?

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


  • 3ijtKwijt 36 posts 216 karma points
    Aug 17, 2017 @ 09:21
    3ijtKwijt
    0

    Using different usernames with AD

    Hi there

    I've been able to connect to my AD and login as the current Windows logged in user. But I walked into an issue when working with "Public Access" to restrict pages.

    And I feel like I know where the issue is, yet I don't know how to solve this. When I visit the site, it tells me im logged in, and shows my username from the membership helper:

    @Members.CurrentUserName => gives me "domain\username"
    

    But this gives issues when checking if the user has access to visit a page with the "Public Access" as when im trying to retrieve the roles from "domain\username" it returns nothing, but when checking on just "username" I get the whole list.

    Is there a way to make Umbraco use just "username" instead of the "domain\username" ?

Please Sign in or register to post replies

Write your reply to:

Draft