The Samba-Bugzilla – Bug 10126
Option "--use-db=0" doesn't work in smbtad 1.2.6
Last modified: 2014-04-08 12:33:43 UTC
On Scientific Linux 6.1 I'm unsuccessfully trying to run smbtad 1.2.6 without DB. I've tried various flavors of the option, but nothing helped.
Below is my console output:
$ smbtad -U 0 -u -d 10
ERROR: drivername == NULL. Exiting.
Error connecting to the database.
please check syslog.
$ sudo grep smbta /var/log/messages
Sep 3 16:01:19 localhost kernel: smbtad: segfault at 2c ip 00007fb5f97b89cf sp 00007fff44983290 error 4 in libdbi.so.0.0.5[7fb5f97b3000+e000]
Sep 3 16:45:18 localhost kernel: smbtad: segfault at 2c ip 00007ff053f749cf sp 00007fffd4b9b780 error 4 in libdbi.so.0.0.5[7ff053f6f000+e000]
Tue Sep 3 17:04:18 CEST 2013
$ cat /etc/*-release
Scientific Linux release 6.1 (Carbon)
Ok, this is because smbtad doesn't write to the database with -U 0 but still runs the functions to connect to the DB at startup. This will block the 1.2.7 release tracker bug. Thanks for reporting Alexander a fix will is upcoming.
should be fixed with commit 77dd134f3e1dbe3ec2d80bdbf9ff8794a38a2ade to the devel branch, but I need to test it first..