Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added masquerade logon controller #792

Closed
wants to merge 1 commit into from
Closed

Added masquerade logon controller #792

wants to merge 1 commit into from

Conversation

zvs44
Copy link
Contributor

@zvs44 zvs44 commented Feb 24, 2016

Added a means to masquerade (dynamic logon) as a user to the Captive Portal as discussed on the forum: https://forum.opnsense.org/index.php?topic=2028.msg6402

@AdSchellevis
Copy link
Member

@zvs44 I looked briefly at your code, I like the idea of authenticating an arbitrary client ip using the API, but rather not see a copy of the default access controller.
Is the authentication feature the only thing your looking for here? (maybe I'm missing something) If that is the case we could easily extend the SessionController with a connectAction (the disconnect is already there).

// If an explicit client IP wasn't provided
if(!$clientIp)
{
$clientIp = $this->getClientIp();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to allow a client then this line is wrong - you should return an error instead.

@fabianfrz fabianfrz mentioned this pull request Mar 13, 2016
@AdSchellevis
Copy link
Member

time-out, no feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants