Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Darren Eccles 59 posts 298 karma points
    Mar 20, 2023 @ 10:32
    Darren Eccles
    0

    Using AD with 'DenyLocalLogin' set to true issue

    Hi, one of our developers is currently working on a Umbraco V10 site (v10.3.2).

    We have switched the login to use Active Directory with 'options.DenyLocalLogin = true;' and 'options.AutoRedirectLoginToExternalProvider = false;', the DenyLocalLogin disables the ability for users to login with a username and password when you go to /umbraco/.

    Source - Linking External Login Provider accounts

    The problem is, when we login as an Admin user and go to the Users section, the create user button has disappeared? Although the user may have an AD account, they also need to have a user account in the back office of umbraco ;)

    If we switch DenyLocalLogin to false, the create button re-appears, however the username and password fields are available when you go to /umbraco/.

    We did try setting 'options.DenyLocalLogin = false;' and 'options.AutoRedirectLoginToExternalProvider = true;' which worked fine logging in with AD and we could create a user, but when we clicked logout it redirected us back to /umbraco/ showing the AD screen and Username and Password :(

    Does anyone have a solution for this, or is it a bug?

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft