r18107: Only do a SAF realm store if the logon was krb5.
authorJeremy Allison <jra@samba.org>
Tue, 5 Sep 2006 21:11:08 +0000 (21:11 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:43:29 +0000 (11:43 -0500)
Jeremy.
(This used to be commit 131682461c87973ac9ce0e2d097ad4d7b7afb23c)

source3/nsswitch/winbindd_cm.c

index efee477c0d4751f9055ad60634af7938de86e528..85b1d5d6cdc5c1485598606b77ac2ba88b6fec66 100644 (file)
@@ -363,7 +363,7 @@ static NTSTATUS cm_prepare_connection(const struct winbindd_domain *domain,
        /* cache the server name for later connections */
 
        saf_store( domain->name, (*cli)->desthost );
-       if (domain->alt_name) {
+       if (domain->alt_name && (*cli)->use_kerberos) {
                saf_store( domain->alt_name, (*cli)->desthost );
        }