summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorVicent Guardiola <vguardiola@mandriva.com>2004-09-30 04:32:11 +0000
committerVicent Guardiola <vguardiola@mandriva.com>2004-09-30 04:32:11 +0000
commit27d66aeec586b5c78f3a059899253050b7dc54f0 (patch)
treedabfefe6d155d91217a7b1f90d1a28002cb0c0e6 /perl-install
parent1e486d004c45e583d5f66839cbe85fe6f0091194 (diff)
downloaddrakx-27d66aeec586b5c78f3a059899253050b7dc54f0.tar
drakx-27d66aeec586b5c78f3a059899253050b7dc54f0.tar.gz
drakx-27d66aeec586b5c78f3a059899253050b7dc54f0.tar.bz2
drakx-27d66aeec586b5c78f3a059899253050b7dc54f0.tar.xz
drakx-27d66aeec586b5c78f3a059899253050b7dc54f0.zip
Remove ssl config in ldap
Add pam_mkhomedir for ldap
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/authentication.pm11
1 files changed, 4 insertions, 7 deletions
diff --git a/perl-install/authentication.pm b/perl-install/authentication.pm
index 9b8d3ab09..9586ee30c 100644
--- a/perl-install/authentication.pm
+++ b/perl-install/authentication.pm
@@ -52,7 +52,6 @@ sub ask_parameters {
}
if ($kind eq 'LDAP') {
- $authentication->{LDAP_server} ||= 'ldap.' . $netc->{DOMAINNAME};
$netc->{LDAPDOMAIN} ||= domain_to_ldap_domain($netc->{DOMAINNAME});
$in->ask_from('',
N("Authentication LDAP"),
@@ -156,11 +155,9 @@ sub set {
update_ldap_conf(
host => $authentication->{LDAP_server},
base => $domain,
- port => 636,
- ssl => 'on',
- nss_base_shadow => "ou=People,$domain",
- nss_base_passwd => "ou=People,$domain",
- nss_base_group => "ou=Group,$domain",
+ nss_base_shadow => $domain."?sub",
+ nss_base_passwd => $domain."?sub",
+ nss_base_group => $domain."?sub",
);
} elsif ($kind eq 'AD') {
$in->do_pkgs->install(qw(nss_ldap pam_krb5 libsasl2-plug-gssapi));
@@ -326,7 +323,7 @@ sub set_pam_authentication {
password => [ intersection(\@authentication_kinds, [ 'ldap', 'krb5' ]) ],
);
my %before_first = (
- session => intersection(\@authentication_kinds, [ 'winbind', 'krb5' ]) ? pam_format_line('session', 'optional', 'pam_mkhomedir', 'skel=/etc/skel/', 'umask=0022') : '',
+ session => intersection(\@authentication_kinds, [ 'winbind', 'krb5','ldap' ]) ? pam_format_line('session', 'optional', 'pam_mkhomedir', 'skel=/etc/skel/', 'umask=0022') : '',
);
my %after_deny = (
session => member('krb5', @authentication_kinds) ? pam_format_line('session', 'optional', 'pam_krb5') : '',