walters / rpms / nfs-utils

Forked from rpms/nfs-utils 6 years ago
Clone
85ed8ab
commit 313ab396c04afe160ee6764e28b5e61ce19c46d9
85ed8ab
Author: Kevin Coffman <kwc@citi.umich.edu>
85ed8ab
Date:   Wed May 7 14:32:45 2008 -0400
85ed8ab
85ed8ab
    Add the other two DES encryption types to the default list of
85ed8ab
    Kerberos encryption types that may be negotiated.
85ed8ab
    
85ed8ab
    Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
85ed8ab
    Signed-off-by: Steve Dickson <steved@redhat.com>
85ed8ab
85ed8ab
diff --git a/utils/gssd/krb5_util.c b/utils/gssd/krb5_util.c
85ed8ab
index 3cf27ca..0589cd8 100644
85ed8ab
--- a/utils/gssd/krb5_util.c
85ed8ab
+++ b/utils/gssd/krb5_util.c
85ed8ab
@@ -277,7 +277,9 @@ limit_krb5_enctypes(struct rpc_gss_sec *sec, uid_t uid)
85ed8ab
 	u_int maj_stat, min_stat;
85ed8ab
 	gss_cred_id_t credh;
85ed8ab
 	gss_OID_set_desc  desired_mechs;
85ed8ab
-	krb5_enctype enctypes[] = { ENCTYPE_DES_CBC_CRC };
85ed8ab
+	krb5_enctype enctypes[] = { ENCTYPE_DES_CBC_CRC,
85ed8ab
+				    ENCTYPE_DES_CBC_MD5,
85ed8ab
+				    ENCTYPE_DES_CBC_MD4 };
85ed8ab
 	int num_enctypes = sizeof(enctypes) / sizeof(enctypes[0]);
85ed8ab
 
85ed8ab
 	/* We only care about getting a krb5 cred */