~ubuntu-branches/ubuntu/natty/freeradius/natty-security

« back to all changes in this revision

Viewing changes to scripts/create-users.pl

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-01-04 21:40:02 UTC
  • mfrom: (1.1.14 upstream) (4.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100104214002-41gcmr2dd7sebn58
Tags: 2.1.8+dfsg-1ubuntu1
Resynchronize with Debian. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
                $password .= $char;
47
47
        }
48
48
 
 
49
        if (length($num)%2==1) {
 
50
            $num="0".$num;
 
51
        }
49
52
        printf PASS "$username:%s:1001:1001:Name:/dev/null:/dev/null\n", crypt($password, $password);
50
53
        printf SHAD "$username:%s:1000:0:99999:7:::\n", crypt($password, $password);
51
54
        printf RAD  "User-Name=$username, User-Password=$password,NAS-IP-Address=127.0.0.1,NAS-Port-Id=0\n\n";