103552
Correct log levels in check_password module.
103552
103552
Author: Matus Honek <mhonek@redhat.com>
103552
Resolves: #1356158
103552
103552
diff --git a/check_password.c b/check_password.c
103552
--- a/check_password.c
103552
+++ b/check_password.c
103552
@@ -108,7 +108,7 @@ char* chomp(char *s)
103552
 static int set_quality (char *value)
103552
 {
103552
 #if defined(DEBUG)
103552
-	syslog(LOG_NOTICE, "check_password: Setting quality to [%s]", value);
103552
+	syslog(LOG_INFO, "check_password: Setting quality to [%s]", value);
103552
 #endif
103552
 
103552
 	/* No need to require more quality than we can check for. */
103552
@@ -120,7 +120,7 @@ static int set_quality (char *value)
103552
 static int set_cracklib (char *value)
103552
 {
103552
 #if defined(DEBUG)
103552
-	syslog(LOG_NOTICE, "check_password: Setting cracklib usage to [%s]", value);
103552
+	syslog(LOG_INFO, "check_password: Setting cracklib usage to [%s]", value);
103552
 #endif
103552
 
103552
 
103552
@@ -131,7 +131,7 @@ static int set_cracklib (char *value)
103552
 static int set_digit (char *value)
103552
 {
103552
 #if defined(DEBUG)
103552
-	syslog(LOG_NOTICE, "check_password: Setting parameter to [%s]", value);
103552
+	syslog(LOG_INFO, "check_password: Setting parameter to [%s]", value);
103552
 #endif
103552
 	if (!isdigit(*value) || (int) (value[0] - '0') > 9) return 0;
103552
 	return (int) (value[0] - '0');
103552
@@ -152,14 +152,14 @@ static validator valid_word (char *word)
103552
 	int index = 0;
103552
 
103552
 #if defined(DEBUG)
103552
-	syslog(LOG_NOTICE, "check_password: Validating parameter [%s]", word);
103552
+	syslog(LOG_DEBUG, "check_password: Validating parameter [%s]", word);
103552
 #endif
103552
 
103552
 	while (list[index].parameter != NULL) {
103552
 		if (strlen(word) == strlen(list[index].parameter) &&
103552
 		    strcmp(list[index].parameter, word) == 0) {
103552
 #if defined(DEBUG)
103552
-			syslog(LOG_NOTICE, "check_password: Parameter accepted.");
103552
+			syslog(LOG_DEBUG, "check_password: Parameter accepted.");
103552
 #endif
103552
 			return list[index].dealer;
103552
 		}
103552
@@ -167,7 +167,7 @@ static validator valid_word (char *word)
103552
 	}
103552
 
103552
 #if defined(DEBUG)
103552
-	syslog(LOG_NOTICE, "check_password: Parameter rejected.");
103552
+	syslog(LOG_DEBUG, "check_password: Parameter rejected.");
103552
 #endif
103552
 
103552
 	return NULL;
103552
@@ -203,7 +203,7 @@ static int read_config_file ()
103552
 
103552
 #if defined(DEBUG)
103552
 		/* Debug traces to syslog. */
103552
-		syslog(LOG_NOTICE, "check_password: Got line |%s|", line);
103552
+		syslog(LOG_DEBUG, "check_password: Got line |%s|", line);
103552
 #endif
103552
 
103552
 		while (isspace(*start) && isascii(*start)) start++;
103552
@@ -212,7 +212,7 @@ static int read_config_file ()
103552
 		if ( ispunct(*start)) {
103552
 #if defined(DEBUG)
103552
 			/* Debug traces to syslog. */
103552
-			syslog(LOG_NOTICE, "check_password: Skipped line |%s|", line);
103552
+			syslog(LOG_DEBUG, "check_password: Skipped line |%s|", line);
103552
 #endif
103552
 			continue;
103552
 		}
103552
@@ -227,7 +227,7 @@ static int read_config_file ()
103552
 					if ((strncmp(keyWord,word,strlen(keyWord)) == 0) && (dealer = valid_word(word)) ) {
103552
 
103552
 #if defined(DEBUG)
103552
-						syslog(LOG_NOTICE, "check_password: Word = %s, value = %s", word, value);
103552
+						syslog(LOG_DEBUG, "check_password: Word = %s, value = %s", word, value);
103552
 #endif
103552
 
103552
 						centry[i].value = chomp(value);
103552
@@ -319,7 +319,7 @@ check_password (char *pPasswd, char **ppErrStr, Entry *pEntry)
103552
 			if ( !nLower && (minLower < 1)) {
103552
 				nLower = 1; nQuality++;
103552
 #if defined(DEBUG)
103552
-				syslog(LOG_NOTICE, "check_password: Found lower character - quality raise %d", nQuality);
103552
+				syslog(LOG_DEBUG, "check_password: Found lower character - quality raise %d", nQuality);
103552
 #endif
103552
 			}
103552
 			continue;
103552
@@ -330,7 +330,7 @@ check_password (char *pPasswd, char **ppErrStr, Entry *pEntry)
103552
 			if ( !nUpper && (minUpper < 1)) {
103552
 				nUpper = 1; nQuality++;
103552
 #if defined(DEBUG)
103552
-				syslog(LOG_NOTICE, "check_password: Found upper character - quality raise %d", nQuality);
103552
+				syslog(LOG_DEBUG, "check_password: Found upper character - quality raise %d", nQuality);
103552
 #endif
103552
 			}
103552
 			continue;
103552
@@ -341,7 +341,7 @@ check_password (char *pPasswd, char **ppErrStr, Entry *pEntry)
103552
 			if ( !nDigit && (minDigit < 1)) {
103552
 				nDigit = 1; nQuality++;
103552
 #if defined(DEBUG)
103552
-				syslog(LOG_NOTICE, "check_password: Found digit character - quality raise %d", nQuality);
103552
+				syslog(LOG_DEBUG, "check_password: Found digit character - quality raise %d", nQuality);
103552
 #endif
103552
 			}
103552
 			continue;
103552
@@ -352,7 +352,7 @@ check_password (char *pPasswd, char **ppErrStr, Entry *pEntry)
103552
 			if ( !nPunct && (minPunct < 1)) {
103552
 				nPunct = 1; nQuality++;
103552
 #if defined(DEBUG)
103552
-				syslog(LOG_NOTICE, "check_password: Found punctuation character - quality raise %d", nQuality);
103552
+				syslog(LOG_DEBUG, "check_password: Found punctuation character - quality raise %d", nQuality);
103552
 #endif
103552
 			}
103552
 			continue;