Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose OU and other LDAP attributes/characteristics to use in RBAC for Windows machines #11575

Closed
webvictim opened this issue Mar 30, 2022 · 2 comments
Labels
desktop-access feature-request Used for new features in Teleport, improvements to current should be #enhancements rbac Issues related to Role Based Access Control windows

Comments

@webvictim
Copy link
Contributor

What

The current host_labels logic for Windows machines is good but doesn't allow you to build labels for RBAC based on LDAP OU or similar. It'd be good to expose LDAP OU or maybe even a full DN and allow labels to match against this to allow more sophisticated labelling.

How

Have a fuller set of LDAP characteristics/attributes exposed and let Teleport do matching against these as well as the machine's hostname.

Why

Bigger estates often don't have coherent hostnames which expose enough information about the machine to let you build RBAC rules based on hostname only. By contrast, LDAP OU and DN is usually far more specific.

Workaround

It's possible to work around this currently by running multiple agents providing a windows_desktop_service which have a different configured base_dn:

windows_desktop_service:
  discovery:
    base_dn: 'OU=TELEPORTDEMO,DC=teleportdemo,DC=com'
  host_labels:
    - match: '.*'
    labels:
      ou: teleportdemo

This is cumbersome and adds a lot of overhead, however.

@webvictim webvictim added feature-request Used for new features in Teleport, improvements to current should be #enhancements windows rbac Issues related to Role Based Access Control labels Mar 30, 2022
@webvictim
Copy link
Contributor Author

Another way to address this might be to allow multiple discovery sections in the windows_desktop_service configuration which can each specify their own set of host_labels to add.

@zmb3
Copy link
Collaborator

zmb3 commented Apr 29, 2022

Now that we have more information, I'm going to close this in favor of #12326

@zmb3 zmb3 closed this as completed Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
desktop-access feature-request Used for new features in Teleport, improvements to current should be #enhancements rbac Issues related to Role Based Access Control windows
Projects
None yet
Development

No branches or pull requests

2 participants