sudo not permitted for user on sudoers group when user is mapped to AD user with centrifyDC
Ok, I know, that's a very long to describe a problem, but I couldn't find something shorter for what was happening to me, the last two months (but i decided to look it up today).
I have a linux server with CentrifyDC Express installed and a Windows 2003 AD Controller.
The last two months my user (which is a Domain Admin and an adm and all the relevant admin privileges) could not connect on the shares that existed on my Linux server.
info: My shares on the Linux servers and my Windows servers are administrative shares that show up on the users under a DFS.
I tried to resolve the issue today and I tried to login to my Linux server with my AD credentials (thanks to CentrifyDC, but I guess you got it already). Although I logged in, when I tried to sudo something, my password got rejected!
So after some try and fail and some search, first I synchronized the time on my Linux server with an external ntp server. I logged in with my root account (thank God I had it enabled!) and I runned
$ apt-get install ntp
$ vim /etc/ntp.conf
added server 0.gr.pool.ntp.org
$ service ntp restart
or
$ service ntp stop
and
$ ntpdate 0.gr.pool.ntp.org
for immediate update.
Then I synchronized my AD controller with the same ntp server by running the following command
w32tm /config /syncfromflags:manual /manualpeerlist:0.gr.pool.ntp.org
w32tm /config /update
Finally on my Linux server
$ adflush
$ /usr/share/centrifydc/bin/centrifydc restart
Tada!!! Everything back to normal!












