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
Filter by
Sorted by
Tagged with
0 votes
2 answers
7k views

Powershell: How do I convert ADUser to IdentityReference?

I am trying to set the owner on a folder and I keep running into problems. Here is my current script. I am trying to parse through all folders under a share and set the folder's owner to the ...
Nathan McKaskle's user avatar
0 votes
1 answer
2k views

WSO2 Identity Server 5.3.0 user store: List users and login works, but claim manager won't find user

I've installed WSO2 Identity Server 5.3.0 and configured it with an Active Directory as primary user store. Everything worked fine and there were no issues until now. Now it behaves super strange. I ...
Mat's user avatar
  • 108
2 votes
1 answer
289 views

Fetching all Microsoft Active Directory users in Domino Xpages NamePicker via java Agent

I'm working with LDAP Microsoft Active Directory and Domino server and quite new with this. we've successfully fetched all Microsoft Active Directory users in Domino via java Agent and have printed ...
Tushar Patil's user avatar
0 votes
1 answer
156 views

Pass security context when executing query in mongo db

I have a requirement to apply some rules to the collection used for searching and also to the returned docs based on userid and/or role of the caller in mongo db. I see mongodb provides support to ...
user6594900's user avatar
8 votes
2 answers
39k views

Get Azure Active Directory password expiry date in PowerShell

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, ...
Mandar Jogalekar's user avatar
2 votes
1 answer
1k views

endpoints common vs tenant id

I am developing a python app running on embedded linux to access office365 calendar via the EWS interface. I plan on using impersonation to access data. I have registered my app with azure AD and ...
Spb2015's user avatar
  • 113
1 vote
1 answer
2k views

How do I construct a DirectoryEntry with both a specific domain controller and a SID for a user or group?

The scenario I'm faced with is I need to access Active Directory properties for a user and the groups of which they are a member from a web server in a DMZ which is not joined to the domain. Our ...
wwarby's user avatar
  • 1,941
2 votes
1 answer
2k views

Can I use Golang to get the internal domain name of an Active Directory environment?

I want to use Golang to get the FQDN of the internal Windows domain I am on. If the name was CORP.com, for example, I want a small script in Golang to find this for me. Is this possible?
AlwaysQuestioning's user avatar
0 votes
1 answer
2k views

Proxyaddresses added to the multivalued attribute not appearing on seperate lines

I am using the following script to create a spreadsheet of users and proxyaddress values (matching a string) as a record prior to removing them, in the case of an emergency I want to be able to put ...
Itchydon's user avatar
  • 2,590
0 votes
0 answers
363 views

combine 2 SearchResultCollection

We are in the process of moving employees to a new Active Directory OU. I have an applicatin where users can search for an employee by the DisplayName (or as much of it as they know) in AD and it ...
DanTheMan1966's user avatar
1 vote
0 answers
42 views

know when access was granted to RD

I wasn't able to remote desktop to a windows server last week. Now the admin said I already have access in the past. And indeed, I am able to access it now… This delay caused issues; I want to be ...
Chicago1988's user avatar
1 vote
1 answer
1k views

User GPO - Site to Zone Assignment List (User Policy) is not being applied correctly to Windows 10

I have a User GPO set that edits Trusted Sites within IE. This is working correctly for our users on Win7. However, the same policy is not working correctly for the same user on Win10. Does anybody ...
M.Clark's user avatar
  • 57
1 vote
4 answers
12k views

How to get user's password expiration date from Active Directory?

I have implemented implemented Active Directory authentication in ASP.NET MVC 5 using LDAP. I want to know how to get a user's Account Locked (boolean) Password Expired (boolean) Password Expiry ...
user1166085's user avatar
0 votes
1 answer
1k views

Get the name of an OU without having too much information in PowerShell

I'm trying to get a method to find the name of an OU dynamically. The problem is, that the company-name-OU is always there, but the contents can change. For example: In this case, the company ...
Kahn Kah's user avatar
  • 1,429
-1 votes
2 answers
5k views

Where can i find php.ini on cpanel

I have a php file that authenticate with ldap, it was working fine on localhost but when i uploaded it to cpanel(softaculous), i got this error Fatal error: Uncaught Error: Call to undefined function ...
Bnabil's user avatar
  • 71
1 vote
0 answers
32 views

WINAPI remote update of cached domain credentials using logon

I want to remotely update cached logon credentials for windows. I checked Ntsecapi.h to see if I could create a logon session remotely which could trigger this however I lack some good ideas. Anyone?
user425503's user avatar
1 vote
2 answers
883 views

TFSSecurity Unable to Resolve Identity

I am trying to use TFSSecurity to configure security on our new instance of TFS 2017. It works great when I test it by adding local user accounts on the TFS server into a TFS group but fails as soon ...
Chris's user avatar
  • 1,998
