Questions tagged [domaincontroller]

An Domain Controller (DC) is a Windows server which responds to security authentication requests (logging in, checking permissions, etc.) within the Windows Server Active Directory domain.

For a complete description, see https://en.wikipedia.org/wiki/Domain_controller

231 questions
3
votes
1 answer

PrincipalContext.ValidateCredentials fails with "The server cannot handle directory requests."

I have an application where user authenticate against our Active Directory: private bool Authenticate() { using (var context = new PrincipalContext(ContextType.Domain, Environment.UserDomainName)) { return…
Wernfried Domscheit
  • 54,457
  • 9
  • 76
  • 110
3
votes
1 answer

Mac OS X slow connections - mdns 4-5 seconds - bonjour slow

I'm finally at my wits end. I've been Googling this issue for a week now. I've tried troubleshooting my Mac (10.12 Sierra) and my domain controllers (Windows Server 2016) and I am no closer to solving my issue. My issue is that when using PHP's…
Ryan Mortier
  • 763
  • 1
  • 10
  • 23
3
votes
1 answer

Specify Active Directory Domain Controller via DirectoryEntry or DirectorySearcher?

I can specify the domain controller when I want to search through AD using this: $principalContext = New-Object 'System.DirectoryServices.AccountManagement.PrincipalContext'([System.DirectoryServices.AccountManagement.ContextType]::Domain,…
3
votes
3 answers

how can I determine if the machine I am using is a domain controller

Using C#, what is the way to find out if the machine my code is running on IS a domain controller. I do not want to "go out" and collect information about any other domain controllers on the domain... I am ONLY interested if the machine machine my…
MrLister
  • 634
  • 7
  • 32
3
votes
1 answer

How to programmatically find the domain controller/primary domain controller?

I'd like to know how to determine, in a running application, the domain controller/primary domain controller of the Windows workstation or server on which the application is running, using Win32 APIs. In particular, given a machine's hostname, I…
Ira Baxter
  • 93,541
  • 22
  • 172
  • 341
2
votes
2 answers

Detecting whether the computer is a Domain Controller

How do I get information whether the system is configured as domain controller or not programatically on windows.
Manya K
  • 33
  • 2
2
votes
3 answers

PowerShell Script to check if a computer is a domain controller or not

This self-answered question addresses the following scenario: How can I write a PowerShell script to check if a computer is a domain controller or not?
2
votes
0 answers

Is there a function which returns list of client machine names on which a certain domain user profile exists, by taking in input of domain user name

Is there any way to find out list of machine names in which a domain user profile exists (As a domain user profile can exists in multiple clients) for example I am looking for a function in .net or VC++ which takes in username and his domain details…
2
votes
2 answers

Locate closest domain controller using Java

I have to connect Active Directory and fetch data based on the domain names. Using LDAP connection with Java. For this I wanted to identify closest domain controller first. Is there any method or API available in Java to identify closest domain…
2
votes
0 answers

Error with the Zerologon POC on Samba AC DC

I have a school projet that require me to emulate the CVE-2020-1472 (Zerologon) on a local environment. I am currently trying to test following github script but I am facing some issue that I haven't been able to solve since then. To sumerize, I…
2
votes
1 answer

UserPrincipal.GetGroups() method throws Exception after changing DomainController

We have a winforms application that gets the groups from the active directory. Now everything worked fine till we have exchanged the old domaincontroller with a new one. Since then, our application throws an exception when the method…
Leon
  • 443
  • 5
  • 19
2
votes
1 answer

How to get the details of ForeignSecurityPrincipal object in .net

I have 2 domains A and B. I have a group in B "GroupInB" which has a user "UserInB"( In future, there can be many users in that group). In the domain A, I have created a group "GroupInA" and then added "GroupInB" to "GroupInA". (This causes a…
Shrikey
  • 858
  • 3
  • 11
  • 34
2
votes
0 answers

No domain controller can be contacted when domain joining a server

I know there are several posts regarding the following issue but non of them have solved the issue for me. Let me explain the situation: We have a customer that want's to migrate from an old datacenter to ours. So we created a site to site…
2
votes
0 answers

Getting groups of a user from Windows authentication

I am trying to get the usergroups using below code. var domainContext = new PrincipalContext(ContextType.Domain, domain); var user = UserPrincipal.FindByIdentity(domainContext, username); var groups = user.GetGroups() But I…
2
votes
0 answers

How to resolve LDAP bind errors “The server is not operational” and “The directory service is unavailable”

We've an application that uses LDAP for authentication. The application is deployed on four MiddleWare servers in a load balanced configuration using F5. Though there are 8 domain controllers in the AD store, we continue to get an error on all MW…
1
2
3
15 16