In Ubuntu 14.04 with Samba server installed, every time you will get this error message when execute sudo command.
run
sudo pam-auth-update
and unselect "SMB password synchronization", this error message will disappear.
get this solution from here http://ubuntuforums.org/showthread.php?t=2214042