Skip to content

Allow wildcard (*) for user name? #6

Description

@joharri9

Andreas,

First and for most: Thank you for guacamole-auth-pam!

I made a slight mod to the code to allow anyone who can login to the machine can login to guacamole.

<user name="*">
<config-ref name="ECE -- slow network RDP" />
<config-ref name="ECE -- slow network SFTP" />
<config-ref name="ECE -- fast network" />
</user>

The code is in UserMapping.java:

  if (userNameToConfigNames.containsKey(userName)) {
       configNames.addAll(userNameToConfigNames.get(userName));
   }

   /* Code Added */
   if (userNameToConfigNames.containsKey("*")) {
       configNames.addAll(userNameToConfigNames.get("*"));
   }

This keeps me from having to maintain a list of users. I just make accounts on the machine and they can use guacamole.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions