Permit active directory domain users to run elevated commands

Diyaa

New Member
Oct 10, 2022
7
0
1
Canada
Hello everyone,

I am trying to set up active directory authentication on proxmox to allow domain users in a domain local security group to run elevated commands on proxmox. The domain joining worked on the WebUI, but I get an error when I click the shell button in the top right of the WebUI.

1665442203559.png

1665442236783.png


so I am not sure if my thinking is correct here, but I am thinking that this is due to PAM authentication.
Can anyone guide me to a way to resolve this issue??
Thank you in advance,
 
the host shell is restricted to users existing on the local system (the PAM realm in PVE). if you really need to give LDAP users access to the host shell, you could configure PAM on the PVE host to authenticate against LDAP/AD, and then write a script that adds the user entries in the PAM realm (via pveum or the API).

the reasoning here is that we only want to give shell access to users that (likely) could login on the shell (local, or via SSH) anyway.
 
  • Like
Reactions: Diyaa
the host shell is restricted to users existing on the local system (the PAM realm in PVE). if you really need to give LDAP users access to the host shell, you could configure PAM on the PVE host to authenticate against LDAP/AD, and then write a script that adds the user entries in the PAM realm (via pveum or the API).

the reasoning here is that we only want to give shell access to users that (likely) could login on the shell (local, or via SSH) anyway.
Thank you very much for providing this many details!

I do see the point behind your reasoning.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!