summaryrefslogtreecommitdiffstats
path: root/ldap_wizard
diff options
context:
space:
mode:
authorVicent Guardiola <vguardiola@mandriva.com>2004-09-21 07:33:33 +0000
committerVicent Guardiola <vguardiola@mandriva.com>2004-09-21 07:33:33 +0000
commit50b9b9c56e11f7b0f7ce2e61e719036073f5b7ab (patch)
tree72c6f979b56dbe70b3667c6ae7a2279df33fcb1c /ldap_wizard
parent4ea4c9a403a0dfcc3a78d9f47795effe30a3e6c8 (diff)
downloaddrakwizard-50b9b9c56e11f7b0f7ce2e61e719036073f5b7ab.tar
drakwizard-50b9b9c56e11f7b0f7ce2e61e719036073f5b7ab.tar.gz
drakwizard-50b9b9c56e11f7b0f7ce2e61e719036073f5b7ab.tar.bz2
drakwizard-50b9b9c56e11f7b0f7ce2e61e719036073f5b7ab.tar.xz
drakwizard-50b9b9c56e11f7b0f7ce2e61e719036073f5b7ab.zip
Add nss_ldap
Diffstat (limited to 'ldap_wizard')
-rw-r--r--ldap_wizard/Ldap.pm19
1 files changed, 16 insertions, 3 deletions
diff --git a/ldap_wizard/Ldap.pm b/ldap_wizard/Ldap.pm
index c60de6ac..c1f2fb3f 100644
--- a/ldap_wizard/Ldap.pm
+++ b/ldap_wizard/Ldap.pm
@@ -1,5 +1,5 @@
#!/usr/bin/perl
-# version 1.33
+# version 1.34
# GPL like
# vguardiola@mandrakesoft.com
@@ -27,7 +27,7 @@ use Net::LDAP::Util qw(ldap_error_text);
my $o = {
name => N("Ldap wizard"),
var => {
- defou => 'ou=Users',
+ defou => 'ou=People',
srv => 'localhost',
suffix => '',
rootdn => '',
@@ -50,7 +50,7 @@ my $o = {
nom => '',
prenom => '',
},
- needed_rpm => [ 'openldap-servers','openldap-clients' ],
+ needed_rpm => [ 'openldap-servers','openldap-clients','nss_ldap' ],
defaultimage => "$ENV{__WIZ_HOME__}ldap_wizard/images/ldap.png",
};
@@ -326,12 +326,25 @@ sub do_it_setldap {
append_to_file($LDAPCONF, "rootpw $o->{var}{rootpass}");
}
+ # Modify /etc/ldap.conf
+ #
+require authentication;
+authentication::update_ldap_conf(
+ host => $o->{var}{srv},
+ base => $wiz_domain_name,
+ nss_base_shadow => "ou=People,$o->{var}{suffix}",
+ nss_base_passwd => "ou=People,$o->{var}{suffix}",
+ nss_base_group => "ou=Group,$o->{var}{suffix}",
+ );
# reset premisions
system("chown -R root.ldap /etc/openldap");
services::restart('ldap');
sleep(4);
init_ldap();
+
+
+
}