Advertisement
GregLeblanc

Untitled

Nov 8th, 2021
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.98 KB | None | 0 0
  1. $ git diff WebSecurityConfig.java
  2. diff --git a/src/main/java/org/phoebus/olog/WebSecurityConfig.java b/src/main/java/org/phoebus/olog/WebSecurityConfig.ja
  3. index 23ff161..c42d26a 100644
  4. --- a/src/main/java/org/phoebus/olog/WebSecurityConfig.java
  5. +++ b/src/main/java/org/phoebus/olog/WebSecurityConfig.java
  6. @@ -170,7 +170,13 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
  7.                      .userDnPatterns(embedded_ldap_user_dn_pattern)
  8.                      .ldapAuthoritiesPopulator(myAuthPopulator)
  9.                      .groupSearchBase("ou=Group")
  10. -                    .contextSource(contextSource);
  11. +                    .contextSource()
  12. +                        .url(embedded_ldap_url)
  13. +                        .and()
  14. +                    .passwordCompare()
  15. +                        .passwordEncoder(new BCryptPasswordEncoder())
  16. +                        .passwordAttribute("userPassword");
  17. +                    // .contextSource(contextSource);
  18.  
  19.          }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement