diff options
Diffstat (limited to 'ldap_wizard/ldapdef.pm')
-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}", |