logon path = {return('\\\%N\%U\profile') unless $smb{ServerRole} =~ m{^(DC|BDC)$};
              if ($smb{RoamingProfiles} eq "yes")
              {
                  return($smb{LogonPath} || '\\\%L\Profiles\%U');
              }
              else
              {
                  return ('\\\%N\%U');
              }
             }
