I know this is a forwarded issue but I had the same problem and found the solution. I created the following diff...
193c193 < if (defined $Options{'a'} or defined $Options{'i'} or defined $Options{'w'}) { --- > if (defined $Options{'a'} or defined $Options{'i'}) { 306,327d305 < if (defined($Options{'w'})) { < my $date=time; < my $modify = $ldap_master->modify ( "uid=$userName,$config{computersdn}", < changes => [ < replace => [objectClass => ['inetOrgPerson', 'posixAccount', 'sambaSAMAccount']], < add => [sambaAcctFlags => '[W ]'], < add => [sambaSID => "$user_sid"], < add => [sambaLogonTime => '0'], < add => [sambaLogoffTime => '2147483647'], < add => [sambaLMPassword => "kala"], < add => [sambaNTPassword => "kala"], < add => [sambaKickoffTime => '2147483647'], < add => [sambaPwdCanChange => '0'], < add => [sambaPwdMustChange => '2147483647'], < add => [sambaPwdLastSet => "$date"], < add => [sambaPrimaryGroupSID => "$config{SID}-515"] < ] < ); < < $modify->code && die "failed to add entry: ", $modify->error ; < } < 392,397c370,374 < # if (defined $config{userHomeDirectoryMode}) { < # system "chmod $config{userHomeDirectoryMode} $userHomeDirectory 2>/dev/null"; < # } else { < # system "chmod 700 $userHomeDirectory 2>/dev/null"; < # } < system "chmod 700 $userHomeDirectory 2>/dev/null"; --- > if (defined $config{userHomeDirectoryMode}) { > system "chmod $config{userHomeDirectoryMode} $userHomeDirectory 2>/dev/null"; > } else { > system "chmod 700 $userHomeDirectory 2>/dev/null"; > } Perhaps it will help anybody. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]