[Bug 789097] Re: [Samba] idmap backend = tdb2 is broken in Ubuntu / Debian

Christian Perrier bubulle at debian.org
Sat Jun 4 10:24:50 UTC 2011


Quoting Dave Lawrence (dave at daftdroid.com):
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> The tdb2 backend for idmap is broken in Ubuntu and presumably debian.
> 
> As reported here
> https://bugs.launchpad.net/bugs/789097
> 
> Careful how you read it, the quoted patch is the source of the bug, NOT
> the fix.

Thanks for pointing this out (I actually missed the BR in LP, even
though I receive these bug reports).

Brynnen Owen mentioned this to us, recently, indeed.

The fix has been committed in the Debian package SVN. It will reach
Debian unstable, then Ubuntu, when we upload a new release.

Given that the fix is trivial but has important consequences for
anybody wanting to use the TDB2 backend, I'll ask for permission to
upload a fix in squeeze too.

-- 
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/789097

Title:
  tdb2.so undefined symbol: dyn_get_STATEDIR (source code typo)

Status in “samba” package in Ubuntu:
  Incomplete

Bug description:
  Binary package hint: samba

  This error occurs if "idmap backend = tdb2" is specified in smb.conf

  The source of the error is this patchfile
  fhs-filespath.patch

  The offending patch is at the bottom of the file, as follows

  ===================================================================
  --- a/source3/winbindd/idmap_tdb2.c
  +++ b/source3/winbindd/idmap_tdb2.c
  @@ -107,7 +107,7 @@
   	if (db_path == NULL) {
   		/* fall back to the private directory, which, despite
   		   its name, is usually on shared storage */
  -		db_path = talloc_asprintf(NULL, "%s/idmap2.tdb", lp_private_dir());
  +		db_path = talloc_asprintf(NULL, "%s/idmap2.tdb", dyn_get_STATEDIR());
   	}
   	NT_STATUS_HAVE_NO_MEMORY(db_path);

  The correct function name is get_dyn_STATEDIR, not dyn_get_STATEDIR.

  I've tested it can be fixed by changing this accordingly.

  ProblemType: Bug
  DistroRelease: Ubuntu 11.04
  Package: samba 2:3.5.8~dfsg-1ubuntu2.2
  ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
  Uname: Linux 2.6.38-8-generic x86_64
  Architecture: amd64
  BothFailedConnect: Yes
  Date: Fri May 27 12:28:59 2011
  InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
  ProcEnviron:
   LANGUAGE=en_GB:en
   PATH=(custom, user)
   LANG=en_GB.UTF-8
   SHELL=/bin/bash
  SambaServerRegression: No
  SmbConfIncluded: No
  SourcePackage: samba
  UpgradeStatus: Upgraded to natty on 2011-05-09 (17 days ago)




More information about the foundations-bugs mailing list