This was MUCH easier to accomplish than ADSI info gathering. Code is below:
public bool IsMemberOf(string szGroupName) { System.Security.Principal.WindowsPrincipal user = (System.Security.Principal.WindowsPrincipal)HttpContext.Current.User; bool bVal = user.IsInRole(szGroupName); return (bVal); }
Remember Me
b, blockquote@cite, i, strike, strong, u
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.