when users come from a terminal server, one can only lookup locked files' PID and we cannot find out about the user who has locked a certain file, because serveral users come from the same machine and have share the same smbd process. I don't know if Samba internal structures store this information at all.
originally against 3.0.pre1.
for W2K-TS: http://support.microsoft.com/default.aspx?scid=kb;en-us;818528 for NT4-TS: samba-3.0.11/docs/registry/WindowsTerminalServer.reg
The current tdb record does not store this information. I'm not sure exactly how we correlate this with the vuid that opened the file. /* struct returned by get_share_modes */ typedef struct { pid_t pid; uint16 op_port; uint16 op_type; int share_mode; uint32 desired_access; struct timeval time; SMB_DEV_T dev; SMB_INO_T inode; unsigned long share_file_id; } share_mode_entry;