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

Certificate only authentication fails without a password #399

Closed
xschlef opened this issue Apr 9, 2018 · 1 comment
Closed

Certificate only authentication fails without a password #399

xschlef opened this issue Apr 9, 2018 · 1 comment

Comments

@xschlef
Copy link
Contributor

xschlef commented Apr 9, 2018

Hi,

I tried to set up certificate only authentication. The problem I ran into was that bcfg2 seems to check for the authentication header in the request. This header is not present when no password is set in bcfg2.conf. I could fix this by setting a bogus password for the client.

class XMLRPCRequestHandler(SimpleXMLRPCServer.SimpleXMLRPCRequestHandler):
    ...
    def authenticate(self):
        try:
            header = self.headers['Authorization']
        except KeyError:
            self.logger.error("No authentication data presented")
            return False
    ...

Thanks

@xschlef
Copy link
Contributor Author

xschlef commented Apr 18, 2018

Duplicate of #312

@xschlef xschlef closed this as completed Apr 18, 2018
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