[Bug 1006867] Re: winbind doesn't authenticate without a restart

Scott Moser smoser at ubuntu.com
Thu May 31 14:21:53 UTC 2012


Hi,
  Thanks for reporting this bug, and the useful work around information.
  It looks like either winbindd is starting to early, or actually needs to be restarted to be told about on network changes (which would seem like an upstream issue).

  The fact that rc.local and network ifup were needed is strange though.

** Changed in: samba (Ubuntu)
   Importance: Undecided => Medium

** Changed in: samba (Ubuntu)
       Status: New => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1006867

Title:
  winbind doesn't authenticate without a restart

Status in “samba” package in Ubuntu:
  Triaged

Bug description:
  ubuntu 12.04
  winbind 3.6.3

  I'm trying to use winbind as authenticator in a samba (v 3.5.10)
  domain. At logon winbind doesn't authenticate if I don't restart the
  daemon.

  To workaroubd the bug I've insert in /etc/network/if-up.d the
  following file:

  $ cat /etc/network/if-up.d/winbind 
  #!/bin/sh
  # Patch CSA: Authentication doesn't work if winbind is not restarted

  # Don't bother to do anything for lo.
  if [ "$IFACE" = lo ]; then
  	exit 0
  fi

  # Only run from ifup.
  if [ "$MODE" != start ]; then
  	exit 0
  fi

  # Samba only cares about inet and inet6. Get thee gone, strange people
  # still using ipx.
  case $ADDRFAM in
  	inet|inet6|NetworkManager)
  		;;
  	*)
  		exit 0
  		;;
  esac

  # modified by me
  invoke-rc.d winbind restart >/dev/null

  exit 0

  But I've found that sometimes this workaround is not enought, so I have add to /etc/rc.local the command 
  service winbind restart

  Using both the patches above I've found no more problems using
  pam_winbind.

  Have a great day

  Piviul

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: winbind 2:3.6.3-2ubuntu2.1
  ProcVersionSignature: Ubuntu 3.2.0-24.39-generic-pae 3.2.16
  Uname: Linux 3.2.0-24-generic-pae i686
  NonfreeKernelModules: wl
  ApportVersion: 2.0.1-0ubuntu7
  Architecture: i386
  Date: Thu May 31 14:10:51 2012
  InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release i386 (20120423)
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   LANG=it_IT.UTF-8
   SHELL=/bin/bash
  SourcePackage: samba
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1006867/+subscriptions




More information about the foundations-bugs mailing list