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
(cherry picked from commit 59e4987)
  • Loading branch information
joschi authored and Jochen Schalanda committed Nov 11, 2015
1 parent 59babe0 commit 516541e
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -171,6 +171,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 516541e

Please sign in to comment.