summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémy Clouard (shikamaru) <shikamaru@mageia.org>2012-12-16 22:31:39 +0000
committerRémy Clouard (shikamaru) <shikamaru@mageia.org>2012-12-16 22:31:39 +0000
commit253d3ef35b6b02bf62e6706e4fc38fef8bd038e1 (patch)
tree9f0643fa9a8b240a975a50604b2ffd604837500f
parent3d282fc4dc3bba4f16ba0d451195578c9b6b9b9b (diff)
downloaddrakx-253d3ef35b6b02bf62e6706e4fc38fef8bd038e1.tar
drakx-253d3ef35b6b02bf62e6706e4fc38fef8bd038e1.tar.gz
drakx-253d3ef35b6b02bf62e6706e4fc38fef8bd038e1.tar.bz2
drakx-253d3ef35b6b02bf62e6706e4fc38fef8bd038e1.tar.xz
drakx-253d3ef35b6b02bf62e6706e4fc38fef8bd038e1.zip
Partially fix #7667 (broken /etc/krb5.conf)
The problem was that the variable $authentication->{AD_domain} was set in ask_parameters, but we were using $authentication->{DNS_domain} in configure_krb5_for_AD. I’m pretty sure winbind is broken as well because in ask_parameters we set $authentication->{DNS_domain} but use AD_domain 15 lines below. Please review this, it fixes authentication for me using local file (LDAP config is broken for me as well, but more on that later)
-rw-r--r--perl-install/authentication.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/authentication.pm b/perl-install/authentication.pm
index 9fc00a78e..22aeab7b0 100644
--- a/perl-install/authentication.pm
+++ b/perl-install/authentication.pm
@@ -693,12 +693,12 @@ sub configure_krb5_for_AD {
$uc_domain = {
kdc = $authentication->{AD_server}:88
admin_server = $authentication->{AD_server}:749
- default_domain = $authentication->{DNS_domain}
+ default_domain = $authentication->{AD_domain}
}
EOF
domain_realm => <<EOF,
- .$authentication->{DNS_domain} = $uc_domain
- $authentication->{DNS_domain} = $uc_domain
+ .$authentication->{AD_domain} = $uc_domain
+ $authentication->{AD_domain} = $uc_domain
EOF
kdc => <<'EOF',
profile = /etc/kerberos/krb5kdc/kdc.conf