S
Sammy_63
Does any one know how to find my windows domain name with .Net
Here's what I'm trying to do, I'm implementing role based security by calling WindowsPrincipal.IsInRole. This requiers the group names to be passes as DOMAINNAME/GROUPNAME. I use the same group names at all the installations but the domain names are obviously diffrent at seach site. I'm trying to avoid hardcoding or manually configuring the domain name for each site
I'd like to do something like this
AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal
Dim Prin as WindowsPrincipa
prin = Thread.CurrentPrincipa
domainName = get_domain_name(
bAuthenticated = prin.IsInRole(domainName & "\" & GroupName
I tried SystemInformation.UserDomainName.ToString() But it returns the server name not the domain name
Any Ideas would be greatly appreciated
Thank
Sam
Here's what I'm trying to do, I'm implementing role based security by calling WindowsPrincipal.IsInRole. This requiers the group names to be passes as DOMAINNAME/GROUPNAME. I use the same group names at all the installations but the domain names are obviously diffrent at seach site. I'm trying to avoid hardcoding or manually configuring the domain name for each site
I'd like to do something like this
AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal
Dim Prin as WindowsPrincipa
prin = Thread.CurrentPrincipa
domainName = get_domain_name(
bAuthenticated = prin.IsInRole(domainName & "\" & GroupName
I tried SystemInformation.UserDomainName.ToString() But it returns the server name not the domain name
Any Ideas would be greatly appreciated
Thank
Sam