Merge pull request #79 from butonic/enable-new-accounts

enable new accounts
This commit is contained in:
Benedikt Kulmann
2020-07-27 22:08:34 +02:00
committed by GitHub
2 changed files with 7 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
Bugfix: enable new accounts by default
When new accounts are created, they also need to be enabled to be useable.
https://github.com/owncloud/ocis-proxy/pull/79

View File

@@ -71,6 +71,8 @@ func createAccount(l log.Logger, claims *oidc.StandardClaims, ac acc.AccountsSer
OnPremisesSamAccountName: claims.PreferredUsername,
Mail: claims.Email,
CreationType: "LocalAccount",
AccountEnabled: true,
// TODO assign uidnumber and gidnumber? better do that in ocis-accounts as it can keep track of the next numbers
},
}
created, err := ac.CreateAccount(context.Background(), req)