summaryrefslogtreecommitdiffstats
path: root/perl-install/install_any.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-07-09 16:17:48 +0000
committerFrancois Pons <fpons@mandriva.com>2001-07-09 16:17:48 +0000
commit891df31b373eefcdbe92c394c14435eac5bef5c5 (patch)
treebd6cd4908fdefc0b2c337029ddd61490c1fe5357 /perl-install/install_any.pm
parent93cb58efd05c85e1ed55d6bb36f750e696e939bd (diff)
downloaddrakx-891df31b373eefcdbe92c394c14435eac5bef5c5.tar
drakx-891df31b373eefcdbe92c394c14435eac5bef5c5.tar.gz
drakx-891df31b373eefcdbe92c394c14435eac5bef5c5.tar.bz2
drakx-891df31b373eefcdbe92c394c14435eac5bef5c5.tar.xz
drakx-891df31b373eefcdbe92c394c14435eac5bef5c5.zip
added LDAP support for authentication.
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r--perl-install/install_any.pm11
1 files changed, 8 insertions, 3 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index 52ee660ea..780227723 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -429,11 +429,16 @@ sub addToBeDone(&$) {
sub setAuthentication {
my ($o) = @_;
- my ($shadow, $md5, $nis) = @{$o->{authentication} || {}}{qw(shadow md5 NIS)};
+ my ($shadow, $md5, $ldap, $nis) = @{$o->{authentication} || {}}{qw(shadow md5 LDAP NIS)};
my $p = $o->{prefix};
- any::enableMD5Shadow($p, $shadow, $md5);
+ #- obsoleted always enabled (in /etc/pam.d/system-auth furthermore) #any::enableMD5Shadow($p, $shadow, $md5);
any::enableShadow($p) if $shadow;
- if ($nis) {
+ if ($ldap) {
+ $o->pkg_install(qw(chkauth openldap-clients nss_ldap pam_ldap));
+ run_program::rooted($o->{prefix}, "/usr/sbin/chkauth", "ldap", "-D", $o->{netc}{LDAPDOMAIN}, "-s", $ldap);
+ } elsif ($nis) {
+ #$o->pkg_install(qw(chkauth ypbind yp-tools net-tools));
+ #run_program::rooted($o->{prefix}, "/usr/sbin/chkauth", "yp", $domain, "-s", $nis);
$o->pkg_install("ypbind");
my $domain = $o->{netc}{NISDOMAIN};
$domain || $nis ne "broadcast" or die _("Can't use broadcast with no NIS domain");