summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVicent Guardiola <vguardiola@mandriva.com>2004-08-10 14:18:06 +0000
committerVicent Guardiola <vguardiola@mandriva.com>2004-08-10 14:18:06 +0000
commita7c2a805a5d52cb73efcd9b829bf7684a898be52 (patch)
tree25e0372ddf9c4590a50b457965e6292b39917805
parent30412f83e1f565badde847f7b5cba1b7230b6c3c (diff)
downloaddrakwizard-a7c2a805a5d52cb73efcd9b829bf7684a898be52.tar
drakwizard-a7c2a805a5d52cb73efcd9b829bf7684a898be52.tar.gz
drakwizard-a7c2a805a5d52cb73efcd9b829bf7684a898be52.tar.bz2
drakwizard-a7c2a805a5d52cb73efcd9b829bf7684a898be52.tar.xz
drakwizard-a7c2a805a5d52cb73efcd9b829bf7684a898be52.zip
Change cn in root_bind
Add full homdirectory in user_add
-rw-r--r--ldap_wizard/ldapdef.pm5
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',