Re: Patch for lsa and samr handle leaks
Michael B Allen <[email protected]> Sat, 27 Sep 2014 01:15:39 -0400
| Newsgroups | gmane.network.samba.java |
|---|---|
| Message-ID | <CAGMFw4j2oYL76gM+RqP1Q_qSLi=QMi+LV7JWsPMXumci1D6QzA@mail.gmail.com> |
Hi Shon, Great work as usual. Not sure why those where empty. JCIFS should do what Windows does. At any rate I have added your patch to the TODO list. Thanks, Mike -- Michael B Allen Java Active Directory Integration http://www.ioplex.com/ On Fri, Sep 19, 2014 at 6:21 PM, Vella, Shon <[email protected]> wrote: > I had a customer who was getting jcifs.smb.SmbException: 0xC000011F > (NT_STATUS_TOO_MANY_OPEN_FILES) trying to resolve a whole bunch of SIDs > against an EMC Celerra NAS device. It looked very similar to what was > reported in https://lists.samba.org/archive/jcifs/2011-February/009492.html. > > I finally tracked it down to LsaPolicyHandle.close() was empty. I'm guessing > that it isn't a problem when running against windows because it probably > cleans up the unclosed handles when the RPC handle is closed, whereas it > appears that the EMC device does not clean them up until the connection is > broken. > > While I was at it I also noticed that SamrDomainHandle, SamrPolicyHandle, > and SamrAliasHandle also had empty close() methods. Fortunately, in both > cases most of the protocol pieces were already there, they just needed to be > hooked up.