A little asymmetrical log messages for open/close

Dmitry Butskoy buc at odusz.so-cdu.ru
Tue Oct 30 16:26:45 GMT 2007


We use "log level 2" and "winbind use default domain = Yes"

Log messages about opening and closing files seem to be a little 
asymmetric: for open just a username is printed (because of "default 
domain = Yes" I guess), but for close DOMAIN\user is used anyway:

> [2007/10/30 19:06:54, 2] smbd/open.c:open_file(391)
>   foo opened file pub/foo/file.bar read=Yes write=No (numopen=1)
> [2007/10/30 19:06:54, 2] smbd/close.c:close_normal_file(406)
>   WORKGROUP\foo closed file pub/foo/file.bar (numopen=0) NT_STATUS_OK
> [2007/10/30 19:06:54, 2] smbd/open.c:open_file(391)
>   foo opened file pub/foo/file.bar read=No write=No (numopen=1)
> [2007/10/30 19:06:54, 2] smbd/close.c:close_normal_file(406)
>   WORKGROUP\foo closed file pub/foo/file.bar (numopen=0) NT_STATUS_OK

Notice "foo" and "WORKGROUP\foo"

Theoretically it could confuse some logfile parsing scripts etc...


~buc



More information about the samba-technical mailing list