mirror of
https://github.com/postmannen/ctrl.git
synced 2024-12-14 12:37:31 +00:00
fixed missing pki
This commit is contained in:
parent
d6552f686c
commit
d3078a79aa
2 changed files with 3 additions and 2 deletions
|
@ -43,13 +43,14 @@ type accessLists struct {
|
||||||
pki *pki
|
pki *pki
|
||||||
}
|
}
|
||||||
|
|
||||||
func newAccessLists(errorKernel *errorKernel, configuration *Configuration) *accessLists {
|
func newAccessLists(pki *pki, errorKernel *errorKernel, configuration *Configuration) *accessLists {
|
||||||
a := accessLists{
|
a := accessLists{
|
||||||
schemaMain: newSchemaMain(configuration),
|
schemaMain: newSchemaMain(configuration),
|
||||||
schemaGenerated: newSchemaGenerated(),
|
schemaGenerated: newSchemaGenerated(),
|
||||||
validator: validator.New(),
|
validator: validator.New(),
|
||||||
errorKernel: errorKernel,
|
errorKernel: errorKernel,
|
||||||
configuration: configuration,
|
configuration: configuration,
|
||||||
|
pki: pki,
|
||||||
}
|
}
|
||||||
|
|
||||||
return &a
|
return &a
|
||||||
|
|
|
@ -26,7 +26,7 @@ type centralAuth struct {
|
||||||
func newCentralAuth(configuration *Configuration, errorKernel *errorKernel) *centralAuth {
|
func newCentralAuth(configuration *Configuration, errorKernel *errorKernel) *centralAuth {
|
||||||
c := centralAuth{}
|
c := centralAuth{}
|
||||||
c.pki = newPKI(configuration, errorKernel)
|
c.pki = newPKI(configuration, errorKernel)
|
||||||
c.accessLists = newAccessLists(errorKernel, configuration)
|
c.accessLists = newAccessLists(c.pki, errorKernel, configuration)
|
||||||
|
|
||||||
c.generateACLsForAllNodes()
|
c.generateACLsForAllNodes()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue