Re: Owner SID ?
Michael B Allen <[email protected]>
| Newsgroups | gmane.network.samba.java |
|---|---|
| Message-ID | <CAGMFw4g_wUu61tP6aV_HcqCnqsJTq44xxD=UcWMz2aE6P7ytyg@mail.gmail.com> |
On Wed, Mar 21, 2012 at 5:07 AM, Xavier Roche <[email protected]> wrote: > Hi folks, > > My understanding is that getting the owner SID of a SmbFile is currently > unsupported (there is a patch for that, but quite old) > > It is possible to acheive this somehow through SmbFile.getSecurity() ? > Crawling through ACLs shows the owner, but without any interesting distinct > flags unfortunately. Hi Xavier, The changes required to get the owner SID are simple enough that using an actual patch would be a waste of time. Just look at what that patch does and make the necessary changes by hand. It just adds a few lines to SecurityDescriptor.java to locate and decode the part of the SD representing the owner SID and adds an SmbFile.getOwnerSid method to get to it. Mike -- Michael B Allen Java Active Directory Integration http://www.ioplex.com/