Acquire server creds with given cred_usage rather than both
[mod_auth_gssapi.git] / 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;
     }