diff options
author | Vicent Guardiola <vguardiola@mandriva.com> | 2004-08-20 08:51:48 +0000 |
---|---|---|
committer | Vicent Guardiola <vguardiola@mandriva.com> | 2004-08-20 08:51:48 +0000 |
commit | 76abef9d9ee08d9e1a776df461a00026f0f98b39 (patch) | |
tree | f8965300ff758df9a8c0b7d29d930d1c22168a5f | |
parent | f682b2c0ac5def1196c79fc1073d91605a3f8882 (diff) | |
download | drakwizard-76abef9d9ee08d9e1a776df461a00026f0f98b39.tar drakwizard-76abef9d9ee08d9e1a776df461a00026f0f98b39.tar.gz drakwizard-76abef9d9ee08d9e1a776df461a00026f0f98b39.tar.bz2 drakwizard-76abef9d9ee08d9e1a776df461a00026f0f98b39.tar.xz drakwizard-76abef9d9ee08d9e1a776df461a00026f0f98b39.zip |
Change $conf_file to /etc/sysconfig/ldapwiz
-rw-r--r-- | ldap_wizard/ldapdef.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ldap_wizard/ldapdef.pm b/ldap_wizard/ldapdef.pm index 59134c0c..f7d1d7f2 100644 --- a/ldap_wizard/ldapdef.pm +++ b/ldap_wizard/ldapdef.pm @@ -18,7 +18,7 @@ use vars qw(@ISA @EXPORT %cfg %cfgfile $congfile $msg $attrs %ldap $ldap); my $ldap_suffix=join(',dc=', split(/\./, chomp_(`hostname -f`))); $ldap_suffix =~ s/[^,]*,//; -my $conf_file = "/etc/sysconfig/ldapconf"; +my $conf_file = "/etc/sysconfig/ldapwiz"; ##### Read conf file is exist @@ -107,7 +107,7 @@ sub get_dse() { sub add_user { my ($u) = @_; - my $ldap = ldap_connect(); + my $ldap = ldap_connect($u); root_bind($ldap); my $result = $ldap->add( "uid=$u->{var}{uid},$u->{var}{defou},$u->{var}{suffix}", |