PPPD plugin development

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hey guys,

as stated before, I'm trying to write a plugin to authenticate against an external script. So far, I've only managed to get it to write a bit information to a log file on the server.

I'm trying to use the digest->code to determine the type of digest used. I figured that if I can find out which type it's using then I could then move forward with converting it or determining how to store the encrypted password to do a comparison.

I've also made it return 1 so that no matter what I enter, it should show authenticated.

digest->code writes as blank.
When using it as a switch->case scenario, it goes to default:
switch (digest->code) {
        case CHAP_MICROSOFT:
        {
          codemess = "MIC";
        }
        case CHAP_MICROSOFT_V2:
        {
          codemess = "MV2";
        }
        default:
          codemess = "Default";
}


The return 1 appears to work, but then I get the message:
MPPE required, but keys are not available.  Possible plugin problem?


I REALLY wish this was a documented better. Though I code in other scripting languages, C is not something I'm used to coding. So please feel free to give me a hard time, I'm muddling my way through C just to get the basics right.


--
Thank you,
Greg Borbonus
*Nix Server administrator

--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Audio Users]     [Linux for Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Fedora Users]

  Powered by Linux