summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-10-02 13:09:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:05 -0500
commit4295292734c144275bb6e256677f678ae7023fb4 (patch)
tree52a199f7066feec7350f1bb6b63ba2ac255fc303
parenteb00981fc363a104d43dba75a8d18cc02421bbf8 (diff)
downloadsamba-4295292734c144275bb6e256677f678ae7023fb4.tar.gz
samba-4295292734c144275bb6e256677f678ae7023fb4.tar.bz2
samba-4295292734c144275bb6e256677f678ae7023fb4.zip
r19042: Fix the non-krb5 build. This needs sooo severe cleanup ... :-)
Volker (This used to be commit b601fc42cb289366b7c522f41aa4c66920006890)
-rw-r--r--source3/libsmb/cliconnect.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index 983d9012f0..070717caef 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -765,6 +765,7 @@ ADS_STATUS cli_session_setup_spnego(struct cli_state *cli, const char *user,
DEBUG(3,("got principal=%s\n", principal ? principal : "<null>"));
+#ifdef HAVE_KRB5
if (got_kerberos_mechanism && (principal == NULL)) {
/*
* It is WRONG to depend on the principal sent in the negprot
@@ -776,6 +777,7 @@ ADS_STATUS cli_session_setup_spnego(struct cli_state *cli, const char *user,
DEBUGADD(1, ("Disabling Kerberos\n"));
cli->use_kerberos = False;
}
+#endif
fstrcpy(cli->user_name, user);