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
37efa934
Commit
37efa934
authored
Jul 02, 2018
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ldap: improved ldap test env with more structured users and groups
parent
5e08bf51
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
58 additions
and
22 deletions
+58
-22
.gitignore
+1
-0
docker/blocks/openldap/entrypoint.sh
+9
-1
docker/blocks/openldap/prepopulate/groups/admins.ldif
+2
-2
docker/blocks/openldap/prepopulate/groups/backend.ldif
+5
-0
docker/blocks/openldap/prepopulate/groups/editor.ldif
+5
-0
docker/blocks/openldap/prepopulate/groups/frontend.ldif
+5
-0
docker/blocks/openldap/prepopulate/units/groups.ldif
+3
-0
docker/blocks/openldap/prepopulate/units/users.ldif
+3
-0
docker/blocks/openldap/prepopulate/users/ldap-admin.ldif
+11
-0
docker/blocks/openldap/prepopulate/users/ldap-editor.ldif
+5
-5
docker/blocks/openldap/prepopulate/users/ldap-frontend-1.ldif
+5
-5
docker/blocks/openldap/prepopulate/users/ldap-viewer.ldif
+4
-4
docker/blocks/openldap/prepopulate/usersgroup.ldif
+0
-5
No files found.
.gitignore
View file @
37efa934
...
...
@@ -43,6 +43,7 @@ fig.yml
docker-compose.yml
docker-compose.yaml
/conf/provisioning/**/custom.yaml
/conf/ldap_dev.toml
profile.cov
/grafana
/local
...
...
docker/blocks/openldap/entrypoint.sh
View file @
37efa934
...
...
@@ -80,7 +80,15 @@ EOF
done
fi
for
file
in
`
ls
/etc/ldap/prepopulate/
*
.ldif
`
;
do
for
file
in
`
ls
/etc/ldap/prepopulate/units/
*
.ldif
`
;
do
slapadd
-F
/etc/ldap/slapd.d
-l
"
$file
"
done
for
file
in
`
ls
/etc/ldap/prepopulate/groups/
*
.ldif
`
;
do
slapadd
-F
/etc/ldap/slapd.d
-l
"
$file
"
done
for
file
in
`
ls
/etc/ldap/prepopulate/users/
*
.ldif
`
;
do
slapadd
-F
/etc/ldap/slapd.d
-l
"
$file
"
done
...
...
docker/blocks/openldap/prepopulate/
adminsgroup
.ldif
→
docker/blocks/openldap/prepopulate/
groups/admins
.ldif
View file @
37efa934
dn: cn=admins,dc=grafana,dc=org
dn: cn=admins,
ou=groups,
dc=grafana,dc=org
cn: admins
member: cn=ldapadmin,dc=grafana,dc=org
objectClass: groupOfNames
objectClass: top
member: cn=ldap-admin,ou=users,dc=grafana,dc=org
docker/blocks/openldap/prepopulate/groups/backend.ldif
0 → 100644
View file @
37efa934
dn: cn=backend,ou=groups,dc=grafana,dc=org
cn: backend
objectClass: groupOfNames
objectClass: top
member: cn=ldap-editor,dc=grafana,dc=org
docker/blocks/openldap/prepopulate/groups/editor.ldif
0 → 100644
View file @
37efa934
dn: cn=editors,ou=groups,dc=grafana,dc=org
cn: editors
objectClass: groupOfNames
objectClass: top
member: cn=ldap-editor,ou=users,dc=grafana,dc=org
docker/blocks/openldap/prepopulate/groups/frontend.ldif
0 → 100644
View file @
37efa934
dn: cn=frontend,ou=groups,dc=grafana,dc=org
cn: frontend
objectClass: groupOfNames
objectClass: top
member: cn=ldap-frontend-1,ou=users,dc=grafana,dc=org
docker/blocks/openldap/prepopulate/units/groups.ldif
0 → 100644
View file @
37efa934
dn: ou=groups,dc=grafana,dc=org
objectclass: top
objectclass: organizationalUnit
docker/blocks/openldap/prepopulate/units/users.ldif
0 → 100644
View file @
37efa934
dn: ou=users,dc=grafana,dc=org
objectclass: top
objectclass: organizationalUnit
docker/blocks/openldap/prepopulate/users/ldap-admin.ldif
0 → 100644
View file @
37efa934
dn: cn=ldap-admin,ou=users,dc=grafana,dc=org
mail: ldap-admin@grafana.com
userPassword: grafana
objectClass: person
objectClass: top
objectClass: inetOrgPerson
objectClass: organizationalPerson
sn: ldap-admin
cn: ldap-admin
memberOf: cn=admins,ou=groups,dc=grafana,dc=org
memberOf: cn=editors,ou=groups,dc=grafana,dc=org
docker/blocks/openldap/prepopulate/
admin
.ldif
→
docker/blocks/openldap/prepopulate/
users/ldap-editor
.ldif
View file @
37efa934
dn: cn=ldap
admin
,dc=grafana,dc=org
mail: ldap
admin
@grafana.com
dn: cn=ldap
-editor,ou=users
,dc=grafana,dc=org
mail: ldap
-editor
@grafana.com
userPassword: grafana
objectClass: person
objectClass: top
objectClass: inetOrgPerson
objectClass: organizationalPerson
sn: ldap
admin
cn: ldap
admin
memberOf: cn=
admin
s,dc=grafana,dc=org
sn: ldap
-editor
cn: ldap
-editor
memberOf: cn=
editors,ou=group
s,dc=grafana,dc=org
docker/blocks/openldap/prepopulate/
editor
.ldif
→
docker/blocks/openldap/prepopulate/
users/ldap-frontend-1
.ldif
View file @
37efa934
dn: cn=ldap
editor
,dc=grafana,dc=org
mail: ldap
editor
@grafana.com
dn: cn=ldap
-frontend-1,ou=users
,dc=grafana,dc=org
mail: ldap
-frontend-1
@grafana.com
userPassword: grafana
objectClass: person
objectClass: top
objectClass: inetOrgPerson
objectClass: organizationalPerson
sn: ldap
editor
cn: ldap
editor
memberOf: cn=
user
s,dc=grafana,dc=org
sn: ldap
-frontend-1
cn: ldap
-frontend-1
memberOf: cn=
frontend,ou=group
s,dc=grafana,dc=org
docker/blocks/openldap/prepopulate/viewer.ldif
→
docker/blocks/openldap/prepopulate/
users/ldap-
viewer.ldif
View file @
37efa934
dn: cn=ldap
viewer
,dc=grafana,dc=org
mail: ldapviewer@grafana.com
dn: cn=ldap
-viewer,ou=users
,dc=grafana,dc=org
mail: ldap
-
viewer@grafana.com
userPassword: grafana
objectClass: person
objectClass: top
objectClass: inetOrgPerson
objectClass: organizationalPerson
sn: ldapviewer
cn: ldapviewer
sn: ldap
-
viewer
cn: ldap
-
viewer
docker/blocks/openldap/prepopulate/usersgroup.ldif
deleted
100644 → 0
View file @
5e08bf51
dn: cn=users,dc=grafana,dc=org
cn: users
member: cn=ldapeditor,dc=grafana,dc=org
objectClass: groupOfNames
objectClass: top
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