[PATCH] - NetConnEnum implementation

Shekhar Amlekar samlekar at in.ibm.com
Tue Mar 25 06:37:50 MDT 2014


Hi,

Please find attached patches that implement the NetConnEnum functionality 
for computing share connections.

Some background - while using MMC to delete a share, MMC uses NetConnEnum 
call to query the server to find out the active share connections. If 
there are some, a prompt is displayed to the administrator that asks for 
confirmation of share deletion. Since Samba does not implement this call, 
a prompt is displayed every time and the information about active share 
connections is not provided to the admin. Hence, the need for this 
implementation.

A comment about the implementation. Since the locking tdb does not store 
the share name or number, and changing tdb format is lot more work, the 
following implementation is an approximation. However, it does provide 
important information on share connections and open files to the 
administrator, and also gets rid of the false prompt.

0001 - Added routines to count share connections.
0002 - added routines to compute opens on share connections.
0003 - count share connections in NetConnEnum
0004 - count open files in NetConnEnum

Review comments are welcome.

Thanks,
shekhar.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-s3-rpc_server-srvsvc-added-routines-to-compute-opens.patch
Type: application/octet-stream
Size: 2688 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20140325/2307e0e6/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-s3-rpc_server-srvsvc-Added-routines-to-count-share-c.patch
Type: application/octet-stream
Size: 2786 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20140325/2307e0e6/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-s3-rpc_server-srvsvc-count-open-files-in-NetConnEnum.patch
Type: application/octet-stream
Size: 2857 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20140325/2307e0e6/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-s3-rpc_server-srvsvc-count-share-connections-in-NetC.patch
Type: application/octet-stream
Size: 3082 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20140325/2307e0e6/attachment-0003.obj>


More information about the samba-technical mailing list