Added root noauth hack
authorJohn Hodge <[email protected]>
Wed, 5 Jan 2011 06:19:48 +0000 (15:04 +0845)
committerJohn Hodge <[email protected]>
Wed, 5 Jan 2011 06:19:48 +0000 (15:04 +0845)
src/server/server.c

index bd451ee..eb68f32 100644 (file)
@@ -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
        //

UCC git Repository :: git.ucc.asn.au