From: Chris B. <buc...@us...> - 2011-04-05 19:24:49
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "SFCB - Small Footprint CIM Broker". The branch, master has been updated via 214ed409befbe35aaaefe59cf5d2e3cdb3ed062c (commit) from 8b22cfe811da606dffd4adc8892696d40fa7a8c9 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 214ed409befbe35aaaefe59cf5d2e3cdb3ed062c Author: buccella <buc...@li...> Date: Tue Apr 5 15:24:33 2011 -0400 [ 3203290 ] Basic Auth Should Consider Expired Passwords (missing line from the previous commit) ----------------------------------------------------------------------- Summary of changes: diff --git a/ChangeLog b/ChangeLog index 00878ff..67da799 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-04-05 Chris Buccella <buc...@li...> + + * httpAdapter.c: + [ 3203290 ] Basic Auth Should Consider Expired Passwords + (one line of the change was missing from the previous commit) + 2011-04-05 Michael Chase-Salerno <br...@li...> * cimcClientSfcbLocal.c: diff --git a/httpAdapter.c b/httpAdapter.c index 55cff9b..baf5008 100644 --- a/httpAdapter.c +++ b/httpAdapter.c @@ -272,6 +272,7 @@ baValidate(char *cred, char **principal) } free(auth); + fprintf(stderr, "baValidate: returning %d\n", ret); return ret; } @@ -1025,9 +1026,8 @@ doHttpRequest(CommHndl conn_fd) } #endif if (!authorized && !discardInput && doBa) { - if (! - (inBuf.authorization - && baValidate(inBuf.authorization, &inBuf.principal))) { + if (inBuf.authorization && + (baValidate(inBuf.authorization,&inBuf.principal) != AUTH_PASS)) { char more[] = "WWW-Authenticate: Basic realm=\"cimom\"\r\n"; genError(conn_fd, &inBuf, 401, "Unauthorized", more); hooks/post-receive -- SFCB - Small Footprint CIM Broker |