-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to provision user #903
Comments
I modified the LoginController.php where this "Failed to provision" error occurs to dump the userId to a file username.txt, and it returns "root" in the file.
|
OK, now I've confirmed it is setting userId properly in LoginController.php until it gets here:
userFromOtherBackend becomes null at the end here |
same here. I add authentik but I want nextcloud to use the users already created in authentik and not create new ones. Edit: To connect to an already existing Nextcloud user, set the "nextcloud_user_id" property in the user's attributes. This must be set for each individual user. The value of nextcloud_user_id must match the field username of the user on the Nextcloud instance. On Nextcloud, go to Users to see the username of the user you are trying to connect to (Under user's Display name). If set to a value, for example goauthentik, it will try to connect to the goauthentik user on the Nextcloud instance. Otherwise, the user's UUID will be used. |
@dacrudg Did the above mapping work for you? If so, we'll consider this issue closed. |
hi , thanks for pointing to the mapping In Authentik, go to Customisation -> Property Mappings -> Create -> Scope Mapping. Set: Name: Nextcloud user In Authentik, go to Providers -> click the Edit button of your Nextcloud provider, then expand “Advanced protocol settings” and in Scopes: deselect authentik default OAuth Mapping: OpenID ‘profile’ In Authentik, go to Users -> edit user after that the login pointed to the already existing user |
Hello, |
Hi,
I have an existing Nextcloud with users already created from LDAP. I'm using Authelia for SSO, and wanting to login through Authelia and it bring up the existing users Files, Mail, etc. (Not create a new user).
I'm using the mappings-id setting for user_oidc to match the same one LDAP uses, and I also have auto_provision = false in config.php (To let LDAP take user creation). It always gives me the error below.
I've tried every setting for mappings-id as well (preferred_username, uid, mail, etc).
"Access Forbidden"
Failed to provision the user
I can't see to find any log files or where to start debugging this. I have found another user that had the same issue (#869) and set the mappings-id for users to preferred_username but that doesn't do anything for me.
If I take auto_provision = false out of Nextcloud then it will work, but it creates a totally new user in Nextcloud and doesn't use the existing user from LDAP.
It seems if auto_provision = false is set in Nextcloud then nothing will work to even login, and always gives the "Failed to provision the user" error.
I have also unchecked "Use unique user ID" box and tried with it. It has no difference. This is on user_oidc: 6.0.0 and user_oidc: 5.0.3
Any help would be much appreciated. Thank you
The text was updated successfully, but these errors were encountered: