From 891df31b373eefcdbe92c394c14435eac5bef5c5 Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Mon, 9 Jul 2001 16:17:48 +0000 Subject: added LDAP support for authentication. --- perl-install/install_any.pm | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'perl-install/install_any.pm') 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"); -- cgit v1.2.1