diff options
-rw-r--r-- | ldap_wizard/ldapdef.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ldap_wizard/ldapdef.pm b/ldap_wizard/ldapdef.pm index b62d5d5d..10b0b00e 100644 --- a/ldap_wizard/ldapdef.pm +++ b/ldap_wizard/ldapdef.pm @@ -99,7 +99,8 @@ sub ldap_connect { # bind root sub root_bind{ my ($ldap) = @_; - my $mesg=$ldap->bind(dn =>"cn=".$o->{var}{rootdn}.",".$o->{var}{suffix},password =>$o->{var}{rootpass}); + #my $mesg=$ldap->bind(dn =>"cn=".$o->{var}{rootdn}.",".$o->{var}{suffix},password =>$o->{var}{rootpass}); + my $mesg=$ldap->bind(dn =>$o->{var}{rootdn},password =>$o->{var}{rootpass}); print ldap_error_text($mesg->code); return $mesg->code; } @@ -169,7 +170,7 @@ sub add_user { loginShell => $u->{var}{lshell}, uidNumber => $u->{var}{uidnb}, gidNumber => $u->{var}{gidnb}, - homeDirectory => $u->{var}{home}, + homeDirectory => $u->{var}{home}.$u->{var}{uid}, shadowMin => '-1', shadowMax => '999999', shadowWarning => '7', |