summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-12-21 12:29:51 +0000
committerAndrew Tridgell <tridge@samba.org>2001-12-21 12:29:51 +0000
commitcaaac2803a52969312a633c2f6e0c446a944dffe (patch)
treea6d9f834dd65e0949ffa76ef1a2eb880f3d9e974 /source3/client
parent384ce26f5bdf27aadaea967b17ee6ca8549aca5a (diff)
downloadsamba-caaac2803a52969312a633c2f6e0c446a944dffe.tar.gz
samba-caaac2803a52969312a633c2f6e0c446a944dffe.tar.bz2
samba-caaac2803a52969312a633c2f6e0c446a944dffe.zip
- handle kerberos session setup reply with broken null termination
- don't display Domain=[] for auth protocols that don't give us a domain (This used to be commit 20368455ea59e6e9b85632848bbe92069e7b0f38)
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/client.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index a5654a0eaf..bf0e0f6b04 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -2162,17 +2162,12 @@ struct cli_state *do_connect(const char *server, const char *share)
d_printf("Anonymous login successful\n");
}
- /*
- * These next two lines are needed to emulate
- * old client behaviour for people who have
- * scripts based on client output.
- * QUESTION ? Do we want to have a 'client compatibility
- * mode to turn these on/off ? JRA.
- */
-
- if (*c->server_domain || *c->server_os || *c->server_type){
+ if (*c->server_domain) {
DEBUG(1,("Domain=[%s] OS=[%s] Server=[%s]\n",
c->server_domain,c->server_os,c->server_type));
+ } else if (*c->server_os || *c->server_type){
+ DEBUG(1,("OS=[%s] Server=[%s]\n",
+ c->server_os,c->server_type));
}
DEBUG(4,(" session setup ok\n"));