if ( server != null && server.length() > 0 ) { this.addresses = new UniAddress[1]; this.addresses[ 0 ] = this.ctx.getNameServiceClient().getByName(server); Address addr = this.ctx.getNameServiceClient().getNbtByName(NbtAddress.MASTER_BROWSER_NAME, 0x01, null); this.addresses = new UniAddress[1]; this.addresses[ 0 ] = this.ctx.getNameServiceClient().getByName(addr.getHostAddress()); throw uhe; this.addresses = this.ctx.getNameServiceClient().getAllByName(this.ctx.getConfig().getDefaultDomain(), true); this.addresses = this.ctx.getNameServiceClient().getAllByName(host, true); this.addresses = this.ctx.getNameServiceClient().getAllByName(host, false);
void checkNodeStatusData ( CIFSContext tc ) throws UnknownHostException { if ( this.isDataFromNodeStatus == false ) { tc.getNameServiceClient().getNbtAllByAddress(this); } }
Address[] list = getTransportContext().getNameServiceClient().getNbtAllByName(domain, 0x1C, null, null); this.dcListExpiration = now + this.netbiosCacheTimeout * 1000L; if ( list != null && list.length > 0 ) {
NameServiceClient nameServiceClient = getTransportContext().getNameServiceClient(); if ( pathInfo == null || server == null ) { String mb = nameServiceClient.getNbtByName(NbtAddress.MASTER_BROWSER_NAME, 0x01, null).getHostAddress(); dc = nameServiceClient.getByName(mb); dc = nameServiceClient.getByName(server, possibleWorkgroup);
String host = tc.getNameServiceClient().getLocalHost().getHostName(); if ( host != null ) { try {
dc = getTransportContext().getNameServiceClient().getByName(this.domainController, true); challenge = getTransportContext().getTransportPool().getChallenge(getTransportContext(), dc); user = ( index != -1 ) ? user.substring(index + 1) : user; ntlm = new NtlmPasswordAuthentication(getTransportContext(), domain, user, password); dc = getTransportContext().getNameServiceClient().getByName(this.domainController, true);
@Override public void run () { try { this.ans = this.tc.getNameServiceClient().getNbtByName(this.host, this.type, this.scope, this.svr); } catch ( UnknownHostException ex ) { this.uhe = ex; } catch ( Exception ex ) { this.uhe = new UnknownHostException(ex.getMessage()); } finally { synchronized ( this.sem ) { this.sem.count--; this.sem.notify(); } } }
addrs = tc.getNameServiceClient().getNodeStatus(this); if ( this.getNameType() == 0x1D ) { for ( int i = 0; i < addrs.length; i++ ) {
this.in = this.socket.getInputStream(); SessionServicePacket ssp = new SessionRequestPacket(tc.getConfig(), calledName, tc.getNameServiceClient().getLocalName()); this.out.write(this.sbuf, 0, ssp.writeWireFormat(this.sbuf, 0)); if ( readn(this.in, this.sbuf, 0, 4) < 4 ) {
@Override public SmbTransportImpl getSmbTransport ( CIFSContext tf, String name, int port, boolean exclusive, boolean forceSigning ) throws IOException { Address[] addrs = tf.getNameServiceClient().getAllByName(name, true);
if ( msg != null && ( msg.startsWith("NTLM ") || ( offerBasic && msg.startsWith("Basic ") ) ) ) { if ( this.loadBalance ) { dc = new UniAddress(getTransportContext().getNameServiceClient().getNbtByName(this.domainController, 0x1C, null)); dc = getTransportContext().getNameServiceClient().getByName(this.domainController, true);
String host = tc.getNameServiceClient().getLocalHost().getHostName(); if ( host != null ) { try {
dc = getTransportContext().getNameServiceClient().getByName(this.domainController, true); challenge = getTransportContext().getTransportPool().getChallenge(getTransportContext(), dc); user = ( index != -1 ) ? user.substring(index + 1) : user; ntlm = new NtlmPasswordAuthentication(getTransportContext(), domain, user, password); dc = getTransportContext().getNameServiceClient().getByName(this.domainController, true);
@Override public void run () { try { this.ans = this.tc.getNameServiceClient().getNbtByName(this.host, this.type, this.scope, this.svr); } catch ( UnknownHostException ex ) { this.uhe = ex; } catch ( Exception ex ) { this.uhe = new UnknownHostException(ex.getMessage()); } finally { synchronized ( this.sem ) { this.sem.count--; this.sem.notify(); } } }
addrs = tc.getNameServiceClient().getNodeStatus(this); if ( this.getNameType() == 0x1D ) { for ( int i = 0; i < addrs.length; i++ ) {
this.in = this.socket.getInputStream(); SessionServicePacket ssp = new SessionRequestPacket(tc.getConfig(), calledName, tc.getNameServiceClient().getLocalName()); this.out.write(this.sbuf, 0, ssp.writeWireFormat(this.sbuf, 0)); if ( readn(this.in, this.sbuf, 0, 4) < 4 ) {
@Override public SmbTransportImpl getSmbTransport ( CIFSContext tf, String name, int port, boolean exclusive, boolean forceSigning ) throws IOException { Address[] addrs = tf.getNameServiceClient().getAllByName(name, true);
if ( server != null && server.length() > 0 ) { this.addresses = new UniAddress[1]; this.addresses[ 0 ] = this.ctx.getNameServiceClient().getByName(server); Address addr = this.ctx.getNameServiceClient().getNbtByName(NbtAddress.MASTER_BROWSER_NAME, 0x01, null); this.addresses = new UniAddress[1]; this.addresses[ 0 ] = this.ctx.getNameServiceClient().getByName(addr.getHostAddress()); throw uhe; this.addresses = this.ctx.getNameServiceClient().getAllByName(this.ctx.getConfig().getDefaultDomain(), true); this.addresses = this.ctx.getNameServiceClient().getAllByName(host, true); this.addresses = this.ctx.getNameServiceClient().getAllByName(host, false);
NameServiceClient nameServiceClient = getTransportContext().getNameServiceClient(); if ( pathInfo == null || server == null ) { String mb = nameServiceClient.getNbtByName(NbtAddress.MASTER_BROWSER_NAME, 0x01, null).getHostAddress(); dc = nameServiceClient.getByName(mb); dc = nameServiceClient.getByName(server, possibleWorkgroup);
/** * Creates a Type-1 message using default values from the current * environment. * * @param tc * context to use */ public Type1Message ( CIFSContext tc ) { this(tc, getDefaultFlags(tc), tc.getConfig().getDefaultDomain(), tc.getNameServiceClient().getLocalHost().getHostName()); }