[jcifs] Re: Pass Through Authentication [was dcerpc.net - developer forum]
Christopher R. Hertel
crh at ubiqx.mn.org
Fri Sep 7 06:57:17 EST 2001
On Thu, Sep 06, 2001 at 11:46:01AM +0200, Luke Kenneth Casson Leighton wrote:
> > > you'll only need an SMBnegprot and SMBsesssetupX for
> > > that. oh, and get_any_dc_name() to locate a DC from
> > > the Domain name. i'm sure you have that NetBIOS/UDP
> > > call available in jCIFS.
> > Well, for this all we do is NbtAddress.getByName("mydc", 0x1c,
> > "scope.com"). I believe 0x1c will return the domain controller.
> great! that's the one. if you read the ms specs,
> this will give you _one of_ the BDCs or the PDC.
> if that fails, do a getByName on 0x1b, to get the PDC.
Just an aside, something weird I learned recently... When you get the
0x1c name record from a Windows WINS server (and, I assume, Samba) the IP
list will be sorted with the IP address of the PDC listed first. All the
others are BDCs.
Strange but true.
Wooo wooo ehhhh wooo uuurrr.
Samba Team -- http://www.samba.org/ -)----- Christopher R. Hertel
jCIFS Team -- http://jcifs.samba.org/ -)----- ubiqx development, uninq.
ubiqx Team -- http://www.ubiqx.org/ -)----- crh at ubiqx.mn.org
More information about the jcifs