Find Jobs
Hire Freelancers

Using password policies in Windows server 2016 from springboot app

$30-250 USD

已关闭
已发布超过 3 年前

$30-250 USD

货到付款
Password policy is not working completely in Windows server 2016 AD while using UnboundID in springboot app. Now in a Springboot app with UnboundID the first issue that I've found is that the Minimum password age rule is being ignored while I change a password, there's no error coming from the AD and the app changes the password correctly, with something like this: public String changePassword(UserAndPasswordDTO credentials) { // Create connection with active directory final LDAPConnection connection = [login to view URL](myHost, [login to view URL](port), dn, password); if (connection != null) { try { // Properly encode the password. It must be enclosed in quotation marks, // and it must use a UTF-16LE encoding. [login to view URL]("Going to encode the password."); byte[] quotedPasswordBytes = null; try { final String quotedPassword = '"' + [login to view URL]() + '"'; quotedPasswordBytes = [login to view URL]("UTF-16LE"); } catch (final UnsupportedEncodingException uee) { [login to view URL]("Unable to encode the quoted password in UTF-16LE: " + [login to view URL](uee)); } // Search in active directory SearchResult searchResult = [login to view URL]("dc=" + domain + ",dc=com", [login to view URL], "sAMAccountName=" + [login to view URL]()); List<SearchResultEntry> searchEntries = [login to view URL](); if ([login to view URL]() != 1) { // The search didn't match exactly one entry. [login to view URL]("Coming out of the change password service"); return "The search didn't match exactly one entry."; } else { // Get the dn value of the search String userDN = [login to view URL](0).getAttribute("distinguishedName").getValue(); // Attempt to modify the user password. final Modification mod = new Modification([login to view URL], "unicodePwd", quotedPasswordBytes); [login to view URL](userDN, mod); [login to view URL]("Coming out of the change password service"); return "Password changed succesfully"; } } catch (LDAPException e) { [login to view URL]("Error when try to search the user to modify his password"); [login to view URL]("Coming out of the change password service"); return "Error when try to search the user to modify his password"; } finally { [login to view URL](); } } else { // Connection to AD is null [login to view URL]("Connection to active directory is null"); [login to view URL]("Coming out of the change password service"); return "Active Directory connection error"; } } In this scenario, should be working Enforce password history too, but it allows to repeat the password, i.e. change password to abc+000 more than 10 consecutive times, meaning that this password history is not generating an error or something. So, here comes my questions... Why is it happening this? and how can i solve it? Any help will be appreciated. Thanks! PD: I tested the Complexity requirements and length rule, and these are working good returning an error for the action in the AD. PD2: The AD is under LDAPS protocol. Link reference in stackoverflow [login to view URL]
项目 ID: 28304008

关于此项目

1条提案
远程项目
活跃3 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
1威客以均价$250 USD来参与此工作竞标
用户头像
Hi Hiring manager I am Senior Java Developer (SpringBoot, Restful API, Microservices, DevOps) > Programming Languages - Java - Spring Boot - Spring Framework - Spring MVC - Spring Security - Spring Cloud - Microservices with Spring Boot - JSON Web Token (JWT) Authentication - Spring scheduler - Spring Data JPA - Hibernate - Lombok - JSP - Servlet - Quartz scheduler - JDBC template - Junit test > Design Pattern - Data Transfer Object (DTO) > Build Tool - Maven > Web Services - Spring Rest API Web Services - Restful Web Services with Jersey - REST API with Node + Express + Mongo DB - Java API for RESTful Web Services (JAX-RS) - Java API for XML-Based Web Services (JAX-WS) > Database (SQL and NoSQL Database) - MySQL - PostgreSQL - MongoDB > DevOps - AWS (IAM, Elastic Beanstalk, EC2, RDS, S3) - Docker > Front-End Framework / JavaScript / Typescript Languages - Angular 2+ - Node JS - Express JS - Mongoose JS > Scripting Languages ✔ HTML - JSTL - Java Script - JQuery - CSS > Web Server - Tomcat > Version Management Tools - GitHub - Github Desktop - Bitbucket - Source Tree > Development IDE and Text Editors - Eclipse - Visual Studio Code - Sublime Text - Notepad ++ > Familiar with following tools - Postman - Jira - Trello > Technical Tutor / Mentor / Teacher - Teach Java - Teach Spring Framework - Teach Spring Boot - Teach existing project if you have. Thanks
$250 USD 在5天之内
0.0 (0条评论)
3.0
3.0

关于客户

COLOMBIA的国旗
Envigado, Colombia
5.0
1
付款方式已验证
会员自1月 22, 2019起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。