H
hank voight
Guest
How can I translate a sid to a windows identity object? I want to do something like this:
private string IsSidInSidRole(SecurityIdentifier accountSid,SecurityIdentifier groupSid )
{
NTAccount account = (NTAccount)accountSid.Translate(typeof(NTAccount));
// here is where I need the windowsidentity, object to call is inrole
//
if( account.isinrole( groupsid)
{
console.writeline( "{0} is in role {1}"....
}
return account.Value;
}
thanks! hank voight
Continue reading...
private string IsSidInSidRole(SecurityIdentifier accountSid,SecurityIdentifier groupSid )
{
NTAccount account = (NTAccount)accountSid.Translate(typeof(NTAccount));
// here is where I need the windowsidentity, object to call is inrole
//
if( account.isinrole( groupsid)
{
console.writeline( "{0} is in role {1}"....
}
return account.Value;
}
thanks! hank voight
Continue reading...