Forms Authentication: AD and .NET

R

Ray Lewis

I'm trying to design a .NET web application which will use active directory
to authenticate my users. I followed the below MSDN article, but I must be
doing something wrong because when I attempt to log on, i get the error
message "No such object on the server." This may be because I'm not certain
how to create a "least-privileged Windows user," or it may be because I'm
not certain that I have my LDAP name correct. Could anyone help me?

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT02.asp
 
R

Ray Lewis

Thanks, but I actually got it working about 10 minutes ago. Now that I've
figured out how to use it, I have to figure out how to implement it into a
site that is designed mostly in html. Now I'm lost. There is a log on page
that is aspx, but there is no .cs page....how am I supposed to insert the
code?
 
J

Joe_Langley

Although not suggested by most people, you can use in-line C# code in your
aspx page...exactly like ASP.

<script runat="server" language="C#">
void doClick(object sender, EventArgs e) {
TheLabel.Text = "Hello, world! (from ASP.NET in C#, " +
"code inline)";
}
</script>

Cheers!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,007
Latest member
obedient dusk

Latest Threads

Top