]> andersk Git - moira.git/blobdiff - reg_svr/reg_svr.pc
Build without krb4 if it's unavailable.
[moira.git] / reg_svr / reg_svr.pc
index a8616151ffd51d6aa1aef305e1a07523b0ad6f2e..1016e18649431f7594cfcf918e4271890f1183f6 100644 (file)
@@ -33,7 +33,9 @@
 #include <unistd.h>
 
 #include <com_err.h>
+#ifdef HAVE_KRB4
 #include <krb.h>
+#endif
 
 EXEC SQL INCLUDE sqlca;
 
@@ -805,13 +807,7 @@ int register_user(int uid, char *username)
       return MR_DOWN;
     }
 
-  status = krb_get_svc_in_tkt(REG_SVR_PRINCIPAL, REG_SVR_INSTANCE,
-                             krb_realmofhost(hostname), MOIRA_SNAME,
-                             shorthostname, 3, KEYFILE);
-  if (status)
-    status += ERROR_TABLE_BASE_krb;
-  else
-    status = mr_krb5_auth("reg_svr");
+  status = mr_krb5_auth("reg_svr");
   if (status)
     {
       com_err(whoami, status, "authenticating to moira");
This page took 0.180546 seconds and 4 git commands to generate.