Bug 2078 - user who locked file cannot be found with terminal servers
user who locked file cannot be found with terminal servers
Status: NEW
Product: Samba 3.0
Classification: Unclassified
Component: Domain Control
3.0.11
All Linux
: P3 enhancement
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-11-23 03:35 UTC by Björn Jacke
Modified: 2005-02-08 05:39 UTC (History)
0 users

See Also:


Attachments
locale fix for ASCII compat string functions (437 bytes, patch)
2004-12-05 09:30 UTC, Björn Jacke
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Björn Jacke 2004-11-23 03:36:01 UTC
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.
Comment 1 Björn Jacke 2004-12-05 09:30:56 UTC
Created attachment 825 [details]
locale fix for ASCII compat string functions
Comment 2 Björn Jacke 2004-12-05 09:31:30 UTC
sorry, I was fooled by bugzilla the last patch is unrelated to this bug
Comment 3 Gerald (Jerry) Carter 2005-02-07 09:26:39 UTC
originally against 3.0.pre1.
Comment 4 Daniel Beschorner 2005-02-08 04:22:13 UTC
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
Comment 5 Gerald (Jerry) Carter 2005-02-08 05:39:14 UTC
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;