Added support for creating, deleting and modifying groups from a batch file. This is similar to the long-standing batch user management functionality.
Added support for Blowfish password hashing, which can be enabled on the Module Config page. On Solaris systems, it will be used if enabled in /etc/security/policy.conf. Requires the Crypt::Eksblowfish::Bcrypt Perl module though.
Converted commands in the module's API file to POD format, and added more details about each function.
+---- Changes since 1.470 ----
+Fixed a bug that caused an empty shell to appear in the shells list for new users.
$homefield);
# Show shell drop-down
-push(@shlist, $uinfo{'shell'}) if (%uinfo && $uinfo{'shell'});
+push(@shlist, $uinfo{'shell'}) if ($n ne "" && $uinfo{'shell'});
if ($access{'shells'} ne "*") {
# Limit to shells from ACL
- @shlist = %uinfo ? ($uinfo{'shell'}) : ();
+ @shlist = $n ne "" ? ($uinfo{'shell'}) : ();
push(@shlist, split(/\s+/, $access{'shells'}));
$shells = 1;
}
$shells = 1 if ($access{'noother'});
@shlist = &unique(@shlist);
-if (%uinfo && !$uinfo{'shell'}) {
+if ($n ne "" && !$uinfo{'shell'}) {
# No shell!
push(@shlist, [ "", "<None>" ]);
}
($shells ? "" : &ui_filebox("othersh", undef, 40, 1)));
# Get the password, generate random if needed
-$pass = %uinfo ? $uinfo{'pass'} : $config{'lock_string'};
-if (!%uinfo && $config{'random_password'}) {
+$pass = $n ne "" ? $uinfo{'pass'} : $config{'lock_string'};
+if ($n eq "" && $config{'random_password'}) {
&seed_random();
foreach (1 .. 15) {
$random_password .= $random_password_chars[
# Check if temporary locking is supported
if (&supports_temporary_disable()) {
- if (%uinfo && $pass ne $config{'lock_string'} && $pass ne "") {
+ if ($n ne "" && $pass ne $config{'lock_string'} && $pass ne "") {
# Can disable if not already locked, or if a new account
$can_disable = 1;
if ($pass =~ /^\Q$disable_string\E/) {
$pass =~ s/^\Q$disable_string\E//;
}
}
- elsif (!%uinfo) {
+ elsif ($n eq "") {
$can_disable = 1;
}
}