<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>I captured the samba requests and responds and the result reveals that:</DIV>
<DIV> </DIV>
<DIV>If the referal target is on a different host of the referral link, the client will issue CREATE_ANDX request with create options = 0x00200044 (i.e. try to open the path as a regular file) but as"abc" is a directory the server responds with STATUS_FILE_IS_A_DIRECTORY. that's why the rename request to <A href="file://10.0.0.13/dfsroot/link2">\\10.0.0.13\dfsroot\link2</A> will fail.<BR></DIV>
<DIV>But if the referral target is on the same host as the referral link, the CREATE_ANDX request options will be 0x0200000 and this request will succeed and then in trun the rename of <A href="file://\\10.0.0.13\dfsroot\link1">\\10.0.0.13\dfsroot\link1</A> will succeed.</DIV>
<DIV> </DIV>
<DIV>Does anyone know why the client will issue CREATE_ANDX with options = 0x00200044 for the first case?</DIV>
<DIV> </DIV>
<DIV><BR>Best regards,<BR><BR>James Pan<BR><BR>--- <B>12年11月22日,周四, James Pan <I><jmpret@yahoo.cn></I></B> 写道:<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid"><BR>发件人: James Pan <jmpret@yahoo.cn><BR>主题: is it possible to rename a dfs referral target from client?<BR>收件人: samba-technical@lists.samba.org<BR>日期: 2012年11月22日,周四,上午9:28<BR><BR>
<DIV class=plainMail>Hi everyone,<BR>Sorry for bothering.<BR>I have two servers (10.0.0.13, 10.0.0.14) running samba.<BR>10.0.0.13 is configured as dfs root, the smb.conf file is as below:<BR> <BR>[dfsroot]<BR>path = /mnt/dfsroot<BR>msdfs root = yes<BR>....<BR> <BR>then under /mnt/dfsroot on 10.0.0.13 I created a dir "abc" and two links:<BR>link1 --> msdfs:\\10.0.0.13\dfsroot\abc<BR>link2 --> msdfs:\\10.0.0.14\dfsroot\abc<BR> <BR>I also created the same dir "abc" on 10.0.0.14<BR> <BR>So if I visit \\10.0.0.13\dfsroot\link1 or \\10.0.0.13\dfsroot\link2 it will be refered to \\10.0.0.13\dfsroot\abc and \\10.0.0.14\dfsroot\abc respectively.<BR> <BR>Now I find I can successfully change the name of dir "abc" on 10.0.0.13 by renaming \\10.0.0.13\dfsroot\link1, after rename the dir "abc" will have the new name. But if I tried to rename \\10.0.0.13\dfsroot\link2, the request will be
 refused.<BR> <BR>My question is: is it possible to rename the dir "abc" on 10.0.0.14 through \\10.0.0.13\dfsroot\link2 ?<BR> <BR>many thanks in advance!<BR>Best regards,<BR><BR>James Pan<BR></DIV></BLOCKQUOTE></td></tr></table>