Skip to content

Error when parsing sudoers configuration with domain groups / groups with "@domain" #1064

Closed
@mpibpc-mroose

Description

@mpibpc-mroose

Describe the bug
sudo-rs seems to be unable to work with active directory domain groups in sudoers files. Seems it stumbles upon the @ when parsing those files.

To Reproduce
Steps to reproduce the behavior:

  1. Install ' sudo-rs` on Ubuntu 24.04 using apt
  2. Use the default contents in /etc/sudoers-rs
  3. Create a sudoers configuration such as /etc/sudoers.d/01_server_admins_group
%[email protected]   ALL=(ALL) NOPASSWD: ALL
  1. Run the following command sudo-rs ls
  2. See error:
/etc/sudoers.d/01_server_admins_group:2:13: expected host name
%[email protected]   ALL=(ALL) NOPASSWD: ALL
            ^                  

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-parserParser/ASTbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions