need to export kadm5_set_use_password_server
authorAlexandra Ellwood <lxs@mit.edu>
Thu, 4 May 2006 18:43:20 +0000 (18:43 +0000)
committerAlexandra Ellwood <lxs@mit.edu>
Thu, 4 May 2006 18:43:20 +0000 (18:43 +0000)
Need to export "kadm5_set_use_password_server" because it is used by
krb5kdc when USE_PASSWORD_SERVER is defined.  Since the Mac builds this
way we need it in the export list.  Unfortunately export lists don't get
preprocessed.  Note that I only added this one function.  The rest of the
password server functionality is still conditionalized around
USE_PASSWORD_SERVER.

Hopefully we can rip all this code out when Apple starts using the db plugin
interface for their password server integration.

ticket: new
target_version: 1.5

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

src/lib/kadm5/srv/libkadm5srv.exports
src/lib/kadm5/srv/svr_principal.c

index e698c6957e1b62f9a2b46b55be2ed1df42f8c906..2bc56b0266f7af613ac51294965a83b17926e182 100644 (file)
@@ -13,6 +13,7 @@ hist_key
 hist_kvno
 hist_princ
 init_dict
+kadm5_set_use_password_server
 kadm5_chpass_principal
 kadm5_chpass_principal_3
 kadm5_chpass_principal_util
index 36ca2a158d8168acd7fb986cfcc1ad42465d3d7a..f94d7e89343adc812e5235323bd30d1a8deaf708 100644 (file)
@@ -1170,8 +1170,6 @@ static kadm5_ret_t add_to_history(krb5_context context,
      return(0);
 }
 
-#ifdef USE_PASSWORD_SERVER
-
 /* FIXME: don't use global variable for this */
 krb5_boolean use_password_server = 0;
 
@@ -1187,6 +1185,8 @@ kadm5_set_use_password_server (void)
     use_password_server = 1;
 }
 
+#ifdef USE_PASSWORD_SERVER
+
 /*
  * kadm5_launch_task () runs a program (task_path) to synchronize the 
  * Apple password server with the Kerberos database.  Password server