I have two domains, in a trusted relationship, that I'm trying to manage from a C# web application. To do that, I have to impersonate two different technical users, but that works good, so I will not emphasize that part of the code. To build proper and easy to manage [...] read more
I am currently aiming to implement a read-only role provider for an ASP.NET application based on domain security groups using the utilities in the System.DirectoryServices.AccountManagement assembly. I have the following piece of code which works fine on my development domain, but fails in the deployment environment: Using myContext As New [...] read more
I have an SSIS package that is scheduled to run every weekday morning at 8:15. It copies data to and from Active Directory and SQL. About two weeks ago, it started failing, with no changes having been made to the server (beyond MS updates). The funny thing is that if [...] read more
I am using blow code to create account/user in AD LDS from my local machine (virtual desktop) client. In my local below code works fine But after deploying code to some other server which is different from where AD LDS is installed it throws error "There is no such object [...] read more
I try to obtain a certificate with LDAP, but i have an exception > System.Runtime.InteropServices.COMException(0x80072030): There is no such > object on the server at System My code : Dim ldapUrl = "LDAP://annuaire.sesam-vitale.fr/cn=amo_pj.test@test.rss.fr,ou=AC-FACTURATION,ou=AC-SESAM-VITALE-2034,o=sesam-vitale,c=fr?userCertificate;binary" Dim de As DirectoryEntry = New DirectoryEntry(ldapUrl) de.AuthenticationType = AuthenticationTypes.None Dim dsearch As DirectorySearcher = New DirectorySearcher(de) [...] read more
I'm trying to access AD data via ldap with the connection like: LDAP://dc1.corp:port/OU=Users,DC=domain,DC=com Then using the directorySearcher.FindOne().GetDirectoryEntry(); This 100% works on my machine, but when I do this on the server it throws DirectoryServicesCOMException (0x80072030) There is no such object on the server. I found the similar question on so, [...] read more
We are having issues using active directory and moving/renaming OUs. This only occurs when we replicate between two domain controllers. The exception we get is: > System.ServiceModel.FaultException: There is no such object on the server. > (Exception from HRESULT: 0x80072030) We get variations of this error message when we try [...] read more
I have two functions: 1. CreateComputer-Group 2. CreateCoomputer-Role Once first function executes then GroupCreated in first function is used in second function to create computer role. How can I make sure first function execution is completed and then only second function to execute. Here is the code: $global:usergroup = "TACACS [...] read more
Trying to access the local ActiveDirectory from my Windows Service. I was going to try using the LocalService to access it, it works when I run it inside Visual Studio as Administrator, but failed when I run it as an actual Service. Do I need to provide the SecurityIdentifier to [...] read more