[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with multiple realms/databases



Hi,

Another self reply: the following patch makes kpasswdd able to select
between multiple databases based on the target principal's realm.

Gabor

--- kpasswd/kpasswdd.c.orig	2005-04-22 13:03:11.000000000 +0200
+++ kpasswd/kpasswdd.c	2006-05-05 15:39:36.000000000 +0200
@@ -334,6 +334,9 @@
 	goto out;
     }
 
+    conf.realm = principal->realm;
+    conf.mask |= KADM5_CONFIG_REALM;
+
     ret = kadm5_init_with_password_ctx(context, 
 				       admin,
 				       NULL,

-- 
     ---------------------------------------------------------
     MTA SZTAKI Computer and Automation Research Institute
                Hungarian Academy of Sciences
     ---------------------------------------------------------