Another Question



Dear Manish:

I am using the Active Directory to authenticate logins. The logins are in
two folders, one called "Users" and the other called "Mail_Users." How can I
get the code to search for the logins in either or both folders? The
following is what I have:

<add name="ADConnectionString"
connectionString="LDAP://goodnewsjail.org/CN=Users,DC=goodnewsjail,DC=org"; />

When I try "CN=Mail_Users" I get an error. What am I doing wrong?
--
Dr. Doug Pruiett
Good News Jail & Prison Ministry
www.goodnewsjail.org


"Manish Bafna" wrote:

Hi,
You will find Page_Load event in Default.aspx.cs(if language selected is C#)
or in Default.aspx.vb(if language selected is VB.NET).When you double click
Default.aspx in design mode you will get Default.aspx.cs. or Default.aspx.vb.
--
Hope this helps.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.



"Chaplain Doug" wrote:

Thank you for the help. I have a question regarding the information to which
you directed me. I am instructed:

Add a Page_Load Event Handler
Add the following code to the Page_Load event handler of your Default.aspx
page. This page should be displayed only to authenticated users. To prove
that this is the case, the code displays information obtained from the forms
authentication ticket that is issued to authenticated users.

protected void Page_Load(object sender, EventArgs e)
{
Response.Write("Hello, " + Server.HtmlEncode(User.Identity.Name));

FormsIdentity id = (FormsIdentity)User.Identity;
FormsAuthenticationTicket ticket = id.Ticket;

Response.Write("<p/>TicketName: " + ticket.Name );
Response.Write("<br/>Cookie Path: " + ticket.CookiePath);
Response.Write("<br/>Ticket Expiration: " +
ticket.Expiration.ToString());
Response.Write("<br/>Expired: " + ticket.Expired.ToString());
Response.Write("<br/>Persistent: " + ticket.IsPersistent.ToString());
Response.Write("<br/>IssueDate: " + ticket.IssueDate.ToString());
Response.Write("<br/>UserData: " + ticket.UserData);
Response.Write("<br/>Version: " + ticket.Version.ToString());
}


I assume that this is aspx code. Where do I place this in the default.aspx
file?

--
Dr. Doug Pruiett
Good News Jail & Prison Ministry
www.goodnewsjail.org


"Manish Bafna" wrote:

Hi,
This is actually easy to-do with ASP.NET 2.0 using the
ActiveDirectoryMembership provider. Below msdn link describes how to do it:
http://msdn2.microsoft.com/en-us/library/ms998360.aspx
--
Hope this helps.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.



"Chaplain Doug" wrote:

Visual Studio 2005 Express. I would like to have the login control validate
logins using Active Directory. That is, I would like to have user logins
checked against the AD in our server (Windows Server 2003). How may I
accomplish this?
--
Dr. Doug Pruiett
Good News Jail & Prison Ministry
www.goodnewsjail.org
.



Relevant Pages

  • Re: Limiting users to logging on to one workstation at a time
    ... Limiting the number of logins per user from any machine in the domain, ... including Terminal Server sessions. ... specific criterion (e.g. all the logged-on sessions to a specific client ... Easy management and configuration by integrating to the Active Directory ...
    (microsoft.public.windows.server.active_directory)
  • Why is login requesting domain for some users?
    ... I have a public web with a few restricted sub-webs, which I authenticate ... files and event viewer - there are no entries. ... logins - but not for these users. ...
    (microsoft.public.inetserver.iis.security)
  • Best configuration of SSH
    ... secure way to implement SSH as I now understand that there is more than one ... Should I only authenticate with a password? ... Should I use public keys? ... Should I configure ssh2 to only except admin logins and then be able to 'su' ...
    (comp.security.ssh)
  • Re: AD logins
    ... Subject: AD logins ... I want my users to login to the workstations using their Active Directory username/passwords. ...
    (Fedora)
  • Re: IAS
    ... You should be able to create these logins in AD and then lock them ... > authenticate against this RADIUS server. ... > some of my VPN users won't necessarily be network users. ...
    (microsoft.public.win2000.active_directory)