Skip to content

webgui complains about not set password in ldap mode #8661

Closed

Description

@cyberb

Webgui says Username/Password has not been set for the GUI authentication in ldap mode.

Should not do this in ldap mode.

Activity

  1. added
    bug
    needs-triage
    on Nov 9, 2022
  2. calmh commented on Nov 9, 2022

    @calmh
    Member

    This is a notification that is set on first startup. Presumably you setup LDAP after first startup -- then just acknowledge the notification and it's gone; you've done what it asks you to, by configuring LDAP. If you somehow set up authentication before first startup (because you generated an XML config) I don't think it should display at all.

  3. cyberb commented on Nov 9, 2022

    @cyberb
    ContributorAuthor

    I am generating the config with ldap mode before the first start, but I still see this notification (which I ack and it goes away), maybe I am missing some config to not show it at all?

  4. cyberb commented on Nov 9, 2022

    @cyberb
    ContributorAuthor

    If I understand this correctly auto dismissal happens only if login and password are set:

    if (guiCfg.user && guiCfg.password) {

  5. cyberb commented on Nov 9, 2022

    @cyberb
    ContributorAuthor

    Not to confuse with openNoAuth warning which is different and is handling ldap mode correctly

  6. cyberb commented on Nov 10, 2022

    @cyberb
    ContributorAuthor

    Did not test this but it probably should look like this: #8663

  7. calmh commented on Nov 10, 2022

    @calmh
    Member

    If you're generating a config yourself I don't see how this could happen. Syncthing has a concept of notifications that need to be acknowledged, and adds this to the config when generating a new configuration without authentication:

    <unackedNotificationID>authenticationUserAndPassword</unackedNotificationID>
    

    If you generate a config and don't add that notification, I don't think Syncthing will either.

  8. added this to the v1.22.2 milestone on Nov 11, 2022
  9. added a commit that references this issue on Nov 22, 2022
    4ee1015
  10. added
    frozen-due-to-age
    on Nov 10, 2023
  11. locked and limited conversation to collaborators on Nov 10, 2023
  12. added a commit that references this issue on Jan 30, 2024
    1b32e9f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfrozen-due-to-ageneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions