diff options
-rw-r--r-- | include/globals.hh | 3 | ||||
-rw-r--r-- | rasmgr/rasmgr_users.cc | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/include/globals.hh b/include/globals.hh index 47df1a8..07d5899 100644 --- a/include/globals.hh +++ b/include/globals.hh @@ -58,6 +58,9 @@ rasdaman GmbH. /// name of rasmgr configuration file #define RASMGR_CONF_FILE "rasmgr.conf" +/// name of rasmgr authentication file +#define RASMGR_AUTH_FILE "rasmgr.auth" + /// default r/o login name for client tools #define DEFAULT_USER "rasguest" /// default password for this user diff --git a/rasmgr/rasmgr_users.cc b/rasmgr/rasmgr_users.cc index fd1d2c7..1e923e2 100644 --- a/rasmgr/rasmgr_users.cc +++ b/rasmgr/rasmgr_users.cc @@ -41,6 +41,8 @@ using namespace std; #include "rasmgr_host.hh" #include <time.h> +#include "globals.hh" // RASMGR_AUTH_FILE + #include "debug.hh" extern bool hostCmp( const char *h1, const char *h2); @@ -363,7 +365,7 @@ bool UserManager::acceptChangeName(const char *oldName,const char *newName) Authorization::Authorization() { inConfigFile=false; - int pathLen = snprintf( authFileName, FILENAME_MAX, "%s/%s", CONFDIR, "rasmgr_auth.dat" ); + int pathLen = snprintf( authFileName, FILENAME_MAX, "%s/%s", CONFDIR, RASMGR_AUTH_FILE ); if (pathLen >= FILENAME_MAX) { authFileName[FILENAME_MAX-1] = '\0'; // force-terminate string before printing |