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
|
||||
}
|
||||
|
||||
func newAccessLists(errorKernel *errorKernel, configuration *Configuration) *accessLists {
|
||||
func newAccessLists(pki *pki, errorKernel *errorKernel, configuration *Configuration) *accessLists {
|
||||
a := accessLists{
|
||||
schemaMain: newSchemaMain(configuration),
|
||||
schemaGenerated: newSchemaGenerated(),
|
||||
validator: validator.New(),
|
||||
errorKernel: errorKernel,
|
||||
configuration: configuration,
|
||||
pki: pki,
|
||||
}
|
||||
|
||||
return &a
|
||||
|
|
|
@ -26,7 +26,7 @@ type centralAuth struct {
|
|||
func newCentralAuth(configuration *Configuration, errorKernel *errorKernel) *centralAuth {
|
||||
c := centralAuth{}
|
||||
c.pki = newPKI(configuration, errorKernel)
|
||||
c.accessLists = newAccessLists(errorKernel, configuration)
|
||||
c.accessLists = newAccessLists(c.pki, errorKernel, configuration)
|
||||
|
||||
c.generateACLsForAllNodes()
|
||||
|
||||
|
|
Loading…
Reference in a new issue