From e3ea7beb96d4fee1cb665f8cd8db69ff84079533 Mon Sep 17 00:00:00 2001 From: Andrew DeMaria Date: Sat, 28 Jul 2018 13:38:15 -0600 Subject: [PATCH] Fix #764 Signed-off-by: Andrew DeMaria --- .../org/airsonic/player/service/SecurityService.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/airsonic-main/src/main/java/org/airsonic/player/service/SecurityService.java b/airsonic-main/src/main/java/org/airsonic/player/service/SecurityService.java index 2015a446..f292fb80 100644 --- a/airsonic-main/src/main/java/org/airsonic/player/service/SecurityService.java +++ b/airsonic-main/src/main/java/org/airsonic/player/service/SecurityService.java @@ -81,7 +81,14 @@ public class SecurityService implements UserDetailsService { List authorities = getGrantedAuthorities(username); - return new org.springframework.security.core.userdetails.User(username, user.getPassword(), authorities); + return new org.springframework.security.core.userdetails.User( + username, + user.getPassword(), + !user.isLdapAuthenticated(), + true, + true, + true, + authorities); } public List getGrantedAuthorities(String username) {