LDAP first login BUG fixed
This commit is contained in:
parent
3e374db722
commit
6beac55826
2 changed files with 6 additions and 2 deletions
|
@ -195,7 +195,7 @@ if (LdapStrategy) {
|
|||
|
||||
} catch (err) {
|
||||
if (err instanceof interoperableErrors.NotFoundError) {
|
||||
const userId = await users.create(null, {
|
||||
const userId = await users.create(contextHelpers.getAdminContext(), {
|
||||
username: profile[config.ldap.uidTag],
|
||||
role: config.ldap.newUserRole,
|
||||
namespace: config.ldap.newUserNamespaceId
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue