From a7c2a805a5d52cb73efcd9b829bf7684a898be52 Mon Sep 17 00:00:00 2001 From: Vicent Guardiola Date: Tue, 10 Aug 2004 14:18:06 +0000 Subject: Change cn in root_bind Add full homdirectory in user_add --- ldap_wizard/ldapdef.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ldap_wizard') 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', -- cgit v1.2.1