소스 검색

fix issue with ldapUser permission not retrieving user during configguide or configeditor in certain situations

Jason Rivard 4 년 전
부모
커밋
40bcebb285
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      server/src/main/java/password/pwm/ldap/permission/LdapUserDNTypeHelper.java

+ 1 - 0
server/src/main/java/password/pwm/ldap/permission/LdapUserDNTypeHelper.java

@@ -72,6 +72,7 @@ class LdapUserDNTypeHelper implements PermissionTypeHelper
         return SearchConfiguration.builder()
         return SearchConfiguration.builder()
                 .username( "*" )
                 .username( "*" )
                 .enableContextValidation( false )
                 .enableContextValidation( false )
+                .enableValueEscaping( false )
                 .ldapProfile( UserPermissionUtility.profileIdForPermission( userPermission ) )
                 .ldapProfile( UserPermissionUtility.profileIdForPermission( userPermission ) )
                 .contexts( Collections.singletonList( userPermission.getLdapBase() ) )
                 .contexts( Collections.singletonList( userPermission.getLdapBase() ) )
                 .searchScope( SearchConfiguration.SearchScope.base )
                 .searchScope( SearchConfiguration.SearchScope.base )