0 votes
2 answers
828 views

Does AD store Bitlocker keys in clear text by default?

I'm implementing Bitlocker on windows 10 laptops without TPMs. Some people are saying Bitlocker stores keys in AD in cleartext by default - is this true?
Davtho1983's user avatar
  • 3,897
1 vote
1 answer
2k views

Grafana LDAP logging

I'm using Grafana version 4.2.0-1. I've configured the LDAP via the: /etc/grafana/ldap.toml config file. Here's my configuration: verbose_logging = true [[servers]] # Ldap server host (specify ...
Alex Brodov's user avatar
  • 3,475
0 votes
2 answers
1k views

how to pass variables between 2 php files

I have two php files to make authentication to active directory users, i want to get the attribute url from it and pass this variable $data from authenticate.php to login.php if the function returned ...
Bnabil's user avatar
  • 71
0 votes
1 answer
2k views

What is the dsCorePropagation attribute and why does my script use it?

So I have a script where I'm querying the LastLogonTimeStamp attribute and deleting accounts on two conditions, one being that they belong to two security groups, and the other being that they have ...
Joseph's user avatar
  • 629
-1 votes
2 answers
903 views

How to get the Path of my export-csv file powershell

I want get the Path of my exported CSV file and store it in a variable. Here's my PowerShell code: Get-ADUser -identity $sam | Select @{ expression={$_.GivenName}; label='FirstName' }, @{ ...
ysfibm's user avatar
  • 436
0 votes
1 answer
447 views

JBoss - connect and authenticate users in two domains

I've encountered a problem regarding JBoss with authenticating users in two different Active Directory Domains. I want to configure JBoss to be able to authenticate user through LDAP depending on ...
NRG's user avatar
  • 263
0 votes
2 answers
3k views

How to get nested groups (subgroups) in System.DirectoryServices.Protocol in c#

I have a function which gets parameter as Distringuished name of a group and returns the nested groups or groups within a given group using SearchRequest query and SearchResponse. The code works fine ...
sagar yadwad's user avatar
0 votes
0 answers
1k views

How to connect to LDAPS using Apache LDAP Client?

I'm following the user guides for Apache's LDAP Client API to connect to the ApacheDS LDAPS server. But it will not connect. I have tried everything. I'm able to connect to the LDAP server. The user ...
codeCooker's user avatar
0 votes
1 answer
578 views

Get-ADuser to list invalid user from list [duplicate]

I'm using a Powershell script in an installation environment to check that a list of AD users has been properly added and setup by the customer. I've got the script working, and it outputs what I ...
user7815674's user avatar
0 votes
1 answer
3k views

Error with code "Missing = operator after key in hash literal, hash literal was incomplete"

I have a list of users in a CSV File that I want to find out if/when they last logged in. I can get this info for an individual account but I need to write this to a file for several accounts. The ...
Heath Hackett's user avatar
0 votes
2 answers
2k views

Active Directory Using Form Auth and Windows Auth

I have an ASP.Net Application. The requirement is to implement Form Authentication using ADFS. If the user is accessing the WebSite from within the Domain(the same Domain as the Active Directoris), ...
Ajinx's user avatar
  • 11
4 votes
2 answers
2k views

Microsoft Dynamics CRM OAuth Integration

I need to integrate my web application (multi-tenant SaaS product) into my users' Dynamics CRM so it can pull their data. I have learnt that Azure Active Directory apps can take care of such ...
Hesam's user avatar
  • 146
2 votes
2 answers
2k views

Securing REST API with OAuth2.0 or Azure Active Directory

I have a REST API that i call from within my web application in order to get the result. I have a client which asks for my API only but I can't expose my API without any security. Apparently I have to ...
Mavericks's user avatar
  • 283
1 vote
1 answer
4k views

Authentication via Active Directory using ASP.NET MVC 5 from a local development enviroment

i'm currently developing an new web application using ASP .NET MVC5 framework on my machine (local development environment). I need to implement user authentication via Active Directory. As I'm still ...
user1166085's user avatar
0 votes
1 answer
2k views

Server is unwilling to process the request when I try to save after remove member in Active Directory C#

I am analyzing and modifying a windows application about to sync data to Active Directory. When I move users to another department in active directory, I try to remove member in previous department....
Ryden Choi's user avatar
1 vote
1 answer
3k views

How can I get a UserPrincipal for a user in a different domain?

The following code works great for users in my domain (e.g., "TESTER" instead of "DEVELOPER"), but I can't figure out how to search higher than the current domain. I tried variation combinations of ...
Dinerdo's user avatar
  • 580
-1 votes
2 answers
613 views

By any means can we get access token from Azure ADAL by passing username and pass in http request

