The paragraph below is how I implemented a system that allowed users to signup via the internet. After reading your input again, I realized that you may not be wanting that functionality.

I wrote a portion of code at one time that added users to a BSD box. Perl was only the Web Interface. I have since learned that my implementation was probably very risky. I had the Perl script add names and passwords to a file that got evaluated every 5 minutes by a cron job. The cron script then called the existing Unix shell scripts to add the user to radius and the system. My main concern was that someone would somehow fake out the system to add a root user. I tried to break the system and couldn't but then again I am no hacker. I'm sure my implementation, at that early a stage of my Perl programming expierence, had vulnerabilities. The code is long gone, we have replaced it with a commercially developed software set called ISPPower, now called Inovaware, it is extremely powerful, but comes with a huge learning curve, big price tag, and difficult documentation. I believe they have a Unix version.

I think the Volkswagon analogy is good, you have a long row to ho. You will save your self lots of time by calling existing Unix scripts if it is safe to do so. Yoda

In reply to Re: Perl ISP management. by Yoda
in thread Perl ISP management. by muzakfetch

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.