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" ?
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:
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" ?
is working on a reply...