From 4295292734c144275bb6e256677f678ae7023fb4 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 2 Oct 2006 13:09:42 +0000 Subject: r19042: Fix the non-krb5 build. This needs sooo severe cleanup ... :-) Volker (This used to be commit b601fc42cb289366b7c522f41aa4c66920006890) --- source3/libsmb/cliconnect.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3') 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 : "")); +#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); -- cgit