> 1) the name "as is" if less than 16 chars. this will fail against NT 4.0 SMB servers if the name has "." in it. i have a function "dns_to_netbios_name()" which does the required job. see rpcclient for an example of this being used. luke