From 05f852529591a4feadaba49ea3a11503a2853322 Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Wed, 18 Jun 2014 20:46:50 +0100 Subject: [PATCH] add a default for the auth server in the PAM config --- pam/pam_authclient.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pam/pam_authclient.c b/pam/pam_authclient.c index 27eca19..5622f3e 100644 --- a/pam/pam_authclient.c +++ b/pam/pam_authclient.c @@ -62,6 +62,10 @@ static void parse_cfg(int argc, const char **argv, struct cfg *cfg) { int i; memset(cfg, 0, sizeof(struct cfg)); + + // Set some defaults. + cfg->auth_server = "127.0.0.1:1616"; + for (i = 0; i < argc; i++) { if (!strcmp(argv[i], "debug")) { cfg->debug = 1; -- GitLab