Confiure sudo right from Active directory user group

Hello,

I configured 2 servers with sudo right from Active Directory user group.

The first server is ok but not the second and i don’t understand why.

I created a file /etc/sudoers.d/domain_admins
In the file, il put the following line :

%Smygroup@domain.tld ALL=(ALL) ALL

As i said before, it works fine on the first server but not on the second.
I can’t connect with the AD users but not sudo.

If someone has an idea on what i can check…
Thanks a lot.

bertho

I also tried with

%Smygroup@domain.tld ALL=(ALL) NOPASSWD:ALL

and it work with no password
To be more accurate, if i use

%Smygroup@domain.tld ALL=(ALL) ALL

the system ask for a password but says that the password is incorrect (i’m sure about the password)

Regards,

bertho

Have you tried to use just %Smygroup ALL=(ALL) ALL?

I may be wrong but if your system is properly synced with AD it should work this way