Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
7d6cda49
Commit
7d6cda49
authored
Jun 08, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:grafana/grafana
parents
b25cb602
22cda198
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
conf/defaults.ini
+1
-1
conf/sample.ini
+1
-1
pkg/login/ldap.go
+2
-2
No files found.
conf/defaults.ini
View file @
7d6cda49
...
...
@@ -290,7 +290,7 @@ facility =
# Syslog tag. By default, the process' argv[0] is used.
tag
=
#################################### AM
PQ
Event Publisher ##########################
#################################### AM
QP
Event Publisher ##########################
[event_publisher]
enabled
=
false
rabbitmq_url
=
amqp://localhost/
...
...
conf/sample.ini
View file @
7d6cda49
...
...
@@ -258,7 +258,7 @@ check_for_updates = true
# Expired days of log file(delete after max days), default is 7
;max_days = 7
#################################### AM
PQ
Event Publisher ##########################
#################################### AM
QP
Event Publisher ##########################
[event_publisher]
;enabled = false
;rabbitmq_url = amqp://localhost/
...
...
pkg/login/ldap.go
View file @
7d6cda49
...
...
@@ -291,7 +291,7 @@ func (a *ldapAuther) searchForUser(username string) (*ldapUserInfo, error) {
a
.
server
.
Attr
.
Name
,
a
.
server
.
Attr
.
MemberOf
,
},
Filter
:
strings
.
Replace
(
a
.
server
.
SearchFilter
,
"%s"
,
username
,
-
1
),
Filter
:
strings
.
Replace
(
a
.
server
.
SearchFilter
,
"%s"
,
ldap
.
EscapeFilter
(
username
)
,
-
1
),
}
searchResult
,
err
=
a
.
conn
.
Search
(
&
searchReq
)
...
...
@@ -324,7 +324,7 @@ func (a *ldapAuther) searchForUser(username string) (*ldapUserInfo, error) {
if
a
.
server
.
GroupSearchFilterUserAttribute
==
""
{
filter_replace
=
getLdapAttr
(
a
.
server
.
Attr
.
Username
,
searchResult
)
}
filter
:=
strings
.
Replace
(
a
.
server
.
GroupSearchFilter
,
"%s"
,
filter_replace
,
-
1
)
filter
:=
strings
.
Replace
(
a
.
server
.
GroupSearchFilter
,
"%s"
,
ldap
.
EscapeFilter
(
filter_replace
)
,
-
1
)
if
ldapCfg
.
VerboseLogging
{
log
.
Info
(
"LDAP: Searching for user's groups: %s"
,
filter
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment