Remove the profile relation, since it's really a bad idea. Removed
authorTheodore Tso <tytso@mit.edu>
Fri, 6 Oct 1995 02:47:46 +0000 (02:47 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 6 Oct 1995 02:47:46 +0000 (02:47 +0000)
the "port" and "secondary_port" relations, and replaced them with the
"kdc_port" relation, which takes a list of ports.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6936 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kadm/ChangeLog
src/lib/kadm/alt_prof.c

index d25cf5865f773649a9fa717fce92974c48bd79cb..ed8818d454b1dc8a7945259c40f9d1f4e1175cc4 100644 (file)
@@ -1,3 +1,10 @@
+Thu Oct  5 19:46:40 1995  Theodore Y. Ts'o  <tytso@dcl>
+
+       * alt_prof.c (krb5_read_realm_params): Remove the profile
+               relation, since it's really a bad idea.  Removed the
+               "port" and "secondary_port" relations, and replaced them
+               with the "kdc_port" relation, which takes a list of ports.
+
 Mon Oct  2 15:08:53 1995  Theodore Y. Ts'o  <tytso@dcl>
 
        * logger.c (krb5_klog_init): If the log file can't be opened,
index 316572e3dbba725b8bb33ee13226d0fb0d60791e..597bbc0d553554dfa8b26b340d87c4ac56fecd48 100644 (file)
@@ -292,45 +292,18 @@ krb5_read_realm_params(kcontext, realm, kdcprofile, kdcenv, rparamp)
     /* Initialize realm parameters */
     memset((char *) rparams, 0, sizeof(krb5_realm_params));
 
-    /* Get the value of the per-realm profile */
+    /* Get the value for the database */
     hierarchy[0] = "realms";
     hierarchy[1] = lrealm;
-    hierarchy[2] = "profile";
-    hierarchy[3] = (char *) NULL;
-    if (!krb5_aprof_get_string(aprofile, hierarchy, TRUE, &svalue)) {
-       const char *filenames[2];
-
-       /*
-        * XXX this knows too much about krb5 contexts.
-        */
-       filenames[0] = svalue;
-       filenames[1] = (char *) NULL;
-       if (kcontext->profile)
-           profile_release(kcontext->profile);
-       if (!(kret = profile_init(filenames, &kcontext->profile)))
-           rparams->realm_profile = svalue;
-       else
-           krb5_xfree(svalue);
-    }
-
-    /* Get the value for the database */
     hierarchy[2] = "database_name";
+    hierarchy[3] = (char *) NULL;
     if (!krb5_aprof_get_string(aprofile, hierarchy, TRUE, &svalue))
        rparams->realm_dbname = svalue;
        
-    /* Get the value for the KDC primary port */
-    hierarchy[2] = "port";
-    if (!krb5_aprof_get_int32(aprofile, hierarchy, TRUE, &ivalue)) {
-       rparams->realm_kdc_pport = ivalue;
-       rparams->realm_kdc_pport_valid = 1;
-    }
-           
-    /* Get the value for the KDC secondary port */
-    hierarchy[2] = "secondary_port";
-    if (!krb5_aprof_get_int32(aprofile, hierarchy, TRUE, &ivalue)) {
-       rparams->realm_kdc_sport = ivalue;
-       rparams->realm_kdc_sport_valid = 1;
-    }
+    /* Get the value for the KDC port list */
+    hierarchy[2] = "kdc_ports";
+    if (!krb5_aprof_get_string(aprofile, hierarchy, TRUE, &svalue))
+       rparams->realm_kdc_ports = svalue;
            
     /* Get the value for the kadmind port */
     hierarchy[2] = "kadmind_port";