]> andersk Git - moira.git/commitdiff
Make mrcl_connect authenticate for us rather than doing it seperately.
authorzacheiss <zacheiss>
Wed, 23 Aug 2006 19:01:50 +0000 (19:01 +0000)
committerzacheiss <zacheiss>
Wed, 23 Aug 2006 19:01:50 +0000 (19:01 +0000)
Makes our error message more consistant with other apps.

clients/mrcheck/mrcheck.c

index e1b77301ffe4cdb2ea602bb5a4e17091cf73e55a..6dfb9ccb675754f4c31f0ba33838ef8d31ece292 100644 (file)
@@ -197,14 +197,8 @@ int main(int argc, char *argv[])
        usage();
     }
 
-  if (mrcl_connect(server, NULL, 2, 0) != MRCL_SUCCESS)
+  if (mrcl_connect(server, "mrcheck", 2, auth_required) != MRCL_SUCCESS)
     exit(2);
-  status = mr_krb5_auth("mrcheck");
-  if (status && auth_required)
-    {
-      sprintf(buf, "\nAuthorization failure -- run \"kinit\" and try again");
-      goto punt;
-    }
 
   now = time(NULL);
   sq = sq_create();
This page took 0.036009 seconds and 5 git commands to generate.