setting up logging in executables that link to samba libraries
smfrench at gmail.com
Thu Jul 24 20:58:31 GMT 2008
Am having trouble setting up the cifs.upcall program to log to samba
Apparently the following is not enough to get debug(0, ... messages to log.
I did a quick test by checking lp_loaded's value after these lines and
it shows as false. What sets lp_loaded to true? Am I missing an init
step. This runs in the background (launched by keyctl daemon) so
would be nice to be able to log the samba client lib calls it invokes
(wasn't able to get the samba client lib calls to log to syslog either
with the ./configure --with-syslog and smb.conf having "syslog = 10").
Any idea if there is a missing setup call that an executable needs to
do before enabling logging?
More information about the samba-technical