-Sun Feb 22 15:14:55 EST 2009
-jcifs-1.3.4b
+Sun Mar 9 11:46:15 EDT 2009
+jcifs-1.3.4
+
+JCIFS 1.3.3 was accidentally compiled with Java 1.5. This release has
+been compiled with Java 1.4. Note that NTLMv2 still requires Java 1.5
+update 7 for RC4.
SMB parameter words were not decoded correctly (which were ultimately
related to the fact that the WordCount of the SMB_COM_NT_CREATE_ANDX
SMB_COM_TREE_CONNECT_ANDX response of certain IBM clusters. This should
now be fixed.
-The error code for 0xC000018B has been updated.
+The status codes and text for NT_STATUS_INVALID_COMPUTER_NAME (0xC0000122)
+and NT_STATUS_NO_TRUST_SAM_ACCOUNT (0xC000018B) have been added.
Server capabilities in the SMB_COM_NEGOTIATE response were not being
-read correctly.
+read correctly. This issue has been fixed.
+
+The documentation regarding the return value of renameTo has been fixed.
Sun Jan 25 14:31:31 EST 2009
jcifs-1.3.3
<project name="jcifs" default="usage" basedir=".">
- <property name="version" value="1.3.4b"/>
- <property name="reldate" value="Feb 22, 2009"/>
+ <property name="version" value="1.3.4"/>
+ <property name="reldate" value="Mar 7, 2009"/>
<target name="usage">
<echo>
public static final int NT_STATUS_NO_SUCH_DOMAIN = 0xC00000df;
public static final int NT_STATUS_NOT_A_DIRECTORY = 0xC0000103;
public static final int NT_STATUS_CANNOT_DELETE = 0xC0000121;
+ public static final int NT_STATUS_INVALID_COMPUTER_NAME = 0xC0000122;
public static final int NT_STATUS_PIPE_BROKEN = 0xC000014b;
public static final int NT_STATUS_NO_SUCH_ALIAS = 0xC0000151;
public static final int NT_STATUS_LOGON_TYPE_NOT_GRANTED = 0xC000015b;
NT_STATUS_NO_SUCH_DOMAIN,
NT_STATUS_NOT_A_DIRECTORY,
NT_STATUS_CANNOT_DELETE,
+ NT_STATUS_INVALID_COMPUTER_NAME,
NT_STATUS_PIPE_BROKEN,
NT_STATUS_NO_SUCH_ALIAS,
NT_STATUS_LOGON_TYPE_NOT_GRANTED,
"The specified domain did not exist.",
"The directory name is invalid.",
"Access is denied.",
+ "The format of the specified computer name is invalid.",
"The pipe has been ended.",
"The specified local group does not exist.",
"Logon failure: the user has not been granted the requested logon type at this computer.",
}
}
}
+ public static byte[] toByteArray(rpc.sid_t sid) {
+ byte[] dst = new byte[1 + 1 + 6 + sid.sub_authority_count * 4];
+ int di = 0;
+ dst[di++] = sid.revision;
+ dst[di++] = sid.sub_authority_count;
+ System.arraycopy(sid.identifier_authority, 0, dst, di, 6);
+ di += 6;
+ for (int ii = 0; ii < sid.sub_authority_count; ii++) {
+ jcifs.util.Encdec.enc_uint32le(sid.sub_authority[ii], dst, di);
+ di += 4;
+ }
+ return dst;
+ }
int type;
String domainName = null;
* <code>smb://workgroup/</code> lists servers, the <code>smb://</code>
* URL lists all available workgroups on a netbios LAN. Again,
* in this context many methods are not valid and return default
- * values(e.g. <code>isHidden</code> and <code>renameTo</code> will always
- * return false).
+ * values(e.g. <code>isHidden</code> will always return false).
* </td></tr>
*
* <tr><td width="20%"><code>smb://angus.foo.net/d/jcifs/pipes.doc</code></td><td>
* new <tt>SmbFile</tt></i>.
*
* @param dest An <code>SmbFile</code> that represents the new pathname
- * @return <code>true</code> if the file or directory was successfully renamed
* @throws NullPointerException
* If the <code>dest</code> argument is <code>null</code>
*/