From 98927e20702a3f15a67715760f3652a01d8050f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Mon, 27 Jul 2020 21:04:48 +0200 Subject: [PATCH] enable new accounts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jörn Friedrich Dreyer --- changelog/unreleased/enable-new-accounts.md | 5 +++++ pkg/middleware/account_uuid.go | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 changelog/unreleased/enable-new-accounts.md diff --git a/changelog/unreleased/enable-new-accounts.md b/changelog/unreleased/enable-new-accounts.md new file mode 100644 index 0000000..98e52fd --- /dev/null +++ b/changelog/unreleased/enable-new-accounts.md @@ -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 diff --git a/pkg/middleware/account_uuid.go b/pkg/middleware/account_uuid.go index d7969f9..cb405ac 100644 --- a/pkg/middleware/account_uuid.go +++ b/pkg/middleware/account_uuid.go @@ -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)