Questions tagged [active-directory]

Active Directory (AD) is a distributed directory service created by Microsoft. It stores all information and settings for a deployment in a central database. AD allows administrators to assign policies, deploy and update software. AD networks can vary from a small installation with a few computers, users and printers to tens of thousands of users, many different network domains and large server farms spanning many geographical sites.

Active Directory uses a number of standardized protocols to provide a variety of network services, including:

  1. Lightweight Directory Access Protocol (LDAP), the industry standard directory access protocol, compatible with many management and query applications. Active Directory supports LDAPv3 and LDAPv2.
  2. Optional Kerberos-based authentication
  3. DNS-based naming and other network information

Features include:

  1. Central location for network administration and security
  2. Information security and single sign-on for user access to networked resources
  3. The ability to scale up or down easily
  4. Standardizing access to application data
  5. Synchronization of directory updates across servers
16153 questions
634
votes
4 answers

What are CN, OU, DC in an LDAP search?

I have a search query in LDAP like this. What exactly does this query mean? ("CN=Dev-India,OU=Distribution Groups,DC=gp,DC=gl,DC=google,DC=com");
Ritesh Chandora
  • 8,382
  • 5
  • 21
  • 38
588
votes
15 answers

Validate a username and password against Active Directory?

How can I validate a username and password against Active Directory? I simply want to check if a username and password are correct.
Scott
417
votes
11 answers

What are the differences between LDAP and Active Directory?

What are the differences between LDAP and Active Directory?
boingboing
215
votes
17 answers

Gradle proxy configuration

I need web access from Gradle through a proxy server to use the Gradle/Artifactory integration for Jenkins. To reduce possible causes for issues, I manually add the Artifactory plugin in build.gradle and run it from command line: apply { apply…
Daniel Beck
  • 6,363
  • 3
  • 35
  • 42
195
votes
32 answers

How to get all groups that a user is a member of?

PowerShell's Get-ADGroupMember cmdlet returns members of a specific group. Is there a cmdlet or property to get all the groups that a particular user is a member of?
Primoz
  • 4,079
  • 17
  • 56
  • 67
156
votes
11 answers

"Active Directory Users and Computers" MMC snap-in for Windows 7?

Is there an equivalent tool available for use in Windows 7? I just need to browse the membership of some small Active Directory groups that are deep within a huge hierarchy, so I can eventually write code to work with those groups. The Windows…
Chris Farmer
  • 24,974
  • 34
  • 121
  • 164
125
votes
5 answers

How can I get a list of users from active directory?

How can I get a list of users from active directory? Is there a way to pull username, firstname, lastname? I saw a similar post where this was used: PrincipalContext ctx = new PrincipalContext(ContextType.Domain, "YOURDOMAIN"); I have never done…
Mike
  • 5,437
  • 7
  • 45
  • 62
118
votes
10 answers

How to get the groups of a user in Active Directory? (c#, asp.net)

I use this code to get the groups of the current user. But I want to manually give the user and then get his groups. How can I do this? using System.Security.Principal; public ArrayList Groups() { ArrayList groups = new ArrayList(); …
Tassisto
  • 9,877
  • 28
  • 100
  • 157
112
votes
6 answers

Authenticating in PHP using LDAP through Active Directory

I'm looking for a way to authenticate users through LDAP with PHP (with Active Directory being the provider). Ideally, it should be able to run on IIS 7 (adLDAP does it on Apache). Anyone had done anything similar, with success? Edit: I'd prefer a…
DV.
  • 4,585
  • 9
  • 37
  • 44
103
votes
7 answers

Get user's non-truncated Active Directory groups from command line

I often use the net user command to have a look at AD groups for a user: net user /DOMAIN This works well, however the group names are truncated to around 20 characters. And in my organization, most group names are much longer than…
Ben
  • 6,567
  • 10
  • 42
  • 64
99
votes
11 answers

Authenticating against active directory using python + ldap

How do I authenticate against AD using Python + LDAP. I'm currently using the python-ldap library and all it is producing is tears. I can't even bind to perform a simple query: import sys import ldap Server = "ldap://my-ldap-server" DN, Secret, un…
1729
  • 4,961
  • 2
  • 28
  • 17
90
votes
6 answers

How to keep the shell window open after running a PowerShell script?

I have a very short PowerShell script that connects to a server and imports the AD module. I'd like to run the script simply by double clicking, but I'm afraid the window immediately closes after the last line. How can I sort this out?
JustAGuy
  • 5,151
  • 11
  • 41
  • 55
87
votes
4 answers

Query to list all users of a certain group

How can I use a a search filter to display users of a specific group? I've tried the following: (& (objectCategory=user) (memberOf=MyCustomGroup) ) and this: (& (objectCategory=user) …
Madam Zu Zu
  • 6,437
  • 19
  • 83
  • 129
77
votes
5 answers

How to determine if user account is enabled or disabled

I am throwing together a quick C# win forms app to help resolve a repetitive clerical job. I have performed a search in AD for all user accounts and am adding them to a list view with check boxes. I would like to default the listviewitems' default…
Bryan
  • 3,224
  • 9
  • 41
  • 58
76
votes
1 answer

Can I get more than 1000 records from a DirectorySearcher?

I just noticed that the return list for results is limited to 1000. I have more than 1000 groups in my domain (HUGE domain). How can I get more than 1000 records? Can I start at a later record? Can I cut it up into multiple searches? Here is my…
naspinski
  • 34,020
  • 36
  • 111
  • 167
1
2 3
99 100