dun / munge

MUNGE (MUNGE Uid 'N' Gid Emporium) is an authentication service for creating and validating user credentials.
GNU Lesser General Public License v3.0
244 stars 46 forks source link

configuration file #58

Open dun opened 7 years ago

dun commented 7 years ago

A configuration file is becoming increasingly necessary:

borkd commented 6 years ago

Is override with long options the best way to get spack-built munge et al to work? https://github.com/chaos/diod/issues/38

dun commented 6 years ago

The MUNGE client (libmunge) and server (munged) communicate over a Unix domain socket. The default path of this socket is configured at compile-time [$(localstatedir)/run/munge/munge.socket.2].

munged creates this socket each time the daemon is started; its default path can be overridden with the --socket option. libmunge can override it via munge_ctx_set(). But the path specified via munged --socket has no effect on the path used by libmunge.

I'm not familiar with spackification, and I'm not sure how you have things configured. Maybe you're running the system-installed munged which is listening on /var/run/munge/munge.socket.2, and diod is linked against a spack-built libmunge that has been configured with a different path. If you're just needing to override the default path for this socket in your spack-built libmunge, there's (currently) no configure option to do that (but it would be straightforward to add); instead, you'd have to modify MUNGE_SOCKET_NAME in src/libcommon/munge_defs.h.

Update: Commit 565db6939848381ad2e40ac2949baa08e8d3dbd4 adds the --with-munge-socket=PATH configure option.