help scripting please

Discussion in 'General' started by mark2010, Jan 23, 2010.

  1. mark2010

    mark2010 New Member

    am new to Linux enviroment and i need your big help to start with :

    scenario

    " 1.To test whether user accounts have an empty password. If they
    do, it sets a temporary password and forces the user to change the password at the next login.

    2. to displays a summary of all accounts for which the password has been set. If no passwords have been set, the program displays a summary line, indicating no password is set. "


    thank you

    #!/bin/sh
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    How is this related to the myDNSConfig Control panel?
     
  3. jhnmorrison9

    jhnmorrison9 New Member

    mydnsconfig.

    Dear all,

    I need your help for resolving an issue.
    The application mydnsconfig is not accepting Arabic Domains can anyone help me please.

    Previously i was using Domain Manager in that for arabic domains we have to convert IDN to ASCII code then it will accepts i have done this same thing but the mydnsconfig is not responding and the output is below.

    ERROR1. Zone has a invalid format.

    So please help me the champs. eagerly waiting for your reply.
     
  4. jhnmorrison9

    jhnmorrison9 New Member

    Dears,

    I came to know that mydnsconfig will accepting IDNcode can i know how to convert from arabic domain to IDN code.

    for example: تجوالي.السعودية (xn--mgbfg1hsao.xn--mgberp4a5d4ar) this is ASCII code of arabic domain but how to convert it in to IDN code. Please help me out from this issue.
     
  5. falko

    falko Super Moderator ISPConfig Developer

  6. jhnmorrison9

    jhnmorrison9 New Member

    Mydnsconfig

    Dear Falko,

    I need to ask you some thing about Mydnsconfig..

    The question is why this application is not accepting Arabic Domains.

    As i came to know that Mydnsconfig will accept IDN code for arabic domains but it was not responding.
    Example: I did in this way (xn--mgbfg1hsao.xn--mgberp4a5d4ar)--- تجوالي.السعودية

    I entered this code in the zone but Mydnsconfig responding me as the zone is not in the correct format. So please help me to resolve this issue....
     
  7. falko

    falko Super Moderator ISPConfig Developer

    I think you need to change the regex in interface/web/dns/form/dns_soa.tform.php. Maybe you can change

    Code:
    'origin' => array (
                            'datatype'        => 'VARCHAR',
                            'formtype'        => 'TEXT',
                            'validators'        => array (         0 => array (        'type'        => 'NOTEMPTY',
                                                                                                                    'errmsg'=> 'origin_error_empty'),
                                                                                    1 => array (        'type'        => 'UNIQUE',
                                                                                                                    'errmsg'=> 'origin_error_unique'),
                                                                                    2 => array (        'type'        => 'REGEX',
                                                                                                                    'regex' => '/^[\w\.\-]{2,64}\.[a-zA-Z]{2,[COLOR="Red"]10[/COLOR]}[\.]{0,1}$/',
                                                                                                                    'errmsg'=> 'origin_error_regex'),
    to

    Code:
    'origin' => array (
                            'datatype'        => 'VARCHAR',
                            'formtype'        => 'TEXT',
                            'validators'        => array (         0 => array (        'type'        => 'NOTEMPTY',
                                                                                                                    'errmsg'=> 'origin_error_empty'),
                                                                                    1 => array (        'type'        => 'UNIQUE',
                                                                                                                    'errmsg'=> 'origin_error_unique'),
                                                                                    2 => array (        'type'        => 'REGEX',
                                                                                                                    'regex' => '/^[\w\.\-]{2,64}\.[a-zA-Z]{2,[COLOR="Red"]30[/COLOR]}[\.]{0,1}$/',
                                                                                                                    'errmsg'=> 'origin_error_regex'),
     

Share This Page