aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database/LdapProvider.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-11-14 14:38:50 +0500
committerAbyss777 <abyss@fox5.ru>2017-11-14 14:38:50 +0500
commit31ebe3cd08a28890136cab5804903a7cf397aad6 (patch)
treeb4828643e434123232a37c73b731526879834583 /src/org/traccar/database/LdapProvider.java
parente48863c91dd049315e5ad336e5950e911cac5495 (diff)
downloadtrackermap-server-31ebe3cd08a28890136cab5804903a7cf397aad6.tar.gz
trackermap-server-31ebe3cd08a28890136cab5804903a7cf397aad6.tar.bz2
trackermap-server-31ebe3cd08a28890136cab5804903a7cf397aad6.zip
Do geocoding for every events related positions
Diffstat (limited to 'src/org/traccar/database/LdapProvider.java')
-rw-r--r--src/org/traccar/database/LdapProvider.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/database/LdapProvider.java b/src/org/traccar/database/LdapProvider.java
index b193b87c1..2c4b7ceb1 100644
--- a/src/org/traccar/database/LdapProvider.java
+++ b/src/org/traccar/database/LdapProvider.java
@@ -78,7 +78,7 @@ public class LdapProvider {
if (this.adminFilter != null) {
try {
InitialDirContext context = initContext();
- String searchString = new String(adminFilter).replace(":login", accountName);
+ String searchString = adminFilter.replace(":login", accountName);
SearchControls searchControls = new SearchControls();
searchControls.setSearchScope(SearchControls.SUBTREE_SCOPE);
NamingEnumeration<SearchResult> results = context.search(searchBase, searchString, searchControls);
@@ -104,7 +104,7 @@ public class LdapProvider {
private SearchResult lookupUser(String accountName) throws NamingException {
InitialDirContext context = initContext();
- String searchString = new String(searchFilter).replace(":login", accountName);
+ String searchString = searchFilter.replace(":login", accountName);
SearchControls searchControls = new SearchControls();
String[] attributeFilter = {idAttribute, nameAttribute, mailAttribute};