summaryrefslogtreecommitdiffstats
path: root/ldap_wizard
diff options
context:
space:
mode:
authorAntoine Ginies <aginies@mandriva.com>2005-04-11 16:48:27 +0000
committerAntoine Ginies <aginies@mandriva.com>2005-04-11 16:48:27 +0000
commitf8f3fe118a814e36fe605e7d4f0293444a3c5475 (patch)
treef73fa6778f68e06ea188cc42c7a4bd1b2391c328 /ldap_wizard
parentc3f729cadb6ed51ec4aab7f31e1afb2dde03ba5d (diff)
downloaddrakwizard-f8f3fe118a814e36fe605e7d4f0293444a3c5475.tar
drakwizard-f8f3fe118a814e36fe605e7d4f0293444a3c5475.tar.gz
drakwizard-f8f3fe118a814e36fe605e7d4f0293444a3c5475.tar.bz2
drakwizard-f8f3fe118a814e36fe605e7d4f0293444a3c5475.tar.xz
drakwizard-f8f3fe118a814e36fe605e7d4f0293444a3c5475.zip
test domainname with domainname command
Diffstat (limited to 'ldap_wizard')
-rw-r--r--ldap_wizard/Ldap.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/ldap_wizard/Ldap.pm b/ldap_wizard/Ldap.pm
index 385d7fb0..f8152266 100644
--- a/ldap_wizard/Ldap.pm
+++ b/ldap_wizard/Ldap.pm
@@ -26,6 +26,7 @@ use Net::LDAP::Util qw(ldap_error_text);
my $wiz = new MDK::Wizard::Wizcommon;
my $wiz_domain_name = $wiz->{net}->network_get("DOMAINNAME");
my $wiz_host_name = $wiz->{net}->network_get("HOSTNAME");
+my $DOMAINNAME = chomp_(`domainname`);
my $o = {
name => N("Ldap wizard"),
@@ -56,7 +57,7 @@ my $o = {
needed_rpm => [ 'openldap-servers', 'openldap-clients', 'nss_ldap' ],
defaultimage => "$ENV{__WIZ_HOME__}ldap_wizard/images/ldap.png",
init => sub {
- test_host_domain($wiz_host_name, $wiz_domain_name);
+ test_host_domain($wiz_host_name, $DOMAINNAME);
}
};