summaryrefslogtreecommitdiffstats
path: root/source/libsmb/clientgen.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-06-29 19:39:23 +0000
committerLuke Leighton <lkcl@samba.org>1999-06-29 19:39:23 +0000
commitb0539d43407cb2b0bab7977908de09b21b145218 (patch)
tree0115062ac3645355e5c4600e60cac72f28359e5a /source/libsmb/clientgen.c
parentab1a6aa42db5217f025941fb5107436556bc23b7 (diff)
downloadsamba-b0539d43407cb2b0bab7977908de09b21b145218.tar.gz
samba-b0539d43407cb2b0bab7977908de09b21b145218.tar.xz
samba-b0539d43407cb2b0bab7977908de09b21b145218.zip
smbclient modified to use cli_establish_connection(). smbclient therefore
now uses improved authentication. smbclient now "broken" for "scripts" based on DEBUG() output. cli_establish_connection() requires modification to support old scripts.
Diffstat (limited to 'source/libsmb/clientgen.c')
-rw-r--r--source/libsmb/clientgen.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/libsmb/clientgen.c b/source/libsmb/clientgen.c
index 8d3508d98fe..cc51ab0c4b5 100644
--- a/source/libsmb/clientgen.c
+++ b/source/libsmb/clientgen.c
@@ -754,6 +754,7 @@ BOOL cli_session_setup_x(struct cli_state *cli,
strupper(p);
p = skip_string(p,1);
pstrcpy(p,user_domain);
+ strupper(p);
p = skip_string(p,1);
pstrcpy(p,"Unix");p = skip_string(p,1);
CVAL(p, 0) = 0; p++;
@@ -2851,6 +2852,16 @@ BOOL cli_establish_connection(struct cli_state *cli,
return False;
}
+ DEBUG(1,("session setup ok\n"));
+
+ if (*cli->server_domain || *cli->server_os || *cli->server_type)
+ {
+ DEBUG(1,("Domain=[%s] OS=[%s] Server=[%s]\n",
+ cli->server_domain,
+ cli->server_os,
+ cli->server_type));
+ }
+
if (do_tcon)
{
if (!cli_send_tconX(cli, service, service_type,