00001 // security_key.h 00002 00019 #pragma once 00020 00021 namespace mongo { 00022 00026 struct AuthInfo { 00027 AuthInfo() { 00028 user = "__system"; 00029 } 00030 string user; 00031 string pwd; 00032 }; 00033 00034 // --noauth cmd line option 00035 extern bool noauth; 00036 extern AuthInfo internalSecurity; 00037 00045 bool setUpSecurityKey(const string& filename); 00046 00047 } // namespace mongo