I am currently developing a WebAPP where I have already been able to have the login confirm the credentials of the user in AD. Basically the login already works correctly. My goal now is to create 1 group in AD and specify that only those in this group can access the application. Anyone know how I can do this?
DllImport("advapi32.dll")]
public static extern bool LogonUser(string name, string domain, string pass, int logType, int logpv, ref IntPtr pht);
protected void Button1_Click(object sender, EventArgs e)
{
IntPtr th = IntPtr.Zero; bool log = LogonUser(txt_user.Text, "dominio", txt_pass.Text, 2, 0, ref th);
if (log)
}