Skip to content

Commit

Permalink
Merge pull request #1554 from Graylog2/issue-1000
Browse files Browse the repository at this point in the history
Use the root user's timezone for LDAP users by default
  • Loading branch information
joschi committed Nov 11, 2015
2 parents 7ed56ca + 621087d commit 59e4987
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ public void updateFromLdap(User user, LdapEntry userEntry, LdapSettings ldapSett
user.setFullName(fullName);
user.setExternal(true);

if (user.getTimeZone() == null) {
user.setTimeZone(configuration.getRootTimeZone());
}

final String email = userEntry.getEmail();
if (isNullOrEmpty(email)) {
LOG.debug("No email address found for user {} in LDAP. Using {}@localhost", username, username);
Expand Down

0 comments on commit 59e4987

Please sign in to comment.