active-directory

Use Python script to manage remote LDAP server

吃可爱长大的小学妹 提交于 2020-01-05 13:33:50
问题 Background: I am working on an API to centralize user creation and management for multiple resources(e.g. Google Apps, Dropbox, etc...). On a Linux VM, I developed an API and web interface that allows me(and my co-admins) to authenticate and manage user accounts for these services. The next thing I need to integrate is our Active Directory which is hosted on a remote Windows Server 2008. I have been trying to use python-ldap to connect to and retrieve/modify information but have had issues

How to check a server is alive? [duplicate]

烂漫一生 提交于 2020-01-05 13:13:12
问题 This question already has answers here : C# Check Remote Server (5 answers) Closed 5 years ago . I want to check a server if it is alive or not without using Ping() method. Are there any solutions to to that? At the current the method below is ok to me. public static bool PingToServer(string ipServer) { bool isServerLife = false; try { Ping ping = new Ping(); PingReply pingReply = ping.Send(ipServer, 5000); if (pingReply.Status == IPStatus.Success) { isServerLife = true; } } catch (Exception

Property value returned by DirectorySearcher and SearchResponse are of different type System._comobject and Byte array

左心房为你撑大大i 提交于 2020-01-05 10:08:41
问题 I am working on a website to manage active directory. I want to check that whether user has permission to change password or not. So I have to find "ntSecurityDescriptor" property value after that I have to cast it into IADsSecurityDescriptor. Now if I use DirectorySearcher class then property value is of type System._ComObject and easily casted to IADsSecurityDescriptor . But when I use LdapConnection and SearchResponse I get property value of type. byte[] array which is unale to cast to

Adding an Active Directory group with Powershell

戏子无情 提交于 2020-01-05 09:26:00
问题 I'm trying to create a new group in the DomainLocal with Powershell but my code below is not working. I don't get an error, but nor does it create the group in the path given. Function AD{ Param ( [Parameter (Mandatory=$true)] [STRING] $ProjectCode ) #setting up Folder template path and name for folders $ProjectName = "$($ProjectCode)" $Folder = "C:\FunctionOutputs\ProjectFolders" $ProjectFolder = " $Folder\$($ProjectName)" #establishing AD group and member naming conventions $adminName = "AB

LDAP authentication with AD LDP from Spring Boot application

三世轮回 提交于 2020-01-05 08:26:56
问题 I am trying to implement LDAP authentication in a Sprint Boot application. In the test environment I have installed an Active Directory LDP service with which to authenticate. I have created a user within the AD instance, enabled the account and set a password. I am then trying to authenticate using this account from the Spring login form. When I try to log in using AD I get an error message: Your login attempt was not successful, try again. Reason: Bad credentials As I am new to both AD and

Installing Chrome Extension via ExtensionInstallForcelist without Chrome Web Store

為{幸葍}努か 提交于 2020-01-05 08:23:50
问题 I try to auto-install a chrome extension on a WIN10 device that have no connection to the internet and thus can not access the Chrome Web Store. So uploading the extension to the CWS is no option. The extension exists as a crx file on a server in a network and on the device. On Chrome Versions 59 and lower I could install the extension via settings in the registry. When Chrome was started, the user was ask if he wants to install the extension. For this I used the registry key

Looping through Active Directory to get managers and direct reports

筅森魡賤 提交于 2020-01-05 08:03:29
问题 Go easy on me, this is my first question ;) I've spent a lot of time looking, but I haven't found what I'm looking for. I've got an intranet based reporting tool (VB.Net + ASP.Net Integrated Windows Authentication) that looks up users and managers from a SQL Server 2005 table to roll up the reporting to manager level. This table is currently manually maintained and I've been asked to make it more dynamic as it is going to be up-scaled for far more users. Therefore I'm looking to link in with

Powershell active directory properties

房东的猫 提交于 2020-01-05 05:57:34
问题 I am trying to find the properties of active directory: $strFilter = "(&(objectCategory=User))" $objDomain = New-Object System.DirectoryServices.DirectoryEntry $objSearcher = New-Object System.DirectoryServices.DirectorySearcher $objSearcher.SearchRoot = $objDomain $objSearcher.PageSize = 1000 $objSearcher.Filter = $strFilter $objSearcher.SearchScope = "Subtree" $colResults = $objSearcher.FindAll() foreach ($objResult in $colResults){ $objItem = $objResult.Properties I can call $objitem.name,

How to check when user's password has expired in Active Directory LDS (ADAM), programmatically?

寵の児 提交于 2020-01-05 05:47:08
问题 Is there a way to check whether a user's password has expired in a Active Directory Lightweight Directory Services instance? Specifically, is there a property (hopefully a boolean ) that defines whether the password expired, taking into consideration whether the user's password is past expiration date and also whether the user's password is set to expire at all (in which case it should always return false ). We're trying to query Active Directory for this information using the DirectoryEntry

Spring LDAP/Active Directory with SQL

为君一笑 提交于 2020-01-05 04:33:08
问题 I am trying to enable both JDBA and Active Directory Authentication , i made great progress but currently i am stuck as userDetailsService is trying to compare the password in LdapUserDetails which does not exist . When checking the log i see it is able to query the user and authenticate and get the roles correctly. I know i should use bindService or so , but i couldn't find till now how to do that. Below is what i did . in WebSecurityConfigurerAdapter @Autowired public void configureGlobal