R
Ron L
I have an application I am developing which is using remoting to have a
smart client connect to a remote database via IIS. There are certain
functions that we only want the user to be able to access if they are
members of a certain group on the server. When the application is deployed,
the group will be a domain group, but for our developers the group is a
local group on the development machines. To check the group membership, I
am using the HttpContext.Current.User.IsInRole(groupName) where groupname is
checked as
System.Environment.MachineName & "\" & groupname
and then as
<domainName> & "\" & groupname
My problem is how to get the domain name of the machine that is hosting the
remoting. In our development environment, the domain of the development
server is different from the domain the users are defined in, so we can't
use the System.Environment.UserDomainName.
Can anyone tell me how I can get the name of the domain that the remoting
host is a member of?
TIA
Ron Lounsbury
smart client connect to a remote database via IIS. There are certain
functions that we only want the user to be able to access if they are
members of a certain group on the server. When the application is deployed,
the group will be a domain group, but for our developers the group is a
local group on the development machines. To check the group membership, I
am using the HttpContext.Current.User.IsInRole(groupName) where groupname is
checked as
System.Environment.MachineName & "\" & groupname
and then as
<domainName> & "\" & groupname
My problem is how to get the domain name of the machine that is hosting the
remoting. In our development environment, the domain of the development
server is different from the domain the users are defined in, so we can't
use the System.Environment.UserDomainName.
Can anyone tell me how I can get the name of the domain that the remoting
host is a member of?
TIA
Ron Lounsbury