Skip to content

Config backend should allow users to bind without specifying group name #98

Closed

Description

@chrisbrowning

Specifying a bindDN that does not contain an ou= term will return Bind Error: Group not found, even though the same code conditionally checks for bind strings that do not contain that second term.

groupName is initiated with an empty value, and if you do not specify the ou= term, groupName does not get set in the previously-mentioned conditional block.

Because groupName does not get set, the backend will be unable to find the a matching groupname from the config file's groups. This search makes sense if you specify the ou= term but if you only provide the cn= you should still be able to bind.

Activity

  1. candlerb commented on May 26, 2021

    @candlerb
    Contributor

    Updated link: https://github.com/glauth/glauth/blob/master/pkg/handler/config.go#L51-L59

    The error actually has two spaces, showing that the group used is "" (empty string)

    Bind Error: Group  not found.
    

    I agree, it looks like the intention was to support bind without providing the group part of the DN, but this was not properly completed.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions