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) {