ok, i have fixed a bug which means that all anonymous password connections, public (no password) connections and down-level (LANMAN 1.0) connections should now work, using samba client-side code (cli_session_setup()). thanks to tim potter for spotting this one.