active-directory Questions

3

Solved

I am working with Azure Active Directory and want to know when a user's password expires. Currently I use these PowerShell commands to connect to msol service successfully and get password expiry,...

4

Solved

While fetching users from group, giving exception message as "While trying to resolve a cross-store reference, the SID of the target principal could not be resolved. The error code is 1332." Prin...
Westonwestover asked 10/3, 2016 at 10:36

4

Solved

I'm using java ldap to access active directory, more specifically spring ldap. a group search by objectGUID yields no results when the filter is encoded as specified in rfc2254. this is the guid in...

5

For instances when Active Directory takes too long to replicate data between sites, I need to ensure that the local AD replica contains the most up to date information. How can I get a list of Do...

8

Hoping someone maybe able to help with the below error i get when running a powershell script i created. It worked before fine no issues. "The Operation being Requested was not performed becau...
Soldiery asked 30/10, 2020 at 10:51

4

Solved

I have Apache/SVN running on Windows Server 2003 with authentication via LDAP/Active Directory and a flat-file. It's working great except that any LDAP user can access everything. I'd like to be a...
Kaine asked 27/1, 2009 at 18:1

4

Solved

I want to display the account expiry date—either as something readable, or in ticks—it doesn't matter: DirectorySearcher searcher = new DirectorySearcher(); searcher.Filter = String.Format( "(...
Parkland asked 13/1, 2009 at 22:31

5

Solved

I got a working solution, however I'm pretty sure there is a less resource-intensive method because the current solution involves doing a query to get the groups member and then a query to get each...
Dipsomania asked 7/3, 2012 at 14:57

2

Primarily, I needed to retrieve a list of users who are members of a particular group, in SQL Server. I did managed to find something on the net, which is working perfectly. Solution is as shown: ...

7

Solved

There are two ways to authenticate a user using Django Auth LDAP Search/Bind and Direct Bind. The first one involves connecting to the LDAP server either anonymously or with a fixed account an...

3

I've been running into an error on one of my applications that happens a few times a month but has occurred twice this week. When this happens, it's always first thing in the morning when the first...

9

Im tyring to build a script which will copy group memberships from one user to another in AD. Im trying to use powershell to automate this task. However im stuck while creating a check for the user...
Bedpost asked 9/9, 2014 at 22:34

3

Solved

I am looking for a way (manual or progamatic) to find out where the user's activer directory login script is located. I can parse the results of "net user" to get the script name, but that doesn't...
Tube asked 19/3, 2009 at 18:33

7

Solved

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 t...
Mlle asked 24/5, 2013 at 16:11

5

Solved

I use the following code to determine members of the local Administrators group: $obj_group = [ADSI]"WinNT://localhost/Administrators,group" $members=@($obj_group.Invoke("Members"))|foreach{$_.Get...
Fredkin asked 11/8, 2015 at 18:39

10

Solved

I have a script that I need to find the full Distinguished name (CN=MyComputer, OU=Computers, DC=vw, DC=local) of the computer it is running on, however I can not guarantee that the ActiveDirectory...
Valaria asked 21/6, 2012 at 20:30

5

Solved

I am unable to automate Connect-AzureAD powershell command. In order to get user objectID, I need to automate the operation Connect-AzureAD and for that i used this code: Connect-AzureAD -TenantI...
Remanent asked 12/2, 2020 at 9:37

12

Solved

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 ...
Overpowering asked 26/9, 2008 at 16:8

4

Solved

I'm in need of a little help. I've got little to no PowerShell experience but I'm working with a Pocket Guide by my side and my GoogleFu. Currently, my plan is to prompt for a username and store ...
Kelton asked 3/10, 2012 at 16:32

4

While using loginRedirect() or acquireTokenRedirect(), I am getting the following error: redirect_uri_mismatch:AADB2C90006%3a The redirect URI 'http%3a%2f%2flocalhost%3a4200%2fsubscription' provid...

5

Solved

I'm working on a script that will build a new group if it doesn't exist. I'm using Get-ADGroup to make sure the group doesn't exist using the following command: $group = get-adgroup $groupName -Er...
Meanly asked 10/6, 2011 at 13:38

5

Solved

I'm trying to build functionality into my app for 'admins' to assign users from their AD group to certain groups that are further assigned to app-specific roles. Basically a simple management compo...

3

Solved

I am using the great ldap3 package and I am trying to connect with a active directory server but without requiring to provide actual credentials in plain text. Following SASL mechanisms are suppor...
Cello asked 11/9, 2018 at 15:32

33

Solved

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?
Vanhouten asked 22/2, 2011 at 0:57

5

Solved

I have an application that checks to see if a user exists (if not create it) every time it starts. This is done as follows: bool bUserExists = false; DirectoryEntry dirEntryLocalMachine = new Di...
Fortyfive asked 4/11, 2009 at 18:43

© 2022 - 2024 — McMap. All rights reserved.