From: John Hodge Date: Wed, 5 Jan 2011 06:19:48 +0000 (+0845) Subject: Added root noauth hack X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=5a012d83ed60f4a2605cf893cc840a515e4f6a1d;p=tpg%2Fopendispense2.git Added root noauth hack --- diff --git a/src/server/server.c b/src/server/server.c index bd451ee..eb68f32 100644 --- a/src/server/server.c +++ b/src/server/server.c @@ -18,6 +18,7 @@ // HACKS #define HACK_TPG_NOAUTH 1 +#define HACK_ROOT_NOAUTH 1 // Statistics #define MAX_CONNECTION_QUEUE 5 @@ -538,6 +539,10 @@ int GetUserAuth(const char *Salt, const char *Username, const uint8_t *ProvidedH if( strcmp(Username, "tpg") == 0 ) return GetUserID("tpg"); #endif + #if HACK_TPG_ROOT + if( strcmp(Username, "root") == 0 ) + return GetUserID("root"); + #endif #if 0 //