Showing posts with label active directory. Show all posts
Showing posts with label active directory. Show all posts

Thursday, October 9, 2008

Winbind in Intrepid

We use winbind at work to auth our Ubuntu desktops to Active Directory. I am the first to upgrade to Intrepid, in which winbind seems to be broken. It fails at random intervals (or so it seems). The way I found easiest to get it back up is to run wbinfo -u. If you don't do this, you can't use sudo, pwd won't work (a lot of stuff breaks, essentially). So, to hack around it, I wrote a script called keepActiveDirectoryAlive and put it in $HOME/bin.

keepActiveDirectoryAlive:


#!/bin/bash

while true
do
sleep 30s; wbinfo -u;
done


Easy! This probably isn't the best or most efficient way to do this, so if you have a better idea, I am more than welcome to suggestions.

I set this to start with GNOME in my Sessions. I also had to set wbinfo -u to run in /etc/rc.local (though I seem to remember Ubuntu/Debian ignoring this file) so that I can login through GDM. It seems to be working as expected.