Hi all

I'd like to write a plugin that will authenticate using the same system for
both pap and 'login:' prompt logins.

How I think to do this:
In plugin_init() in the plugin it prints "login: ". It then checks the input
to see if it's PPP. If it's ppp, plugin_init() just returns and the user is
authenticated via pap_auth_hook() later. If it's not ppp the text is read as
the username and it prints "password: " and reads the password. It then
authenticates the user.

What I'm not sure about:
What option can I set in the plugin that'll make pppd request PAP
authentication (when the client didn't send a username after "login: ") and
make pppd not request authentication (when the user was validated using
the "login: " prompt).

The plugin I write can be included in the pppd distribution if anyone wants
to include it.

Thanks
-- 
------------------
Sarel Botha
[EMAIL PROTECTED]
------------------

99 little bugs in the code, 99 bugs in the code,
          fix one bug, compile it again...
          101 little bugs in the code....


-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]

Reply via email to