[jcifs] Obtaining username to/from NT SID
eglass1 at attbi.com
eglass1 at attbi.com
Wed Oct 30 23:19:42 EST 2002
Yeah, I kind of figured it wouldn't be trivial, but it
doesn't hurt to ask. Oh well. I'm assuming a DCE/RPC
implementation would be required to enumerate the NT
group memberships as well?
> This needs DCE/RCP and LsarLookupSids or similar (p67 DCE/RPC over SMB)
> which we just don't support. We have up to TransactNamedPipe functions
> but it requires a PDU layer, some crypto, and a lot of patience. I just
> cannot bring myself to start doing it. Don't hold your breath.
>
> On Tue, 29 Oct 2002 12:54:28 +0000
> eglass1 at attbi.com wrote:
>
> > I'm currently working on a project where I have the need
> > to match a user's NT SID to their username. Previously,
> > I was using a native call to LookupAccountSid with the
> > SID to retrieve the username. However, I was wondering
> > if it would be possible via jCIFS to either do this or
> > go the other way -- i.e., the user has authenticated via
> > NTLM, and I want to retrieve the SID (using perhaps the
> > NtlmPasswordAuthentication object?). I essentially have
> > 2 sources (one with the SID and one with a username),
> > and I need to match them. Anyone have any ideas?
> > Ideally, I would like to do this in pure Java (I can
> > already do it natively, but that ties me to a specific
> > platform).
> >
> > Eric
>
>
> --
> A program should be written to model the concepts of the task it
> performs rather than the physical world or a process because this
> maximizes the potential for it to be applied to tasks that are
> conceptually similar and, more important, to tasks that have not
> yet been conceived.
More information about the jcifs
mailing list