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

Access Challenge Response throws PAPAuthenticator into a loop #25

Open
Sovietaced opened this issue Oct 4, 2017 · 0 comments
Open

Access Challenge Response throws PAPAuthenticator into a loop #25

Sovietaced opened this issue Oct 4, 2017 · 0 comments

Comments

@Sovietaced
Copy link

Sovietaced commented Oct 4, 2017

Hi all, while doing some work with the RSA RADIUS server I noticed that under some circumstances it would return an Access Challenge Response (new PIN mode, next token code mode). Currently the PAPAuthenticator (and I think anything besides the EAPAuthenticator) will end up looping indefinitely.

public RadiusResponse authenticate(AccessRequest p, RadiusAuthenticator auth, int retries)
    	throws RadiusException, UnknownAttributeException, NoSuchAlgorithmException
    {
        if (auth == null) auth = new PAPAuthenticator();

        auth.setupRequest(this, p);
        auth.processRequest(p);

        while (true)
        {
            RadiusResponse reply = transport.sendReceive(p, retries);

            if (reply instanceof AccessChallenge)
            {
                auth.processChallenge(p, reply);
            }
            else
            {
                return reply;
            }
        }
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant