Make pdb_tdb honour a private dir overridden in smb.conf.
commit1f96389afa7250af7393489fb538b8aed93d815c
authorMichael Adam <obnox@samba.org>
Sun, 30 Dec 2007 02:12:11 +0000 (30 03:12 +0100)
committerJeremy Allison <jra@samba.org>
Sun, 30 Dec 2007 05:38:39 +0000 (29 21:38 -0800)
treecda524b8d67f327743a0289b462af778977b3f2b
parent6447bae71c99407485307dd508603c73d5bb9823
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
source/passdb/pdb_tdb.c