]> andersk Git - moira.git/commitdiff
replace hardcoded ATHENA realm with call to get_krbrlm();
authormar <mar>
Tue, 20 Oct 1987 15:09:22 +0000 (15:09 +0000)
committermar <mar>
Tue, 20 Oct 1987 15:09:22 +0000 (15:09 +0000)
lib/mr_auth.c

index 852bf251508efd5df3d51803da489368e1b122e7..daf436f299ade381c73bdf4b35a25acdaed11c91 100644 (file)
@@ -6,9 +6,12 @@
  *     Copyright (C) 1987 by the Massachusetts Institute of Technology
  *
  *     $Log$
- *     Revision 1.3  1987-06-16 17:47:20  wesommer
- *     Clean up memory allocation, indenting.
+ *     Revision 1.4  1987-10-20 15:09:22  mar
+ *     replace hardcoded ATHENA realm with call to get_krbrlm();
  *
+ * Revision 1.3  87/06/16  17:47:20  wesommer
+ * Clean up memory allocation, indenting.
+ * 
  * Revision 1.2  87/05/31  22:03:23  wesommer
  * It's working better.
  * 
@@ -35,7 +38,8 @@ int sms_auth()
     sms_params params_st;
     char *args[1];
     int argl[1];
-    
+    char realm[REALM_SZ];
+
     register sms_params *params = &params_st;
     sms_params *reply = NULL;
     KTEXT_ST auth;
@@ -47,7 +51,10 @@ int sms_auth()
      * The "service" and "instance" should not be hardcoded here.
      */
        
-    status = mk_ap_req(&auth, "sms", "sms", "ATHENA.MIT.EDU", 0);
+    if ((status = get_krbrlm(realm, 1)) != KSUCCESS) {
+       return status;
+    }
+    status = mk_ap_req(&auth, "sms", "sms", realm, 0);
     if (status != KSUCCESS) {
        status += krb_err_base;
        return status;
This page took 0.667805 seconds and 5 git commands to generate.