Changeset: f6a9a0038493 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/f6a9a0038493
Modified Files:
monetdb5/mal/mal_authorize.c
Branch: userprofile
Log Message:
don't forget to decypher
diffs (29 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
@@ -870,11 +870,14 @@ AUTHgetPasswordHash(str *ret, Client cnt
// load password from users tbl
if (authCallbackCntx.get_user_password && cntxt)
- passwd = authCallbackCntx.get_user_password(cntxt, username);
+ tmp = authCallbackCntx.get_user_password(cntxt, username);
- if (strNil(passwd)) {
+ if (strNil(tmp)) {
throw(MAL, "getPasswordHash", "user '%s' does not exist",
username);
}
+ /* decypher the password */
+ if ((tmp = AUTHdecypherValue(&passwd, tmp)) != MAL_SUCCEED)
+ return tmp;
// TODO remove old implementation
// p = AUTHfindUser(username);
@@ -890,7 +893,7 @@ AUTHgetPasswordHash(str *ret, Client cnt
// return tmp;
*ret = passwd;
- return(NULL);
+ return(MAL_SUCCEED);
}
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]