aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database/DataManager.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-11-27 17:20:35 +0500
committerAbyss777 <abyss@fox5.ru>2017-11-27 17:20:35 +0500
commit9cc7ba4e9a1dfceba1b88e32a35915f513b3a688 (patch)
treef888e333462c560c973bd181b03fc7e6c89f7e54 /src/org/traccar/database/DataManager.java
parent371edced45683da9a3b7195d48787b9f7a40b232 (diff)
downloadtrackermap-server-9cc7ba4e9a1dfceba1b88e32a35915f513b3a688.tar.gz
trackermap-server-9cc7ba4e9a1dfceba1b88e32a35915f513b3a688.tar.bz2
trackermap-server-9cc7ba4e9a1dfceba1b88e32a35915f513b3a688.zip
- Fix local login if ldap enabled
- Do not allow user edit own "Limit Command" permission
Diffstat (limited to 'src/org/traccar/database/DataManager.java')
-rw-r--r--src/org/traccar/database/DataManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java
index abc424ff9..f813426d3 100644
--- a/src/org/traccar/database/DataManager.java
+++ b/src/org/traccar/database/DataManager.java
@@ -307,7 +307,7 @@ public class DataManager {
.executeQuerySingle(User.class);
LdapProvider ldapProvider = Context.getLdapProvider();
if (user != null) {
- if (ldapProvider != null && ldapProvider.login(user.getLogin(), password)
+ if (ldapProvider != null && user.getLogin() != null && ldapProvider.login(user.getLogin(), password)
|| !forceLdap && user.isPasswordValid(password)) {
return user;
}