Skip to content

Commit

Permalink
Fixes #14. Renames the config file and changes the default LoginName.
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonAlt committed Jun 29, 2018
1 parent ebae668 commit 6a9e67d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
@@ -1,4 +1,6 @@
Version 2.5 (PRE): Wed Jun 27 11:48:59 CDT 2018
- issue 14: the DSI config file was renamed to gridftp_hpss_dsi.conf
the default LoginName in gridftp_hpss_dsi.conf is now 'hpssftp'
- issue 15: Error on STOR: "Premature end of data transfer"
- issue 16: Error on STOR: "Handle not in proper state EOF."

Expand Down
2 changes: 1 addition & 1 deletion ConfigFile → gridftp_hpss_dsi.conf
Expand Up @@ -4,7 +4,7 @@

# (required) Name of the HPSS user in the keytab file that the GridFTP
# server will use to authenticate to HPSS
LoginName gridftp
LoginName hpssftp

# (required) AuthenticationMech
# Defines the type of authentication that the DSI will perform when logging
Expand Down
6 changes: 3 additions & 3 deletions source/module/config.c
Expand Up @@ -63,8 +63,8 @@
/*
* The config file search order is:
* 1) env HPSS_DSI_CONFIG_FILE=<path>
* 2) $HPSS_PATH_ETC/gridftp.conf
* 3) DEFAULT_CONFIG_FILE (/var/hpss/etc/gridftp.conf)
* 2) $HPSS_PATH_ETC/gridftp_hpss_dsi.conf
* 3) DEFAULT_CONFIG_FILE (/var/hpss/etc/gridftp_hpss_dsi.conf)
*/
globus_result_t
config_find_config_file(char ** ConfigFilePath)
Expand Down Expand Up @@ -101,7 +101,7 @@ config_find_config_file(char ** ConfigFilePath)
if (hpss_path_etc != NULL)
{
/* Construct the full path. */
*ConfigFilePath = globus_common_create_string("%s/gridftp.conf", hpss_path_etc);
*ConfigFilePath = globus_common_create_string("%s/gridftp_hpss_dsi.conf", hpss_path_etc);
if (!*ConfigFilePath)
{
result = GlobusGFSErrorMemory("config file path");
Expand Down
2 changes: 1 addition & 1 deletion source/module/config.h
Expand Up @@ -46,7 +46,7 @@
*/
#include <globus_gridftp_server.h>

#define DEFAULT_CONFIG_FILE "/var/hpss/etc/gridftp.conf"
#define DEFAULT_CONFIG_FILE "/var/hpss/etc/gridftp_hpss_dsi.conf"

typedef struct config {
char * LoginName;
Expand Down

0 comments on commit 6a9e67d

Please sign in to comment.