[PATCH] - NetConnEnum implementation

Jeremy Allison jra at samba.org
Wed Mar 26 17:06:45 MDT 2014


On Tue, Mar 25, 2014 at 06:07:50PM +0530, Shekhar Amlekar wrote:
> 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.

FYI - this in on my review queue, I'll
try and get to it this week.

Jeremy.


More information about the samba-technical mailing list