Acquire server creds with given cred_usage rather than both
authorIsaac Boukris <iboukris@gmail.com>
Tue, 23 Jun 2015 00:15:31 +0000 (03:15 +0300)
committerSimo Sorce <simo@redhat.com>
Tue, 23 Jun 2015 20:56:49 +0000 (16:56 -0400)
Reviewed-by: Simo Sorce <simo@redhat.com>
src/mod_auth_gssapi.c

index 8a87745..3896649 100644 (file)
@@ -526,7 +526,7 @@ static bool mag_auth_basic(request_rec *req,
 
     /* must acquire creds based on the actual mechs we want to try */
     if (!mag_acquire_creds(req, cfg, actual_mechs,
-                           GSS_C_BOTH, &acquired_cred, NULL)) {
+                           cred_usage, &acquired_cred, NULL)) {
         goto done;
     }