I don't need Microsoft Login screen. If I am already having username and password with me , can't I just pass them using Http client and get the authentication token. Is it possible , please suggest....
Abhi's user avatar
  • 5,541
2 votes
2 answers
1k views

Powershell DirectoryService object error neither caught nor trapped

This is part of my script: Trap {Write-Output 'Authentication Error trapped'} Try {New-Object System.DirectoryServices.DirectoryEntry $strDistinguishedName,$strUsername,$strPlainPassword -ErrorAction ...
Luke's user avatar
  • 1,972
0 votes
1 answer
1k views

Powershell script for checking AD replication

I adapted an AD replication powershell script I found online to include the code below: function ExitWithCode { param ( $exitcode ) $host.SetShouldExit($exitcode) exit } function Write-Log { &...
Niag Ntawv's user avatar
2 votes
3 answers
17k views

How to display just the group name of groups user is member of in powershell

So I have the following script but it lists the full name of the AD group. (e.g. CN=GroupName,OU=OUName,DC=DomainName,DC=com) How do I specify only the group's name, so that it lists only the name ...
Nathan McKaskle's user avatar
0 votes
1 answer
3k views

Calculate Max Token Size for a specified Computer Object?

I am aware of CheckMaxTokenSize.ps1 (and unfortunately TokenSZ.exe is no longer available, and only works in 32 bit OS), how would I calculate max token size for a specific computer object? I was ...
Brent Surphlis's user avatar
6 votes
0 answers
144 views

How to perform queries using the Azure API format: user authentication

I want to get json data as explain in rest api doc https://dev.applicationinsights.io/documentation/overview customEvents | where customDimensions.teamId == '8bcb0466-8227-4de4-b001-b70381b9cd04' As ...
Navneet Garg's user avatar
  • 1,374
0 votes
1 answer
2k views

How to authenticate user against Active Directory from java?

I need to authenticate users against Active Directory from java. In order to understand what is going on under the hood I've started with openldap docker instance and spring tutorial from here: https:/...
Artem Malinko's user avatar
0 votes
0 answers
645 views

.NET Core AD authentication

I have a .net core web app that will be on an intranet on most installs, and I really need to authenticate my user Now, I HAVE figured out how to use JWT with Azure AD, and it works fine, but ...
Charles Gallo's user avatar
0 votes
0 answers
2k views

How can I set two "default_realm" in krb5.conf

We got two active directories with different ending. companya.de companyb.com Now we want to get access with both domains in a Single Sign On website. (Kerberos) The domains are forest trusted. We ...
Bastian's user avatar
0 votes
1 answer
299 views

ASP.NET - Authentication against Active Directory fails because of NativeObject binding

I am working on an academic project, and we have to authenticate against Active Directory Domain Services accounts from a web application. I have followed this msdn tutorial, and as specified I ...
programmersn's user avatar
1 vote
1 answer
529 views

SFB 2015 & AD find users PhysicalDeliveryOfficeName and exported to CSV file

I have a CSV file with list of users in SFB on perm that doesn't have phone number assigned to them. I am trying to run the script below to collect their name and PhysicalDeliveryOfficeName and ...
Yallabina's user avatar
  • 117
0 votes
1 answer
449 views

LDAP Query originating from client-side "onload"

I have asked previous questions but I think I got too far into pre-conceived notions that I ruled out other options. I'm going to start over: I have tools which are developed and maintained in HTML ...
LiquidMusic1's user avatar
0 votes
0 answers
91 views

Catch exception when it doesn't find any member from AD

I made this code to check the groups and authorities of every member in a AD Group for that specific drive. It works for every drive I select, but it breaks when it finds both and AD group and user as ...
Fede's user avatar
  • 27
5 votes
2 answers
604 views

How to query Active Directory B if application server is in Active Directory A

So heres my question. I have a Asp.net application with a form based authentication. I have users in my database but the users also has to be in the active directory. The following code is for me to ...
TheProvost's user avatar
  • 1,873
2 votes
1 answer
3k views

Get-WmiObject from AD OU

I have a simple problem that I can't seem to work through. I need to know what servers are still running server 2008/R2. I know that Win32_OperatingSystem's Name property contains the information ...
jz9's user avatar
  • 63
0 votes
0 answers
123 views

PowerShell: how to populate hashtable automatically from get-aduser [duplicate]

using the following command, I will get the entire user detail from active directory. However, I want all the details populate into hashtable. How to do this. get-aduser User1234 -server myDomain -...
Liang Cui's user avatar
  • 131
1 vote
0 answers
51 views

SSO access to php server with AD authentification

On a RH 5.3, Apache/2.2.15, mod_auth_kerb is loaded, Active Directory 2008, we want to control access to an url with an authentified user of an AD group member without prompt user/password. Actually, ...
czb's user avatar
  • 13

1
142 143
144
145 146
333