Find Jobs
Hire Freelancers

Help to solve Issue with Windows AD and Springboot app -- 2

$15-25 USD / hour

진행 중
게시됨 3년 이상 전

$15-25 USD / hour

Password policy is not working completely in Windows server 2016 AD while using UnboundID in springboot app I'm having issues with an AD in Windows server 2016 with a passsword policy like this one: [login to view URL] 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: 27285514

프로젝트 정보

제안서 1개
원격근무 프로젝트
활동 중 4년 전

돈을 좀 벌 생각이십니까?

프리랜서 입찰의 이점

예산 및 기간 설정
작업 결과에 대한 급여 수급
제안의 개요를 자세히 쓰세요
무료로 프로젝트에 신청하고 입찰할 수 있습니다
프로젝트를 수여된 사용자:
사용자 아바타
Hello , I have experience in AD. can we check with issue. hope I can able to resolve from my end. you can pay me once the issue is fixed
$28 USD 2일에
0.0 (1 건의 리뷰)
0.0
0.0

고객에 대한 정보

국기 (COLOMBIA)
Armenia, Colombia
0.0
0
결제 수단 확인
8월 28, 2020부터 회원입니다

고객 확인

감사합니다! 무료 크레딧을 신청할 수 있는 링크를 이메일로 보내드렸습니다.
이메일을 보내는 동안 문제가 발생했습니다. 다시 시도해 주세요.
등록 사용자 전체 등록 건수(일자리)
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
미리 보기 화면을 준비 중...
위치 정보 관련 접근권이 허용되었습니다.
고객님의 로그인 세션이 만료되어, 자동으로 로그아웃 처리가 되었습니다. 다시 로그인하여 주십시오.