active-directory

Target all users in two OU's and remove Distribution Lists

大城市里の小女人 提交于 2019-12-25 15:59:32
问题 hoping to get a little help here – I looked around the site but didn’t see anything quite like this (please direct me if there IS and I missed it). I need to incorporate a new step in our user offboarding process, which would remove them from any AD Distribution Lists. I would like to set this up as a scheduled task to run once a night against two OU’s where the inactivated user accounts can be found. I’d like to run this by pointing it at the USERS instead of the OU where the Distro Lists

How to retrieve “windows active directory - attributes id's ” in java?

主宰稳场 提交于 2019-12-25 12:54:30
问题 I have searched a lot to get the answer for my question. But I can't . What I have got in search : public class RetrieveUserAttributes { public static void main(String[] args) { RetrieveUserAttributes retrieveUserAttributes = new RetrieveUserAttributes(); retrieveUserAttributes.getUserBasicAttributes("anand", retrieveUserAttributes.getLdapContext()); } public LdapContext getLdapContext(){ LdapContext ctx = null; try{ Hashtable<String, String> env = new Hashtable<String, String>(); env.put

How to retrieve “windows active directory - attributes id's ” in java?

混江龙づ霸主 提交于 2019-12-25 12:52:10
问题 I have searched a lot to get the answer for my question. But I can't . What I have got in search : public class RetrieveUserAttributes { public static void main(String[] args) { RetrieveUserAttributes retrieveUserAttributes = new RetrieveUserAttributes(); retrieveUserAttributes.getUserBasicAttributes("anand", retrieveUserAttributes.getLdapContext()); } public LdapContext getLdapContext(){ LdapContext ctx = null; try{ Hashtable<String, String> env = new Hashtable<String, String>(); env.put

Powershell variables in Get-AdUser

混江龙づ霸主 提交于 2019-12-25 12:36:32
问题 I'm trying to write a simple powershell script. Get-ADuser -Filter {GivenName -eq $GivenName $hateList} -SearchBase $Container -Properties displayName,telephoneNumber,department|ForEach-Object {"FullName`t: $($_.displayName)`r`nPhone`t`t: $($_.telephoneNumber)`r`nDepartment`t: $($_.department)`r`n"} The error what I got: Get-ADUser : Error parsing query: 'GivenName -eq $GivenName $hateList' Error Message: 'syntax error' at position: '26'. So the problem is that the variables aren't

ASP.NET Windows authentication to another Active Directory domain

自作多情 提交于 2019-12-25 12:08:22
问题 We have ASP.NET web application running on Server1. Server1 is in Windows Active Directory domain Domain1. We would like to have users setup in Domain2 to be able to access our web application using Windows Authentication against Domain2. ANY user who can authenticate to Domain2 should be able to access our application. Domain1 and Domain2 are on the same LAN but there is no trust or any other relationship between these 2 domains. Computers from Domain1 can route to and access computers from

How to make an Active Directory query from VBScript on a non-domain computer using domain credentials

半城伤御伤魂 提交于 2019-12-25 09:48:11
问题 I am writing a VBScript which will run on a computer that is not yet a member of the domain but needs to make a query against Active Directory to check a group's membership (as a step in the build process while re-imaging a computer). The script will have access to the credentials (i.e., user name and password) for a domain user account when it runs. At the point in the script where this query is made against Active Directory, how can I use the domain credentials in order to authenticate and

How to make an Active Directory query from VBScript on a non-domain computer using domain credentials

旧城冷巷雨未停 提交于 2019-12-25 09:47:47
问题 I am writing a VBScript which will run on a computer that is not yet a member of the domain but needs to make a query against Active Directory to check a group's membership (as a step in the build process while re-imaging a computer). The script will have access to the credentials (i.e., user name and password) for a domain user account when it runs. At the point in the script where this query is made against Active Directory, how can I use the domain credentials in order to authenticate and

How to make an Active Directory query from VBScript on a non-domain computer using domain credentials

若如初见. 提交于 2019-12-25 09:47:38
问题 I am writing a VBScript which will run on a computer that is not yet a member of the domain but needs to make a query against Active Directory to check a group's membership (as a step in the build process while re-imaging a computer). The script will have access to the credentials (i.e., user name and password) for a domain user account when it runs. At the point in the script where this query is made against Active Directory, how can I use the domain credentials in order to authenticate and

Azure AD - disable a client's application

你说的曾经没有我的故事 提交于 2019-12-25 09:17:04
问题 I want to create a service that can deny\revoke access to a user's mobile mail application. To be specific, I want to temporarily revoke access to a mobile mail client app (like Nine) using office365 online exchange mail, which is authenticated as an Azure Active Directory application. So far I figured out how to do similar or partial actions: I can manually revoke azure AD apps using this link: https://account.activedirectory.windowsazure.com/applications/default.aspx But I didn't find an

Using Active Directory authentication in API app in azure

☆樱花仙子☆ 提交于 2019-12-25 09:16:48
问题 Using this article I've built an Java Api App hosted on Azure. I am able to request the API with Postman, Curl and within my browser. But now I added authentication to the api app using Active Directory. Now If I want to request the API I am forwarded to a login page when using my browser. But now I would like to use the API with authentication with Curl and Postman. How to do that? EDIT: What did I try? In the following I use this http request url which works with authentication switched off