From 99cfea62c159962d09c42c4cdb24984e478696d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sat, 13 May 2006 18:51:41 +0000 Subject: [PATCH] (change): select the realm based on the target principal From Gabor Gombas git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17571 ec53bebd-3082-4978-b11e-865c3cabbd6b --- kpasswd/kpasswdd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kpasswd/kpasswdd.c b/kpasswd/kpasswdd.c index 6e4ca95e5..e82762f0a 100644 --- a/kpasswd/kpasswdd.c +++ b/kpasswd/kpasswdd.c @@ -334,6 +334,9 @@ change (krb5_auth_context auth_context, goto out; } + conf.realm = principal->realm; + conf.mask |= KADM5_CONFIG_REALM; + ret = kadm5_init_with_password_ctx(context, admin, NULL,