diff options
author | Peter Baumann <p.baumann@jacobs-university.de> | 2010-09-04 18:29:43 +0200 |
---|---|---|
committer | www-data <www-data@ubuntu.localdomain> | 2010-11-03 15:04:35 +0100 |
commit | 5e895e1244eb5ba880df010ccd07caeda815e5b9 (patch) | |
tree | 30defa3db101585987b5447d13e01b87e04f8d32 | |
parent | 255494852ba244e92ba4dc2a3821b3ffea0f8f93 (diff) | |
download | rasdaman-upstream-5e895e1244eb5ba880df010ccd07caeda815e5b9.tar.gz rasdaman-upstream-5e895e1244eb5ba880df010ccd07caeda815e5b9.tar.xz rasdaman-upstream-5e895e1244eb5ba880df010ccd07caeda815e5b9.zip |
rasmgr_auth -> rasmgr.auth
-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 |