Skip to content

ZMQ_GSSAPI_PRINCIPAL sockopt has no effect on client side #2531

Closed
@garlick

Description

@garlick

I am trying to get GSSAPI security working with my application, and indeed seem have it going with libzmq 4.1.4 and czmq 3.0.2. (My compliments to the author for getting this integrated with the libzmq security framework!) However, this one quirk puzzles me:

Setting ZMQ_GSSAPI_PRINCIPAL (e.g. with czmq 3.0.2 zsock_set_gssapi_principal() seems not to matter on the client end. I can set it to a random string, or not set it all, and authentication still works using the default principal, presumably figured out by the underlying libkrb5. It does not seem possible to influence the choice of principal, even when several are available in the credential cache.

This would seem contrary to how @cbusbey's gist indicates it should work.

If anyone else is working with GSSAPI perhaps they can confirm these results, or explain why this is OK. Meanwhile I will try to put together a simple reproducer.

TL;DR downstream issue is flux-framework/flux-core#758

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions