[Spce-user] Autogenerate Password without special character

Matthias Hohl matthias.hohl at telematica.at
Wed Mar 29 04:07:46 EDT 2017


Hello,

 

since 4.5.3 deactivating autogenerate passwords without special characters
doesn't work anymore.

 

I did the same fix like i always did in the previous versions, but i still
have always special characters in new generated passwords.

Did you change anything? I also see that there is a "password_min_length" of
"8" but in my config.yml i defined "12" and this is also used for new
passwords?

Could it be that you change the config file to another place and
"/usr/share/perl5/NGCP/Panel/Utils/ <http://subscriber.pm/> Subscriber.pm"
is not working anymore?

 

BTW: it would be nice if we could have this option in config.yml

 

 

 

# nano /usr/share/perl5/NGCP/Panel/Utils/ <http://subscriber.pm/>
Subscriber.pm

 

    my $passlen = $c->config->{security}->{password_min_length} || 8;

    if($c->config->{security}->{password_sip_autogenerate} &&
!$params->{password}) {

        $params->{password} = String::MkPasswd::mkpasswd(

            -length => $passlen,

            -minnum => 1, -minlower => 1, -minupper => 1, -minspecial => 0,

            -distribute => 1, -fatal => 1,

        );

    }

    if($c->config->{security}->{password_web_autogenerate} &&
!$params->{webpassword}) {

        $params->{webpassword} = String::MkPasswd::mkpasswd(

            -length => $passlen,

            -minnum => 1, -minlower => 1, -minupper => 1, -minspecial => 0,

            -distribute => 1, -fatal => 1,

        );

    }

# ngcpcfg apply

 

-----------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20170329/82f696e3/attachment.html>


More information about the Spce-user mailing list