I have users defined in AD but because of some overrides, I have to add those accounts in my local /etc/passwd. Precisely, I want to assign a user a different GID then it is defined in AD.
I want to login with local user ( from /etc/passwd ) and with the use of the password from AD. When there is only local user defined and no password in /etc/shadow it doesn't work.
When I define the password locally with
passwd username and it gets stored to /etc/shadow i can log in. If I try and remove the local user from /etc/passwd then I can login but without those overrides which I want to have.
I have tried adjusting the nsswitch.conf order and pam common-auth ( plus as suggested here) but nothing worked.
Has anyone any idea how to achieve this? LOCAL USER with AD PASSWORD Distro: Ubuntu