Changeset: 7227d2627b02 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=7227d2627b02
Modified Files:
monetdb5/mal/mal_authorize.c
Branch: remote_auth
Log Message:
Make sure that we are only storing hashed passwords
diffs (21 lines):
diff --git a/monetdb5/mal/mal_authorize.c b/monetdb5/mal/mal_authorize.c
--- a/monetdb5/mal/mal_authorize.c
+++ b/monetdb5/mal/mal_authorize.c
@@ -997,7 +997,7 @@ AUTHaddRemoteTableCredentials(const char
FILE *fp = fopen("/tmp/remote_table_auth.txt", "w");
char *password = NULL;
bool free_pw = false;
- // str tmp;
+ str tmp;
BUN p;
(void)remoteuser;
@@ -1022,7 +1022,7 @@ AUTHaddRemoteTableCredentials(const char
password = mcrypt_BackendSum(pass, strlen(pass));
}
}
- // rethrow("addUser", tmp, AUTHverifyPassword(password));
+ rethrow("addUser", tmp, AUTHverifyPassword(password));
fprintf(fp, "%s,%s,%s,%s\n",uri, localuser, remoteuser, password);
fclose(fp);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list