accessing Active Directory

From: reda (reda_at_discussions.microsoft.com)
Date: 08/23/05

  • Next message: Dominick Baier [DevelopMentor]: "Re: .NET 2003 DLL - how secure?"
    Date: Tue, 23 Aug 2005 02:19:07 -0700
    
    

    Hi all,

    I am developing asp.net application using windows authentication from active
    directory on a local area network. the domain controller is not on the same
    machine of the IIS. when trying to get the display name of the logged in user
    I am getting an error if I try remotly even if user is logged in but it works
    fine localy on the web server.

    I am new in using directoryservice namespace and donnt find any document to
    disccus how to emplement an application like that using active directory
    hosted on another server.

    this is my code

    DirectorySearcher ds = new DirectorySearcher();
    ds.SearchRoot = new DirectoryEntry("LDAP://CN=users,DC=TAC,DC=local");
    string filter = "";
    filter += FormFilter("user", userName);
    filter = "(|" + filter + ")";
    ds.Filter = filter;
    ds.PropertiesToLoad.Add("*");
    System.DirectoryServices.SearchResult res = ds.FindOne();

    in the last line I get "An Operations error occurred"

    both of web server and domain controller are windows 2003 and the domain
    name is TAC.LOCAL

    any body can help me ?

    Regards,


  • Next message: Dominick Baier [DevelopMentor]: "Re: .NET 2003 DLL - how secure?"

    Relevant Pages

    • Re: I hate IIS - "Server Application Unavailable" error message
      ... You can get it running on a domain controller by altering this account. ... Buy a web server. ... configure the <processModel> section of the Machine.config file to use ...
      (microsoft.public.dotnet.framework.aspnet)
    • serious problem running asp.net and framework on domain controller
      ... I have a web server which is also the domain controller. ... And at some stage, with the permissions gone, the same problem ... In the ASP.NET application I use user impersonization, ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: Unix Bind and Windows DNS coexist problem with forwarder ON
      ... >> resolve to the IP address of the domain controller so client can ... If the record points to a web server your ... Create in Windows or UNIX Bind? ...
      (microsoft.public.windows.server.dns)
    • RE: Webserver and FTP user authentication
      ... domain controller which will decrypt it, verify the password and reply to ... device does not actually store your domain credentials and for security ... For local user authentication you need to create a user with ... reset the web server to get the web server to read the new settings: ...
      (microsoft.public.windowsce.app.development)
    • Re: LDAP redundancy
      ... The web server is sitting in the DMZ server. ... And also what firewall rule is it to be ... off the domain controller in the trusted LAN. ...
      (microsoft.public.win2000.dns)