jcifs-程序员宅基地

技术标签: java  运维  操作系统  

SDescription说明

Packages 软件包

jcifs jcifs

jcifs.netbios jcifs.netbios

jcifs.smb jcifs.smb

jcifs.util jcifs.util

JCIFS JCIFS
The Java CIFS Client Library JCIFS客户端的Java库

http://jcifs.samba.org/ http://jcifs.samba.org/

The JCIFS SMB client library enables Javaapplications to remotely access shared files and directories on SMB fileservers(i.e. a Microsoft Windows "share") in addition to domain,workgroup, and server enumeration of NetBIOS over TCP/IP networks. SMB客户端库的JCIFS使Java应用程序进行远程访问,除中小企业的共享文件和文件服务器(即微软Windows的“股份”)目录域,工作组和服务器通过TCP / IP网络上的NetBIOS枚举。 It is an advanced implementationof the CIFS protocol supporting Unicode, batching, multiplexing of threadedcallers, encrypted authentication, transactions, the Remote Access Protocol(RAP), and much more.这是一个支持Unicode的CIFS协议提前实施,配料,螺纹来电,加密身份验证,交易复用,远程访问协议(说唱),等等。 It is licensed under LGPL whichmeans commercial organizations can legitimately use it with their proprietarycode(you just can't sell or give away a modified binary only version of thelibrary itself without reciprocation).它是根据LGPL的授权,这意味着商业机构可以合法地使用自己专有的代码(你就不能出售或赠送给修改二进制库本身无回报的唯一版本)。

The API 空气污染指数

The SmbFile , SmbFileInputStream , and SmbFileOutputStream classes are analogous to the File , FileInputStream , and FileOutputStream classes so if you know how touse those it should be quite obvious how to use jCIFS provided you set anynecessary properties (i.e. a WINS server) and understand the smb:// URL syntax.该SmbFile SmbFileInputStreamSmbFileOutputStream类是类似于File , FileInputStream ,和FileOutputStream类的,所以如果你知道如何使用那些它应该是很明显如何使用jCIFS提供任何必要的设置属性(即一台WINS服务器)和理解在smb:// URL语法。

Here's an example to retrieve a file:下面是一个例子,检索文件:

import jcifs.smb.*;进口jcifs.smb .*;

jcifs.Config.setProperty("jcifs.netbios.wins", "192.168.1.220" ); jcifs.Config.setProperty(“jcifs.netbios.wins”,“192.168.1.220”);

NtlmPasswordAuthentication auth= new NtlmPasswordAuthentication("domain", "username","password"); NtlmPasswordAut​​hentication认证=新NtlmPasswordAut​​hentication(“域”,“用户名”,“密码”);

SmbFileInputStream in = newSmbFileInputStream("smb://host/c/My Documents/somefile.txt", auth);在新的SmbFileInputStream SmbFileInputStream =(“中小企业:/ /主机/中/我的文档/ somefile.txt”,验证);

byte[] b = new byte[8192];字节[] b =新的字节[8192];

int n;诠释氮;

while(( n = in.read( b )) >0 ) {而(组(n = in.read(二))“0){

System.out.write( b, 0, n );System.out.write(二,0,N)的;

} }

You can also read/write, delete, makedirectories, rename, list contents of a directory, list theworkgroups/ntdomains and servers on the network, list the shares of a server,open named pipes, authenticate web clients ...etc.你也可以读/写,删除,使目录,重命名,列出目录内容,列出工作组/ntdomains和网络上的服务器,服务器列表的股份,打开命名管道,验证Web客户端...等

Setting Client Properties 设置客户端属性

It may be necessary to set variousproperties for the client to function properly.它可能需要为客户端正常运行的各种属性。For example, to connect to aserver on a remote subnet the IP address of a WINS server is required to retrieve the targetaddress although DNS names and direct IP addresses are also valid server componentswithin an SMB URL.例如,要连接到一个服务器上的远程子网的一个IP地址的WINS服务器需要检索目标地址尽管DNS名称和直接的IP地址也有效的SMB服务器组件内的网址。

There are three ways to specify any of theavailable properties listed the table at the bottom of this page.有三种方式来指定列在本页面底部的表中的任何可用的属性。

  • The traditional System properties are read when the client is first used.传统的系统属性是只读当客户端第一次使用。 This means you can specify an individual property (the full property name) on the command line like:这意味着你可以指定一个个人财产上的命令行中(完整的属性名):

·$ java -Djcifs.netbios.wins=192.168.1.220 MyApp $ Java的Djcifs.netbios.wins = 192.168.1.220MyApp的

OR set a System property fromwithin your application before any jCIFS classes are instantiated like:像被实例化或设置一个系统属性在您的应用程序, 然后从任何jCIFS类:

System.setProperty("jcifs.netbios.wins", "192.168.1.220" ); System.setProperty(“jcifs.netbios.wins”,“192.168.1.220”);

  • OR use the jcifs.Config class which is the class that maintains this information internally however, again, properties must be set before jCIFS client classes are referenced:或者使用jcifs.Config类是类,它维护内部然而这一信息,再次,属性必须设置客户端类之前 jCIFS被引用:

·jcifs.Config.setProperty( "jcifs.netbios.wins","192.168.1.220" );jcifs.Config.setProperty(“jcifs.netbios.wins”,“192.168.1.220”);

  • OR if the property "jcifs.properties" defines the location of a properties file, all properties will be loaded from it.或者如果财产“jcifs.properties”定义了一个属性文件的位置,所有属性将被载入如此。 For example:例如:

·$ cat miallen.prp $猫miallen.prp

·jcifs.netbios.wins=192.168.1.220jcifs.netbios.wins = 192.168.1.220

·jcifs.smb.client.username=miallenjcifs.smb.client.username = miallen

·jcifs.smb.client.password=legos56jcifs.smb.client.password = legos56

·;jcifs.netbios.baddr=192.168.1.255 ; jcifs.netbios.baddr = 192.168.1.255

·;jcifs.util.loglevel = 10 ;jcifs.util.loglevel = 10

·$ java -Djcifs.properties=miallen.prp MyApp $ Java的Djcifs.properties = miallen.prpMyApp的

Any properties specified using the -Djcifs.properties=myjcifsproperties.prp file may be overridden usingthe Systemproperties as will any -Dfull.property.name=value VM parameters which in turnmay then be overridden by the direct manipulation of properties using the Config class.使用指定的任何属性-Djcifs.properties=myjcifsproperties.prp文件可能被覆盖使用系统属性,将任何-Dfull.property.name=value VM参数,然后这反过来又可能是覆盖使用直接操纵性能Config类。

Available Properties 可用的属性
These properties may need to be specified for correct operation 这些属性可能需要指定正确的操作

jcifs.smb.client.username jcifs.smb.client.username

The default username used if not specified in an SMB URL使用默认的用户名,如果不是在URL中指定的SMB

jcifs.smb.client.password jcifs.smb.client.password

The default password used if not specified in an SMB URL使用预设的密码如果不是在URL中指定的SMB

jcifs.smb.client.domain jcifs.smb.client.domain

The default authentication domain used if not specified in an SMB URL使用默认的身份验证域如果不是在URL中指定的SMB

jcifs.netbios.wins jcifs.netbios.wins

The IP address of the WINS server.的WINS服务器的IP地址。 This is only required when accessing hosts on different subnets although it is recomended if a WINS server is provided.这是唯一需要的时候访问不同子网的主机虽然建议如果WINS服务器提供。

jcifs.netbios.baddr jcifs.netbios.baddr

The local network's broadcast address.本地网络的广播地址。 It may be necessary to set this for certain network configurations because the default of 255.255.255.255 may otherwise throw a "Network is unreachable" IOException .它可能需要设置某些网络配置,这是因为默认的255.255.255.255,否则可能引发“网络不可达” IOException 。 For example if the local host's IP address is 192.168.1.15, the broadcast address would likely be 192.168.1.255.例如,如果本地主机的IP地址是192.168.1.15,广播地址很可能是192.168.1.255。

jcifs.netbios.scope jcifs.netbios.scope

This is extremely rare but NetBIOS provides for a "scope id" to be used in a attempt to conceal groups of machines on the same network.这是非常罕见的,但一个的NetBIOS“范围的ID”要在一个企图掩盖在同一网络上的机器组使用规定。 Ask your network administrator if scope id is used.询问您的网络管理员使用范围ID。 If so, it must be set using this property or name queries will fail.如果是这样,它必须设置使用此属性或名称查询将失败。

jcifs.smb.client.laddr jcifs.smb.client.laddr

The IP address of the local interface the client should bind to if it is different from the default.本地接口的IP地址绑定到客户端应该如果它不同于默认。 For example if the client is to be used over a dial-up connection the IP address of the PPP interface may need to be specified with this property.例如,如果客户要在一个拨号连接的PPP接口的IP地址可能需要使用此属性指定。

jcifs.netbios.laddr jcifs.netbios.laddr

The IP address of the local interface the client should bind to for name queries if it is different from the default.本地接口的IP地址的客户端应为名称查询绑定到如果它不同于默认。

jcifs.netbios.lmhosts jcifs.netbios.lmhosts

The path to an lmhosts file containing a map of IP addresses to hostnames.路径到一个LMHOSTS文件包含一个IP地址映射为主机名。 The format of this file is identical to that of the Windows lmhosts file format.这个文件的格式是完全相同的Windows LMHOSTS文件格式。 See Setting Name Resoultion Properties for details.见设置名称Resoultion属性的详细信息。

jcifs.smb.client.disablePlainTextPasswords jcifs.smb.client.disablePlainTextPasswords

Plain text passwords should never be used and are disabled by default.纯文本密码不应该被使用,默认情况下禁用。 To enable jCIFS to use plain text password this property must be set to false.为了使jCIFS使用明文密码必须设置该属性为false。

jcifs.encoding jcifs.encoding

If the locale character encoding of the target server is not MS-DOS Latin-1, this property needs to be changed to reflect the proper encoding (eg Cp866 for Russian).如果目标服务器的本地字符编码是不是MS - DOS的Latin - 1的,这个属性需要改变以反映正确的编码(例如俄罗斯Cp866)。 Otherwise, share names, passwords, and in some cases file and directory names that contain non ASCII characters may not be handled properly.否则,共享名,密码,并在某些情况下,文件和目录名称中包含非ASCII字符可能无法得到妥善处理。 See this list of Supported Encodings and concentrate on the ones attributed as MS-DOS encodings.看到这种名单支持的编码 ,集中在DOS编码,归功于那些为MS。 By default this property is Cp860 which is MS-DOS Latin1.默认情况下此属性是Cp860这是MS - DOS Latin1的。

Note: The Cp860 charset converter is located in jre/lib/charsets.jar which AFAIK is only supported by the internationalized version of Sun's JRE.注:Cp860字符集转换器是位于在jre / lib中/ charsets.jar这AFAIK只有Sun的JRE的国际版本的支持。 If Cp860 is not available an exception will occur.如果Cp860不可用异常会发生。 To avoid this exception you can set jcifs.encoding to ASCII but share names and passwords with non-ASCII characters will not be processed correctly.为了避免这种异常,你可以设置jcifs.encoding为 ASCII字符,但共享名和密码,使用非ASCII的将不被正确处理。 To determine if jCIFS is properly processing these characters create a share that contains non-ASCII characers (eg Grüße) and then try to list that share with the ListFiles.java example program.如果要判断是正确处理jCIFS这些字符创建一个共享,包含非ASCII characers(如Grüße),然后尝试要列出程序共享与ListFiles.java例子。

As of jcifs-1.2.8 this property no longer defaults to the file.encoding system property because it was almost always meaningless (eg usually it's UTF-8 on Linux and no CIFS server currently emits UTF-8).作为jcifs - 1.2.8这个属性不再默认为file.encoding系统属性,因为它几乎总是无意义(如通常它的UTF - 8在Linux和CIFS服务器目前没有发射的UTF - 8)。

jcifs.smb.client.useExtendedSecurity jcifs.smb.client.useExtendedSecurity

True by default but this must be set to false for Samba 3.0.x as it seems older versions of Samba do not support *raw* NTLMSSP and currently JCIFS does not support SPNEGO.默认情况下,但是这必须设置为Samba 3.0.x到假假真真,因为它似乎Samba的旧版本不支持*生* NTLMSSP,目前JCIFS不支持SPNEGO的。

Less Commonly Used Properties 不太常用的特性
These properties are not required for the client to function but may be necessary for optimal utility 这些属性不需要客户端的功能,但可能需要最佳效用

jcifs.resolveOrder jcifs.resolveOrder

A comma separated list of name resolution method identifiers that specify which methods will be used and in what order to resolve hostnames.一个逗号分隔的名称解析方法标识符指定的方法将被使用和以什么顺序来解决主机名。 The possible identifiers in default order are LMHOSTS , WINS , BCAST , and DNS .在默认的顺序可能的标识符LMHOSTS , WINS , BCAST和DNS 。 See Setting Name Resoultion Properties for details.见设置名称Resoultion属性的详细信息。

jcifs.util.loglevel jcifs.util.loglevel

An integer specifying the verbosity of log messages.一个整数,指定日志消息的详细程度。 Higher values are more verbose值越高,更详细

  • 0 - No log messages are printed -- not even crticial exceptions. 0 - 无日志信息都印 - 即使crticial例外。
  • 1 - The default level. 1 - 默认级别。 Only critical messages are logged.唯一关键信息被记录。
  • 2 - Hightened log messages suitable for logging while under load. 2 - Hightened日志信息记录下的负载,同时使用。
  • 3 - Almost everything. 3 - 几乎一切。
  • N - Debugging only. ñ - 仅调试。

jcifs.util.log jcifs.util.log

Removed This property has been replaced by the above jcifs.util.loglevel property. 删除此属性已被取代上述jcifs.util.loglevel财产。 A series of string identifiers to induce log messages to be printed to the console such as log=EXC,DEB,WAR,HEX would log internal exceptions, debugging, warnings, and hex dumps of network packets.一个标识符系列串诱导日志信息被打印到控制台,如log=EXC,DEB,WAR,HEX将内部异常日志,调试,警告和网络数据包十六进制转储。 ALL may be specified to indicate all messages should be logged.所有这些可能被指定来表示所有的邮件应该被记录。 The ALL argument will produce more messages than EXC,DEB,WAR,HEX combined. NON will not print anything to the console including exceptions .在ALL参数将生成消息不是更多EXC,DEB,WAR,HEX相结合。 NON不能打印到控制台,包括任何例外

jcifs.smb.client.attrExpirationPeriod jcifs.smb.client.attrExpirationPeriod

Attributes of a file are cached for attrExpirationPeriod milliseconds.文件属性的是缓存attrExpirationPeriod毫秒。 The default is 5000.默认是5000。 This greatly improves performance because it eliminates redundant calls to the server however it is possible that two separate instances of SmbFile s pointing to the same resource may produce different results in awkward situations (eg s1.canRead() may return true even though s2.delete() was called immediately before).这极大地提高性能,因为它消除了多余的服务器调用但它是可能的两个实例分别SmbFile s指向同一个资源可能产生(比如不同难堪的局面导致s1.canRead()可能会返回true ,即使s2.delete()被称为前)。 For maximum reliability, turn off attribute expiration by setting this property to 0.为了获得最大的可靠性,关闭该属性设置为0,属性到期。

jcifs.smb.client.responseTimeout jcifs.smb.client.responseTimeout

The time period in milliseconds that the client will wait for a response to a request from the server.以毫秒为单位的时间内,客户端将等待到从服务器请求的响应。 The default value is 30000.默认值是30000。 Under poor network conditions you may wish to increase this value but jcifs.smb.client.soTimeout should be increased as well to accommodate.在恶劣的网络条件,您可能希望增加该值,但jcifs.smb.client.soTimeout应增加以及适应。

jcifs.smb.client.soTimeout jcifs.smb.client.soTimeout

To prevent the client from holding server resources unnecessarily, sockets are closed after this time period if there is no activity.为了防止不必要的客户端服务器资源控股,插座被关闭后,这段时间内如果没有任何活动。 This time is specified in milliseconds.这一次,被指定以毫秒为单位。 The default is 35000.默认值是35000。

jcifs.netbios.cachePolicy jcifs.netbios.cachePolicy

When a NetBIOS name is resolved with the NbtAddress class it is cached to reduce redundant name queries.当一个NetBIOS名称与NbtAddress类是解决缓存以减少重复名称查询。 This property controls how long, in seconds, these names are cached.此属性控制多久,在几秒钟内,这些名称缓存。 The default is 30 seconds, 0 is no caching, and -1 is forever.默认为30秒,0是没有缓存,-1是永恒的。

jcifs.netbios.hostname jcifs.netbios.hostname

This property will force port 139 rather than the default port 445.此属性将迫使139端口而不是默认的端口445。 Normally a CIFS client connecting to port 139 must present a NetBIOS name for itself to the server.通常,CIFS客户端连接到端口139必须出示自己的NetBIOS名称服务器。 JCIFS dynamically generates a name (eg JCIFS35_177_E6 ) for this purpose however it may be desirable to set this property to a specific name(eg PROD_FEED3 ) for reasons such as server accounting purposes. JCIFS动态生成一个名称(如JCIFS35_177_E6的目的)不过,这可能是可取的将此属性设置为一个特定的名称(如PROD_FEED3目的服务器会计)的原因,如。

jcifs.smb.client.listSize jcifs.smb.client.listSize

One command that may be individually tuned is the TRANS2_FIND_FIRST/NEXT2 operation.一个命令,可以单独调整是TRANS2_FIND_FIRST/NEXT2运作。 It is provoked by the list() method of SmbFile (but not for smb:// , smb://workgroup/ , or smb://server/ URLs).它挑起的名单()方法SmbFile (但不包括smb:// , smb://workgroup/ ,或smb://server/网址)。 The size of the data buffer used, in bytes, can be set with this property.数据大小的缓冲区使用,以字节为单位,可以与此属性设置。 The default size is 65535 bytes.默认大小为65535字节。 On higher latency networks a value below the MTU (eg 1200) may result in better performance.在一个较高的MTU值低于延迟网络(例如1200)可能会导致更好的性能。

jcifs.smb.client.listCount jcifs.smb.client.listCount

Similar to listSize property above, listCount is for tuning the TRANS2_FIND_FIRST/NEXT2 operation.类似listSize财产以上, listCount操作是调优TRANS2_FIND_FIRST/NEXT2。 It controls the maximum number of directory and file entries that should be returned with each request.它控制的目录和文件,应该与每个请求返回的最大项数。 The default is 200.默认为200。 On higher latency networks a lowever value (eg 15) may result in better performance.在高延迟网络一lowever值(如15)可能会导致更好的性能。

jcifs.smb.client.lport jcifs.smb.client.lport

If a particular local port must be used for socket communications, perhaps because a firewall requires the source port to be a specific value, it can be set with this property(eg lport=5139).如果一个特定的本地端口必须用于Socket通信,可能是因为防火墙需要源端口是一个特定的价值,它可以设置此属性(如lport = 5139)。 This has no effect on the remote port which is invariably 139.这不会影响它的远程端口139的影响是必然。

jcifs.netbios.soTimeout jcifs.netbios.soTimeout

To prevent the client from holding resources unnecessarily, the datagram socket used for nameservice queries is closed after this time period which is specified in milliseconds.为了避免不必要的客户持有的资源,数据报套接字使用的名称服务查询后关闭这个时间段是在以毫秒为单位指定。 The default is 5000.默认是5000。

jcifs.netbios.lport jcifs.netbios.lport

If a particular local port must be used for socket communications, perhaps because a firewall requires the source port to be a specific value, it can be set with this property(eg lport=5137).如果一个特定的本地端口必须用于Socket通信,可能是因为防火墙需要源端口是一个特定的价值,它可以设置此属性(如lport = 5137)。 This has no effect on the remote port which is invariably 137.这不会影响它的远程端口137的影响是必然。

jcifs.netbios.retryCount jcifs.netbios.retryCount

The number of times a name query should be attempted if no answer is received.一个名称查询应该尝试,如果没有收到答复的次数。 In adverse network conditions one may wish to increase this value however failed name queries take retryCount * retryDuration milliseconds.在恶劣的网络条件之一可能希望增加该值而未名称查询需要retryCount * retryDuration毫秒。 The default value is 2.默认值是2。 Should probably increase jcifs.netbios.retryTimeout instead.或许应该增加jcifs.netbios.retryTimeout代替。

jcifs.netbios.retryTimeout jcifs.netbios.retryTimeout

The duration in milliseconds that the client will wait for a response to a name query.以毫秒为单位的时间,客户端将等待到一个名称查询响应。 The default is 3000.默认值是3000。

jcifs.http.domainController jcifs.http.domainController

The DNS hostname or IP address of a server that should be used to authenticate HTTP clients with the NtlmSsp class (use by NtlmHttpFilter and NetworkExplorer ). DNS主机名或IP)地址NetworkExplorer服务器应该使用的HTTP客户端和身份验证与所NtlmSsp类(使用NtlmHttpFilter。 If this is not specified the jcifs.smb.client.domain 0x1C NetBIOS group name will be queried.如果这不是指定的jcifs.smb.client.domain 0x1C进行 NetBIOS组名称将被质疑。 It is not necessary for this to specify a real domain controller.这是没有必要为此指定一个真正的域控制器。 The IP address of a workstation will do for development purposes.工作站的IP地址将做发展的目的。 We do not support DCE/RPC NETLOGON.我们不支持的DCE / RPC的的NETLOGON。 See jCIFS NTLM HTTP Authentication Support for more information.见jCIFS NTLM身份验证支持的HTTP获取更多信息。

jcifs.http.basicRelm jcifs.http.basicRelm

The realm for basic authentication.对于基本身份验证领域。 This property defaults to 'jCIFS'.此属性默认为'jCIFS'。

jcifs.http.enableBasic jcifs.http.enableBasic

Setting this property to true enables basic authentication over HTTPS only.设置此属性,以使真正的HTTPS仅基本身份验证了。

jcifs.http.insecureBasic jcifs.http.insecureBasic

Setting this property to true enables basic authentication over plain HTTP.设置此属性,以使真正的纯HTTP基本验证了。 This configuration passes user credentials in plain text over the network.这种配置在网络中传递明文用户凭据。 It should not be used in environment where security is required.它不应该被用在环境中的安全是必需的。

jcifs.smb.lmCompatibility jcifs.smb.lmCompatibility

This client can perform NTLMv2 with and without NTLMSSP as well as NTLMv1.此客户端可以执行与不NTLMSSP以及NTLMv1 NTLMv2的。 The default lmCompatibility level is 3 to indicate that NTLMv2 should be favored (although prior to JCIFS 1.3.0, NTLMv1 was the default).默认lmCompatibility级别为3,表明NTLMv2的应受到青睐(虽然之前JCIFS 1.3.0,NTLMv1是默认值)。 This can be changed by using this property with an integer that specifies the "level" of security:这可以通过改变一个整数,指定“级别”的安全这个属性:

  • 0,1 -- Sends LM and NTLM responses. 0,1 - 发送LM和NTLM响应。
  • 2 -- Sends only the NTLM response. 2 - 仅发送NTLM响应。 This is more secure than Levels 0 and 1, because it eliminates the cryptographically-weak LM response.这比0和1安全水平,因为它消除了加密弱长征响应。
  • 3,4,5 -- Sends LMv2 and NTLMv2 data. 3,4,5 - 发送LMv2和NTLMv2数据。 NTLMv2 session security is also negotiated if the server supports it. NTLMv2会话安全也是谈判如果服务器支持它。 This is the default behavior (in 1.3.0 or later).这是默认行为(在1.3.0或更高版本)。

These values mirror those used with the Windows registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa used for the same purpose.这些值相同的目的,采用镜面与Windows的注册表项 HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \控制\ LSA的用途。 See the page entitled The NTLM Authentication Protocol for a technical description of these authentication mechanisms.见页题为NTLM身份验证协议的认证机制的技术说明这些。

This must be set to 0 for older versions of Samba (3.0.x) as it seems they do not support *raw* NTLMSSP and currently JCIFS does not support SPNEGO.这个必须设置为Samba的旧版本(3.0.x的)为0,因为它似乎不支持*生* NTLMSSP,目前JCIFS不支持SPNEGO的。

jcifs.smb.client.ssnLimit jcifs.smb.client.ssnLimit

No more than this number of sessions will be open over the same transport.没有比这更多的会话数将会开放在同一运输。 If the limit is reached, new redundant transports will be opened to accomodate more sessions.如果达到上限,新的冗余传输将开放,以容纳更多的会话。 If this value is set to 1 a new transport will be created for each session.如果此值设置为1,全新的交通将创建为每个会话。 The default value is 250.默认值是250。 Using a value that is too high may result in ERRSVR/90: Too many Uids active on this session.使用一个值过高会导致ERRSVR/90:太许多活跃在这个会议的UID。

jcifs.smb.client.signingPreferred jcifs.smb.client.signingPreferred

The JCIFS client will negotiate SMB signing with a server that requires it.该JCIFS客户端将与服务器进行协商,要求它SMB签名。 If the server does not require SMB signing but supports it, it will be necessary to set this property to true for signing to occur.如果服务器不要求SMB签名,但是支持它,就必须将此属性设置为 true签署的发生。 Signing is required by default with Windows 2003.签名要求与Windows 2003的默认。 Currently it is not possible to use singing with NTLM HTTP authentication because the password hases are required to generate the signing key which is known only to the client (Internet Exploiter).目前,它是无法使用HTTP身份验证使用NTLM唱歌,因为密码hases需要生成签名密钥,只知道客户端(Internet开拓者)。 It will be necessary to implement the NETLOGON RPC to fully support signing with NTLM HTTP authentication.这将是必要实施的NETLOGON RPC来全力支持与NTLM HTTP认证的签字仪式。 We do not support DCE/RPC NETLOGON.我们不支持的DCE / RPC的的NETLOGON。

jcifs.http.loadBalance jcifs.http.loadBalance

If a jcifs.smb.client.domain property is specified (and domainController is not specified) the NtlmHttpFilter will query for domain controllers by name.如果jcifs.smb.client.domain属性被指定(及加入DomainController 指定)NtlmHttpFilter将名称查询由域控制器。 If this property is true the Filter will rotate through the list of domain controllers when authenticating users.如果此属性为 true过滤器将通过旋转控制器列表用户进行身份验证时的域。 The default value is true .默认值是 true。 The jcifs.netbios.lookupRespLimit property can also be used to limit the number of domain controllers used.该jcifs.netbios.lookupRespLimit属性也可用于限制使用的数字控制器的域。

jcifs.netbios.lookupRespLimit jcifs.netbios.lookupRespLimit

The 0x1C NetBIOS name query returns a list of domain controllers.该0x1C进行NetBIOS名称查询返回的域控制器列表。 It is believed that the servers at the top of this list should be favored.据信,在此列表的顶部的服务器应该受到青睐。 This property limits the range of servers returned by name queries.此属性限制按名称查询返回的服务器范围。 The default value is 5 meaning the top 5 domain controllers will be used.默认值是5的意思前5个域控制器将被使用。

jcifs.smb.client.logonShare jcifs.smb.client.logonShare

The shared name against which SmbSession.logon() will authenticate users.对其中的共享名称SmbSession.logon()将用户进行身份验证。 The default value is IPC$ but changing it can be used to create simple group based access control for the NtlmHttpFilter or other applications that use SmbSession.logon() .默认值是 IPC $,但改变它可以用来创建简单的组SmbSession.logon()的访问控制,使用NtlmHttpFilter或其他应用程序。 See the SmbSession API documentation for details.见SmbSession API文档了解详情。

jcifs.smb.client.dfs.disabled jcifs.smb.client.dfs.disabled

If this property is true , domain based DFS referrals will be disabled.如果此属性为 true,基于域的DFS推介会被禁用。 The default value is false.默认值是false。 This property can be important in non-domain environments where domain-based DFS referrals that normally run when JCIFS first tries to resolve a path would timeout causing a long startup delay (eg running JCIFS only on the local machine without a network like on a laptop).这个属性可以是重要的非域环境下基于域的DFS的推荐,而正常运行时JCIFS首先尝试解决路径将超时没有像一台笔记本电脑网络造成只能在本地计算机上的长启动延迟(例如运行JCIFS )。

jcifs.smb.client.dfs.ttl jcifs.smb.client.dfs.ttl

The time in seconds that DFS topology information should be cached.在几秒钟时间,DFS拓扑信息应该被缓存。 The default value is 300 seconds (although the trusted domains list is cached for 10 times jcifs.smb.client.dfs.ttl ).默认值是300秒(尽管受信任域的列表是jcifs.smb.client.dfs.ttl缓存10倍)。

jcifs.smb.client.dfs.strictView jcifs.smb.client.dfs.strictView

This property controls how JCIFS behaves if it fails to enumerate DFS roots but succeeds to enumerate shares.此属性控制如何JCIFS的行为,如果它未能枚举DFS根但成功枚举股。 By default this value is false to indicate that JCIFS should quitely return the list of shares even if the DFS root enumeration fails.默认情况下此值是false,表示JCIFS应该静静返回共享列表,即使在DFS根枚举失败。 If this value is set to true, an exception will be thrown if DFS information cannot be successfully retrieved (eg an SmbAuthException due to insufficient access).如果此值设置为true,将抛出一个异常,如果DFS信息无法顺利检索(例如一SmbAuthException由于没有足够的访问)。

Advanced Properties 高级属性
These should not be changed 这些不应改变

jcifs.smb.client.nativeOs jcifs.smb.client.nativeOs

Specifies the NativeOS field in the SMB_COM_SESSION_SETUP_ANDX command.指定在SMB_COM_SESSION_SETUP_ANDX命令NativeOS领域。 The default is the os.name system property.默认为os.name系统属性。

jcifs.smb.client.nativeLanMan jcifs.smb.client.nativeLanMan

Specifies the NativeLanMan field in the SMB_COM_SESSION_SETUP_ANDX request.指定在SMB_COM_SESSION_SETUP_ANDX请求NativeLanMan领域。 The default is "jCIFS".默认是“jCIFS”。

jcifs.smb.client.maxMpxCount jcifs.smb.client.maxMpxCount

This client can send and receive messages concurrently over the same socket.此客户端可以发送和接收邮件同时在同一插座。 The number of simultaneous outstanding transactions with a given server is controlled by this property.优秀的交易,同时给定的服务器数量是由这个属性。 The default is 10.默认为10。 Under extremely unlikely circumstances this value may need to be adjusted to achive optimal throughput.在极不可能的情况下这个值可能需要进行调整,以达到最佳的吞吐量。 It is more likely this property would be set to 1 to support a deficient server.它更可能此属性将被设置为1,以支持不足的服务器。

jcifs.smb.client.useNTSmbs jcifs.smb.client.useNTSmbs

This property is largely ignored.此属性在很大程度上被忽略。

jcifs.smb.client.useUnicode jcifs.smb.client.useUnicode

This client will use Unicode strings wherever negotiated.此客户端将使用Unicode字符串的地方谈判。 Setting this property to false will remove Unicode capability and therefore use only 8 bit strings will used (although Unicode will still be used to accomodate a few protocol bugs).属性设置为false将删除的Unicode能力,因此只使用8位字符串将使用(虽然unicode将仍然可以用来容纳几个协议的错误)。

jcifs.netbios.client.writeSize jcifs.netbios.client.writeSize

The size of buffer in bytes that the NetBIOS Socket layer uses to write data to the raw socket.在字节的缓冲区大小的NetBIOS套接字层用来写入数据的原始套接字。 The default is 1500 and in effect limits the NetBIOS session service outbound message size.默认是1500,实际上限制了NetBIOS会话服务站邮件的大小。

jcifs.smb.client.flags2 jcifs.smb.client.flags2

A carefully crafted integer may be used with this property to specify the flags2 field of the SMB header.一个精心制作的整数,可使用该属性指定的SMB头flags2领域。

jcifs.smb.client.capabilities jcifs.smb.client.capabilities

A carefully crafted integer may be used with this property to specify the capabilities field of the SMB_COM_SESSION_SETUP_ANDX command.一个精心制作的整数,可使用此属性来指定SMB_COM_SESSION_SETUP_ANDX指挥能力领域。

jcifs.smb.client.rcv_buf_size jcifs.smb.client.rcv_buf_size

One buffer is used to decode incoming packets.一个缓冲区用于传入的数据包进行解码。 The size of this buffer may be specified, in bytes, using this property.这个缓冲区的大小可能被指定,以字节为单位,使用此属性。 The default is 60416.默认值是60416。

jcifs.smb.client.snd_buf_size jcifs.smb.client.snd_buf_size

One buffer is used to encode outgoing packets.一个缓冲区是用来编码传出的数据包。 The size of this buffer may be specified, in bytes, using this property.这个缓冲区的大小可能被指定,以字节为单位,使用此属性。 The default is 16644.默认值是16644。

jcifs.smb.client.serviceType jcifs.smb.client.serviceType

The service type should always be '?????'服务类型应始终'?????' which means that the server should resolve it and to my knowledge this resolution mechanism has never failed.这意味着该服务器应该解决这个问题,并就我所知,这一决议的机制并没有失败。 But ...但是... should one wish to experiment you can set it with this property.应愿望是实验中,你可以设置此属性。 Service types can be at least A:, LPT1:, IPC, and COMM.服务类型可在至少一个:,lpt1:在,IPC和商科。

jcifs.smb.client.<smb_ident>.<smb_ident> jcifs.smb.client。<smb_ident>。<smb_ident>

It is possible to "tune" batching (aka chaining) by specifying and integer batch level for a pair of SMB messages.这是可能的“调”配料(又名链)和整数指定一对一批中小企业信息水平。 See Batching for details.见配料的细节。

jcifs.smb.client.useBatching jcifs.smb.client.useBatching

To turn off batching altogether specify false for this property.要关闭配料共指定false这个属性。 The default is true .默认是true 。

jcifs.smb.client.tcpNoDelay jcifs.smb.client.tcpNoDelay

If this property is true , setTcpNoDelay( true ) will be called on all SMB transport sockets.如果这个属性是true ,setTcpNoDelay(真)将要求所有的SMB传输插座。 The default value is false (Nagle's algorithm is enabled).默认值是false (Nagle的算法是启用)。

jcifs.smb.client.transaction_buf_size jcifs.smb.client.transaction_buf_size

The maximum SMB transaction buffer size.中小企业交易的最大缓冲区大小。 The default is 0xFFFF - 512.默认是0xFFFF - 512。

jcifs.smb.maxBuffers jcifs.smb.maxBuffers

The maximum number of of jcifs.smb.client.transaction_buf_size buffers that the buffer cache will create.的最大数量jcifs.smb.client.transaction_buf_size该缓冲区高速缓存将创建。 The default is 16.默认为16。

英语原文:

The IPaddress of the WINS server.

更好的翻译建议

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/yongyonglsy/article/details/84443030

智能推荐

c# 调用c++ lib静态库_c#调用lib-程序员宅基地

文章浏览阅读2w次,点赞7次,收藏51次。四个步骤1.创建C++ Win32项目动态库dll 2.在Win32项目动态库中添加 外部依赖项 lib头文件和lib库3.导出C接口4.c#调用c++动态库开始你的表演...①创建一个空白的解决方案,在解决方案中添加 Visual C++ , Win32 项目空白解决方案的创建:添加Visual C++ , Win32 项目这......_c#调用lib

deepin/ubuntu安装苹方字体-程序员宅基地

文章浏览阅读4.6k次。苹方字体是苹果系统上的黑体,挺好看的。注重颜值的网站都会使用,例如知乎:font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, W..._ubuntu pingfang

html表单常见操作汇总_html表单的处理程序有那些-程序员宅基地

文章浏览阅读159次。表单表单概述表单标签表单域按钮控件demo表单标签表单标签基本语法结构<form action="处理数据程序的url地址“ method=”get|post“ name="表单名称”></form><!--action,当提交表单时,向何处发送表单中的数据,地址可以是相对地址也可以是绝对地址--><!--method将表单中的数据传送给服务器处理,get方式直接显示在url地址中,数据可以被缓存,且长度有限制;而post方式数据隐藏传输,_html表单的处理程序有那些

PHP设置谷歌验证器(Google Authenticator)实现操作二步验证_php otp 验证器-程序员宅基地

文章浏览阅读1.2k次。使用说明:开启Google的登陆二步验证(即Google Authenticator服务)后用户登陆时需要输入额外由手机客户端生成的一次性密码。实现Google Authenticator功能需要服务器端和客户端的支持。服务器端负责密钥的生成、验证一次性密码是否正确。客户端记录密钥后生成一次性密码。下载谷歌验证类库文件放到项目合适位置(我这边放在项目Vender下面)https://github.com/PHPGangsta/GoogleAuthenticatorPHP代码示例://引入谷_php otp 验证器

【Python】matplotlib.plot画图横坐标混乱及间隔处理_matplotlib更改横轴间距-程序员宅基地

文章浏览阅读4.3k次,点赞5次,收藏11次。matplotlib.plot画图横坐标混乱及间隔处理_matplotlib更改横轴间距

docker — 容器存储_docker 保存容器-程序员宅基地

文章浏览阅读2.2k次。①Storage driver 处理各镜像层及容器层的处理细节,实现了多层数据的堆叠,为用户 提供了多层数据合并后的统一视图②所有 Storage driver 都使用可堆叠图像层和写时复制(CoW)策略③docker info 命令可查看当系统上的 storage driver主要用于测试目的,不建议用于生成环境。_docker 保存容器

随便推点

网络拓扑结构_网络拓扑csdn-程序员宅基地

文章浏览阅读834次,点赞27次,收藏13次。网络拓扑结构是指计算机网络中各组件(如计算机、服务器、打印机、路由器、交换机等设备)及其连接线路在物理布局或逻辑构型上的排列形式。这种布局不仅描述了设备间的实际物理连接方式,也决定了数据在网络中流动的路径和方式。不同的网络拓扑结构影响着网络的性能、可靠性、可扩展性及管理维护的难易程度。_网络拓扑csdn

JS重写Date函数,兼容IOS系统_date.prototype 将所有 ios-程序员宅基地

文章浏览阅读1.8k次,点赞5次,收藏8次。IOS系统Date的坑要创建一个指定时间的new Date对象时,通常的做法是:new Date("2020-09-21 11:11:00")这行代码在 PC 端和安卓端都是正常的,而在 iOS 端则会提示 Invalid Date 无效日期。在IOS年月日中间的横岗许换成斜杠,也就是new Date("2020/09/21 11:11:00")通常为了兼容IOS的这个坑,需要做一些额外的特殊处理,笔者在开发的时候经常会忘了兼容IOS系统。所以就想试着重写Date函数,一劳永逸,避免每次ne_date.prototype 将所有 ios

如何将EXCEL表导入plsql数据库中-程序员宅基地

文章浏览阅读5.3k次。方法一:用PLSQL Developer工具。 1 在PLSQL Developer的sql window里输入select * from test for update; 2 按F8执行 3 打开锁, 再按一下加号. 鼠标点到第一列的列头,使全列成选中状态,然后粘贴,最后commit提交即可。(前提..._excel导入pl/sql

Git常用命令速查手册-程序员宅基地

文章浏览阅读83次。Git常用命令速查手册1、初始化仓库git init2、将文件添加到仓库git add 文件名 # 将工作区的某个文件添加到暂存区 git add -u # 添加所有被tracked文件中被修改或删除的文件信息到暂存区,不处理untracked的文件git add -A # 添加所有被tracked文件中被修改或删除的文件信息到暂存区,包括untracked的文件...

分享119个ASP.NET源码总有一个是你想要的_千博二手车源码v2023 build 1120-程序员宅基地

文章浏览阅读202次。分享119个ASP.NET源码总有一个是你想要的_千博二手车源码v2023 build 1120

【C++缺省函数】 空类默认产生的6个类成员函数_空类默认产生哪些类成员函数-程序员宅基地

文章浏览阅读1.8k次。版权声明:转载请注明出处 http://blog.csdn.net/irean_lau。目录(?)[+]1、缺省构造函数。2、缺省拷贝构造函数。3、 缺省析构函数。4、缺省赋值运算符。5、缺省取址运算符。6、 缺省取址运算符 const。[cpp] view plain copy_空类默认产生哪些类成员函数

推荐文章

热门文章

相关标签