active-directory

Checkboxes in powershell GUI not working as supposed to

有些话、适合烂在心里 提交于 2020-03-06 09:28:40
问题 I have a GUI created in powershell, which contains some checkboxes. Later in the script I use the values from the checkboxes to set parameters of a user account, but it seems the script doesn't take the values as intended. I mean, sometimes the account is created with correct values, sometimes not. I wasn't able to discover any pattern when it works and when not. $Orig_exec_policy = Get-ExecutionPolicy Set-ExecutionPolicy Bypass -Force <# This form was created using POSHGUI.com a free online

Spring Boot LDAP Authentication

家住魔仙堡 提交于 2020-03-06 07:32:26
问题 I am trying to test Active Directory authentication with Spring Boot. I have an Active Directory working and I can access to it via LDAP browsers for my admin user with that user dn: CN=Administrator,CN=Users,DC=contoso,DC=com I want to use LDAP as authentication manager at my application. Simple example from docs is as follows: @Autowired public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception { auth .ldapAuthentication() .userDnPatterns("CN={0},CN=Users,DC=contoso,DC

Verify if password is correct

核能气质少年 提交于 2020-03-05 19:44:46
问题 i need to verify if the password is correct for a user. i have this code: private bool checkOldPasswordValid(string password, string username) { using (DirectoryEntry entry = new DirectoryEntry("WinNT://" + Environment.MachineName + ",computer")) { entry.Username = username; entry.Password = password; DirectorySearcher searcher = new DirectorySearcher(entry); searcher.Filter = "(objectclass=user)"; try { searcher.FindOne(); } catch (Exception ex) { return false; } return true; } } but then

Verify if password is correct

与世无争的帅哥 提交于 2020-03-05 19:43:27
问题 i need to verify if the password is correct for a user. i have this code: private bool checkOldPasswordValid(string password, string username) { using (DirectoryEntry entry = new DirectoryEntry("WinNT://" + Environment.MachineName + ",computer")) { entry.Username = username; entry.Password = password; DirectorySearcher searcher = new DirectorySearcher(entry); searcher.Filter = "(objectclass=user)"; try { searcher.FindOne(); } catch (Exception ex) { return false; } return true; } } but then

Verify if password is correct

梦想的初衷 提交于 2020-03-05 19:43:13
问题 i need to verify if the password is correct for a user. i have this code: private bool checkOldPasswordValid(string password, string username) { using (DirectoryEntry entry = new DirectoryEntry("WinNT://" + Environment.MachineName + ",computer")) { entry.Username = username; entry.Password = password; DirectorySearcher searcher = new DirectorySearcher(entry); searcher.Filter = "(objectclass=user)"; try { searcher.FindOne(); } catch (Exception ex) { return false; } return true; } } but then

Controlling access to a website with IIS/Active Directory

≯℡__Kan透↙ 提交于 2020-02-29 06:54:47
问题 I need to secure a legacy help site on our network that points out to the world. Ideally, I want to have people authenticate with their active directory logins, because everybody in the company is already there, and they already know that stuff. Ideally, I'd need to set the default domain so people don't have to type that. I have an example to model my solution after, but to call it weird is a bit of an understatement. Anonymous access is enabled, with authenticated access restricted to

Controlling access to a website with IIS/Active Directory

荒凉一梦 提交于 2020-02-29 06:54:14
问题 I need to secure a legacy help site on our network that points out to the world. Ideally, I want to have people authenticate with their active directory logins, because everybody in the company is already there, and they already know that stuff. Ideally, I'd need to set the default domain so people don't have to type that. I have an example to model my solution after, but to call it weird is a bit of an understatement. Anonymous access is enabled, with authenticated access restricted to

Linux-based solution for domain management?

二次信任 提交于 2020-02-27 03:36:05
问题 Using any member of the Windows Server family, I can set up an active directory, and have a single pool of users for a large scale of computers; access can be given / removed for any shared resources in the given domain (including access to client computers, etc). What similar (and widespread) solutions exist for managing a multi-user, multi-computer environment using Linux? What are their advantages/disadvantages? And how can they interoperate with Windows? 回答1: Not sure if this is what you

I need to find out disabled users from ldap

。_饼干妹妹 提交于 2020-02-25 00:46:45
问题 I am trying to find out whether a user is disabled in ldap using ldapsearch utility but I have been unsuccessful so far. This is what i have got so far ldapsearch -h hostname -D 'Service Account' -b 'basedn' sAMAccountName='disabled user' -w 'password' # extended LDIF # # LDAPv3 # base <basedn> with scope subtree # filter: sAMAccountName=disabled user # requesting: ALL # # search result search: 2 result: 0 Success # numResponses: 1 I have even tried with -LLL nsaccountlock it give me nothing.

I need to find out disabled users from ldap

邮差的信 提交于 2020-02-25 00:43:58
问题 I am trying to find out whether a user is disabled in ldap using ldapsearch utility but I have been unsuccessful so far. This is what i have got so far ldapsearch -h hostname -D 'Service Account' -b 'basedn' sAMAccountName='disabled user' -w 'password' # extended LDIF # # LDAPv3 # base <basedn> with scope subtree # filter: sAMAccountName=disabled user # requesting: ALL # # search result search: 2 result: 0 Success # numResponses: 1 I have even tried with -LLL nsaccountlock it give me nothing.