If anybody has a similar story, please post details below! I'm building an ASP.NET website which needs to support authentication against LDAP. On windows, LDAP auth can be performed via Active Directory (I'm no expert, but AD seems to simply be a particular flavor of ldap). I don't control the [...] read more
I'm using a C# web application to search for users in different domain in active directroy. In the actual scenario we have employees from two different domains say for eg: India, US. When the application is hosted in IIS server, I'm not able to retrive users from US domain. When [...] read more
I'm working on WEB API project using ASP.NET technology. This Web API need to check the user from AD Active Directory, as domain authentication using LDEP:// [HttpGet] public IHttpActionResult ListProperties(string domainName, string userName, string password) { try { using (DirectoryEntry dEntry = new DirectoryEntry("LDAP://" + domainName, userName, password)) { DirectorySearcher [...] read more
We have a Hyper-V-hosted Windows Server 2008 R2 Standard server with Remote Desktop Services which has a long-standing problem whereby, every day in the early hours of the morning, its networking encounters lots of strange problems: 1. Using Command Prompt to nslookup and ping FQDNs both public (www.google.co.uk) and private [...] read more
Unknown error 0x8004011B appears after an Outlook Send and Receive operation. Exchange Server 2007, clients Outlook 2003 error_image [https://img200.imageshack.us/img200/9918/erroru.png] I looked at these with no luck so far. http://support.microsoft.com/kb/555049 http://support.microsoft.com/kb/922255 (editing registry, dismount and mount didn't help.) It has something to do with the Offline Address List, the Global Address [...] read more
I have an application which has certain functionality secured by performing an Active Directory lookup via DirectoryServices. I am in the midst of migrating this code from a web host in our old domain to a new domain. The code worked flawlessly on the old domain. However, errors occur when [...] read more
Running the following code with port 636 (secure) through a console application it works fine, however through a ASP.Net web site it fails: DirectoryEntry authServer = new DirectoryEntry(@"LDAP://zxxx.cf.ac.uk:636", "", "", AuthenticationTypes.Anonymous); DirectorySearcher directorySearch = new DirectorySearcher(authServer, "(CN=sissh6)"); SearchResult result = directorySearch.FindOne(); Here is the error: Problem authenticating : System.Runtime.InteropServices.COMException (0x8007203A): [...] read more
We are using AD to authenticate user for our website, and sometimes the Web server is not be able to connect to the DC server, and we got a COMException (0x8007203a): The server is not operational. Even when I catch this exception in a similar code block below, the exception [...] read more
I'm trying to bind to an Active Directory server in C# but on-site I seem to have issues not reproducible in the test environment. I'm getting an Exception System.Runtime.InteropServices.COMException (0x8007203A): The server is not operational. at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at System.DirectoryServices.DirectoryEntry.RefreshCache() at System.DirectoryServices.DirectoryEntry.FillCache(String propertyName) at System.DirectoryServices.DirectoryEntry.get_NativeGuid() the code looks [...] read more
I have an Exchange Server running in a remote machine. We also have an application that connects to this Exchange Server through ActiveDirectory and Independentsoft's WebDav. This works perfectly when I run the application locally, but if I install it in the machine where the Exchange Server is running I [...] read more
Complete and total server n00b who knows just enough to be dangerous. :o) I bought this Dell T110 server and it came with Windows Server 2012 Essentials. I want to use this as a web server to host websites. I know, from what I've accomplished so far, that the server [...] read more
I have the problem that I cannot access Active Directory from a Windows XP SP3 machine. The server is a Windows Server 2008 R2. I could access AD from my Windows 7 and other machines, but XP won't work. I get the Exception... System.Runtime.InteropServices.COMException (0x8007203A): The server is not operational [...] read more
I have some .NET working code (both as a desktop application and as a IIS deployment) to read data from LDAP: string ldapUrl = "LDAP://myLdapUrl.example/ou=user,dc=MyDC"; AuthenticationTypes auth = AuthenticationTypes.None; using (DirectoryEntry directoryEntry = new DirectoryEntry( ldapUrl, "cn=ldap_user,ou=user,dc=MyDC", "NotMyTruePassword", auth) { using (DirectorySearcher directorySearcher = new DirectorySearcher(directoryEntry)) { directorySearcher.PropertiesToLoad.AddRange(new[] { "uid", [...] read more
I'm working on WEB API project using ASP.NET technology. This Web API need to check the user from AD Active Directory, as domain authentication using LDEP:// [HttpGet] public IHttpActionResult ListProperties(string domainName, string userName, string password) { try { using (DirectoryEntry dEntry = new DirectoryEntry("LDAP://" + domainName, userName, password)) { DirectorySearcher [...] read more
I'm trying to create a simple website to change my AD password. The website will be hosted internally in my IIS. Here is how my UI looks like: Here [https://i.stack.imgur.com/Xgvdl.png] After clicking the submit button, I receive this error (which I displayed using an asp.net label): this image [https://i.stack.imgur.com/Yb37C.png] System.Runtime.InteropServices.COMException [...] read more
I am trying to query a remote Active Directory server that requires a VPN connection be established (in order to access the server). Below is the snippet of my code: DirectoryEntry adsEntry = new DirectoryEntry(); adsEntry.Username = "user_name"; adsEntry.Password = "password"; adsEntry.AuthenticationType = AuthenticationTypes.Secure; adsEntry.Path = "LDAP://domain.com:636/CN=John Doe,DC=staff,DC=com"; DirectorySearcher adsSearcher [...] read more
All of a sudden we started to get this error in our webapplication. It's weird because it has been working for months and months and noone has ever touched the code. Does anyone have any idea why this error could occur all of a sudden? SERVER ERROR IN '/' APPLICATION. [...] read more
I have a method that checks if a user is a member of a AD group. I tried using my own AD account as credentials and then I get some information about the userprincipal, like email etc. But when accessing the userprincipals groups I get the following error message: > [...] read more
this is completely ODD to me. I can run this perfectly fine in local machine but when deploying it to server it fails... Server Error in '/' Application. The server is not operational. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack [...] read more
In our intranet we got a windows service with 2 timers in it. First one works each 5 minutes and get Active Directory users list and update Database with it, second works each hour and do some other stuff. Sometime maintenance work on network starts, and service inner logic catch [...] read more
I have the problem that I cannot access Active Directory from a Windows XP SP3 machine. The server is a Windows Server 2008 R2. I could access AD from my Windows 7 and other machines, but XP won't work. I get the Exception... > System.Runtime.InteropServices.COMException (0x8007203A): The server is not [...] read more