Comment 0 for bug 50385

Revision history for this message
In , Jeff Layton (jtlayton) wrote : samba-common: debian samba ignores "private dir" directive

Package: samba-common
Version: 3.0.2a-1
Severity: normal

I'm trying to set up a highly-available samba server via heartbeat, and
was trying to configure it to put its secrets.tdb file in a shared
location. Unfortunately, the debian version of samba seems to ignore
the "private dir" directive.

I took a look at the source package, and I think the problem is in the
fhs.patch file to secrets.tdb. In particular, this section:

- pstrcpy(fname, lp_private_dir());
- pstrcat(fname,"/secrets.tdb");
+ pstrcpy(fname, state_path("secrets.tdb"));

Perhaps this needs to be some sort of conditional, so that if
"private dir" is set it doesn't get clobbered?

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.6a
Locale: LANG=C, LC_CTYPE=C

Versions of packages samba-common depends on:
ii debconf 1.4.25 Debian configuration management sy
ii libc6 2.3.2.ds1-12 GNU C Library: Shared libraries an
ii libcomerr2 1.35-6 The Common Error Description libra
ii libkrb53 1.3.3-1 MIT Kerberos runtime libraries
ii libldap2 2.1.29-2 OpenLDAP libraries
ii libpam-modules 0.76-21 Pluggable Authentication Modules f
ii libpopt0 1.7-4 lib for parsing cmdline parameters

-- debconf information:
* samba-common/encrypt_passwords:
  samba-common/codepage:
  samba-common/character_set:
* samba-common/do_debconf: true
* samba-common/dhcp: true