forked from Github-Mirrors/canaille
demo run fix
This commit is contained in:
parent
d422bc31fc
commit
983873eaf3
3 changed files with 26 additions and 9 deletions
|
@ -38,7 +38,13 @@ try:
|
||||||
+ "\n"
|
+ "\n"
|
||||||
)
|
)
|
||||||
|
|
||||||
with open("ldif/bootstrap.ldif") as fd:
|
with open("ldif/bootstrap-tree.ldif") as fd:
|
||||||
|
try:
|
||||||
|
slapd.ldapadd(fd.read())
|
||||||
|
except RuntimeError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
with open("ldif/bootstrap-data.ldif") as fd:
|
||||||
try:
|
try:
|
||||||
slapd.ldapadd(fd.read())
|
slapd.ldapadd(fd.read())
|
||||||
except RuntimeError:
|
except RuntimeError:
|
||||||
|
|
|
@ -73,14 +73,6 @@ mail: james@mydomain.tld
|
||||||
telephoneNumber: 555-000-003
|
telephoneNumber: 555-000-003
|
||||||
memberof: cn=users,ou=groups,dc=mydomain,dc=tld
|
memberof: cn=users,ou=groups,dc=mydomain,dc=tld
|
||||||
|
|
||||||
dn: ou=oauth,dc=mydomain,dc=tld
|
|
||||||
objectclass: organizationalUnit
|
|
||||||
ou: oauth
|
|
||||||
|
|
||||||
dn: ou=clients,ou=oauth,dc=mydomain,dc=tld
|
|
||||||
objectclass: organizationalUnit
|
|
||||||
ou: clients
|
|
||||||
|
|
||||||
dn: oauthClientID=1JGkkzCbeHpGtlqgI5EENByf,ou=clients,ou=oauth,dc=mydomain,dc=tld
|
dn: oauthClientID=1JGkkzCbeHpGtlqgI5EENByf,ou=clients,ou=oauth,dc=mydomain,dc=tld
|
||||||
objectclass: oauthClient
|
objectclass: oauthClient
|
||||||
oauthClientID: 1JGkkzCbeHpGtlqgI5EENByf
|
oauthClientID: 1JGkkzCbeHpGtlqgI5EENByf
|
19
demo/ldif/bootstrap-tree.ldif
Normal file
19
demo/ldif/bootstrap-tree.ldif
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
dn: ou=oauth,dc=mydomain,dc=tld
|
||||||
|
objectclass: organizationalUnit
|
||||||
|
ou: oauth
|
||||||
|
|
||||||
|
dn: ou=clients,ou=oauth,dc=mydomain,dc=tld
|
||||||
|
objectclass: organizationalUnit
|
||||||
|
ou: clients
|
||||||
|
|
||||||
|
dn: ou=tokens,ou=oauth,dc=mydomain,dc=tld
|
||||||
|
objectclass: organizationalUnit
|
||||||
|
ou: tokens
|
||||||
|
|
||||||
|
dn: ou=consents,ou=oauth,dc=mydomain,dc=tld
|
||||||
|
objectclass: organizationalUnit
|
||||||
|
ou: consents
|
||||||
|
|
||||||
|
dn: ou=codes,ou=oauth,dc=mydomain,dc=tld
|
||||||
|
objectclass: organizationalUnit
|
||||||
|
ou: codes
|
Loading…
Reference in a new issue