Make pdb_tdb honour a private dir overridden in smb.conf.
authorMichael Adam <obnox@samba.org>
Sun, 30 Dec 2007 02:12:11 +0000 (03:12 +0100)
committerJeremy Allison <jra@samba.org>
Sun, 30 Dec 2007 05:38:39 +0000 (21:38 -0800)
commitdf450fc090071b3645ecede5d15685e68e209d99
treeb870d3962562b963183a23afd7042cdb7a962083
parentd674b95357b34a89b915af68fa12aa6b4169198d
Make pdb_tdb honour a private dir overridden in smb.conf.

One lp_private_dir() has to be used instead of get_dyn_PRIVATE_DIR()
to determine the location of the passdb.tdb.

I noticed this when running make test as a "normal user" from a
build, where I had done "make install" as root before, and so
the passdb.tdb could not be accessed during the startup phase
"CREATE TEST ENVIRONMENT IN ./st ..." in selftest.sh.

Michael
(This used to be commit 1f96389afa7250af7393489fb538b8aed93d815c)
source3/passdb/pdb_tdb.c