From 76abef9d9ee08d9e1a776df461a00026f0f98b39 Mon Sep 17 00:00:00 2001 From: Vicent Guardiola Date: Fri, 20 Aug 2004 08:51:48 +0000 Subject: Change $conf_file to /etc/sysconfig/ldapwiz --- ldap_wizard/ldapdef.pm | 4 ++-- 1 file 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}", -- cgit v1.2.1