Skip to content

Commit 107c0d8

Browse files
committed
Merge remote-tracking branch 'upstream/master' into postgres-query-builder
2 parents fa170b3 + 5114870 commit 107c0d8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+710
-544
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* **Prometheus**: Show template variable candidate in query editor [#9210](https://github.com/grafana/grafana/issues/9210), thx [@mtanda](https://github.com/mtanda)
1414
* **Prometheus**: Support POST for query and query_range [#9859](https://github.com/grafana/grafana/pull/9859), thx [@mtanda](https://github.com/mtanda)
1515
* **Alerting**: Add support for retries on alert queries [#5855](https://github.com/grafana/grafana/issues/5855), thx [@Thib17](https://github.com/Thib17)
16+
* **Table**: Table plugin value mappings [#7119](https://github.com/grafana/grafana/issues/7119), thx [infernix](https://github.com/infernix)
17+
* **IE11**: IE 11 compatibility [#11165](https://github.com/grafana/grafana/issues/11165)
1618

1719
### Minor
1820
* **OpsGenie**: Add triggered alerts as description [#11046](https://github.com/grafana/grafana/pull/11046), thx [@llamashoes](https://github.com/llamashoes)
@@ -25,6 +27,8 @@
2527
* **Shortcuts**: Add shortcut for duplicate panel [#11102](https://github.com/grafana/grafana/issues/11102)
2628
* **AuthProxy**: Support IPv6 in Auth proxy white list [#11330](https://github.com/grafana/grafana/pull/11330), thx [@corny](https://github.com/corny)
2729
* **SMTP**: Don't connect to STMP server using TLS unless configured. [#7189](https://github.com/grafana/grafana/issues/7189)
30+
* **Prometheus**: Escape backslash in labels correctly. [#10555](https://github.com/grafana/grafana/issues/10555), thx [@roidelapluie](https://github.com/roidelapluie)
31+
* **Variables** Case-insensitive sorting for template values [#11128](https://github.com/grafana/grafana/issues/11128) thx [@cross](https://github.com/cross)
2832

2933
# 5.0.4 (2018-03-28)
3034

PLUGIN_DEV.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ upgrading Grafana please check here before creating an issue.
99
- [Datasource plugin written in typescript](https://github.com/grafana/typescript-template-datasource)
1010
- [Simple json dataource plugin](https://github.com/grafana/simple-json-datasource)
1111
- [Plugin development guide](http://docs.grafana.org/plugins/developing/development/)
12+
- [Webpack Grafana plugin template project](https://github.com/CorpGlory/grafana-plugin-template-webpack)
1213

1314
## Changes in v4.6
1415

docker/blocks/openldap/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ EXPOSE 389
1717
VOLUME ["/etc/ldap", "/var/lib/ldap"]
1818

1919
COPY modules/ /etc/ldap.dist/modules
20+
COPY prepopulate/ /etc/ldap.dist/prepopulate
2021

2122
COPY entrypoint.sh /entrypoint.sh
2223

docker/blocks/openldap/entrypoint.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,22 +65,26 @@ EOF
6565
fi
6666

6767
if [[ -n "$SLAPD_ADDITIONAL_SCHEMAS" ]]; then
68-
IFS=","; declare -a schemas=($SLAPD_ADDITIONAL_SCHEMAS)
68+
IFS=","; declare -a schemas=($SLAPD_ADDITIONAL_SCHEMAS); unset IFS
6969

7070
for schema in "${schemas[@]}"; do
7171
slapadd -n0 -F /etc/ldap/slapd.d -l "/etc/ldap/schema/${schema}.ldif" >/dev/null 2>&1
7272
done
7373
fi
7474

7575
if [[ -n "$SLAPD_ADDITIONAL_MODULES" ]]; then
76-
IFS=","; declare -a modules=($SLAPD_ADDITIONAL_MODULES)
76+
IFS=","; declare -a modules=($SLAPD_ADDITIONAL_MODULES); unset IFS
7777

7878
for module in "${modules[@]}"; do
7979
slapadd -n0 -F /etc/ldap/slapd.d -l "/etc/ldap/modules/${module}.ldif" >/dev/null 2>&1
8080
done
8181
fi
8282

83-
chown -R openldap:openldap /etc/ldap/slapd.d/
83+
for file in `ls /etc/ldap/prepopulate/*.ldif`; do
84+
slapadd -F /etc/ldap/slapd.d -l "$file"
85+
done
86+
87+
chown -R openldap:openldap /etc/ldap/slapd.d/ /var/lib/ldap/ /var/run/slapd/
8488
else
8589
slapd_configs_in_env=`env | grep 'SLAPD_'`
8690

docker/blocks/openldap/notes.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Notes on OpenLdap Docker Block
2+
3+
Any ldif files added to the prepopulate subdirectory will be automatically imported into the OpenLdap database.
4+
5+
The ldif files add three users, `ldapviewer`, `ldapeditor` and `ldapadmin`. Two groups, `admins` and `users`, are added that correspond with the group mappings in the default conf/ldap.toml. `ldapadmin` is a member of `admins` and `ldapeditor` is a member of `users`.
6+
7+
Note that users that are added here need to specify a `memberOf` attribute manually as well as the `member` attribute for the group. The `memberOf` module usually does this automatically (if you add a group in Apache Directory Studio for example) but this does not work in the entrypoint script as it uses the `slapadd` command to add entries before the server has started and before the `memberOf` module is loaded.
8+
9+
After adding ldif files to `prepopulate`:
10+
11+
1. Remove your current docker image: `docker rm docker_openldap_1`
12+
2. Build: `docker-compose build`
13+
3. `docker-compose up`
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
dn: cn=ldapadmin,dc=grafana,dc=org
2+
3+
userPassword: grafana
4+
objectClass: person
5+
objectClass: top
6+
objectClass: inetOrgPerson
7+
objectClass: organizationalPerson
8+
sn: ldapadmin
9+
cn: ldapadmin
10+
memberOf: cn=admins,dc=grafana,dc=org
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
dn: cn=admins,dc=grafana,dc=org
2+
cn: admins
3+
member: cn=ldapadmin,dc=grafana,dc=org
4+
objectClass: groupOfNames
5+
objectClass: top
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
dn: cn=ldapeditor,dc=grafana,dc=org
2+
3+
userPassword: grafana
4+
objectClass: person
5+
objectClass: top
6+
objectClass: inetOrgPerson
7+
objectClass: organizationalPerson
8+
sn: ldapeditor
9+
cn: ldapeditor
10+
memberOf: cn=users,dc=grafana,dc=org
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
dn: cn=users,dc=grafana,dc=org
2+
cn: users
3+
member: cn=ldapeditor,dc=grafana,dc=org
4+
objectClass: groupOfNames
5+
objectClass: top
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
dn: cn=ldapviewer,dc=grafana,dc=org
2+
3+
userPassword: grafana
4+
objectClass: person
5+
objectClass: top
6+
objectClass: inetOrgPerson
7+
objectClass: organizationalPerson
8+
sn: ldapviewer
9+
cn: ldapviewer

0 commit comments

Comments
 (0)