Fix ocis admin creation for idm
The admin user was created as part of the demo user set. But we need the admin to be created always.
This commit is contained in:
@@ -89,9 +89,13 @@ func bootstrap(logger log.Logger, cfg *config.Config, srvcfg server.Config) erro
|
||||
}
|
||||
|
||||
serviceUsers := []svcUser{
|
||||
{
|
||||
Name: "admin",
|
||||
Password: cfg.ServiceUserPasswords.OcisAdmin,
|
||||
},
|
||||
{
|
||||
Name: "libregraph",
|
||||
Password: cfg.ServiceUserPasswords.IdmAdmin,
|
||||
Password: cfg.ServiceUserPasswords.Idm,
|
||||
},
|
||||
{
|
||||
Name: "idp",
|
||||
@@ -141,7 +145,6 @@ func bootstrap(logger log.Logger, cfg *config.Config, srvcfg server.Config) erro
|
||||
}
|
||||
|
||||
bootstrapData := tmplWriter.String()
|
||||
|
||||
if cfg.CreateDemoUsers {
|
||||
bootstrapData = bootstrapData + "\n" + idm.DemoUsersLDIF
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user