X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=daemon%2Fauth.c;h=d8c7a354345424b409e93869a281a153c3066a59;hb=bec4d3b61d05dfc014fd9142d8ea2ec1d0bd5a1d;hp=83fc5aa02e21e54ee20081ed84bb1a2b4d104a70;hpb=3616b334bc6426e973e08b612a5e8fd30ad80a5f;p=doldaconnect.git diff --git a/daemon/auth.c b/daemon/auth.c index 83fc5aa..d8c7a35 100644 --- a/daemon/auth.c +++ b/daemon/auth.c @@ -1,6 +1,6 @@ /* * Dolda Connect - Modular multiuser Direct Connect-style client - * Copyright (C) 2004 Fredrik Tolf (fredrik@dolda2000.com) + * Copyright (C) 2004 Fredrik Tolf * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -80,10 +80,10 @@ void authputhandle(struct authhandle *auth) { if(--auth->refcount) return; - if(auth->text != NULL) - free(auth->text); if(auth->mechdata != NULL) auth->mech->release(auth); + if(auth->text != NULL) + free(auth->text); free(auth); } @@ -155,12 +155,9 @@ void regmech(struct authmech *mech) static void preinit(int hup) { - extern struct authmech authmech_pam; - if(hup) return; regmech(&authless); - regmech(&authmech_pam); } static int init(int hup) @@ -171,12 +168,10 @@ static int init(int hup) static struct configvar myvars[] = { - /** The name of the PAM service file to use. */ - {CONF_VAR_STRING, "pamserv", {.str = L"doldacond"}}, /** Specifies whether insecure authentication is to be allowed. If * you are not completely sure what you are doing, never turn this * on without also turning on net.onlylocal. */ - {CONF_VAR_BOOL, "authless", {.num = 1}}, + {CONF_VAR_BOOL, "authless", {.num = 0}}, {CONF_VAR_END} };