Browse Source

use slapi_entry_attr_get_bool instead of slapi_entry_attr_get_int for the fallback and secure config attrs

Rich Megginson 19 years ago
parent
commit
088aa35356
1 changed files with 4 additions and 4 deletions
  1. 4 4
      ldap/servers/plugins/pam_passthru/pam_ptconfig.c

+ 4 - 4
ldap/servers/plugins/pam_passthru/pam_ptconfig.c

@@ -448,8 +448,8 @@ pam_passthru_apply_config (Slapi_PBlock *pb, Slapi_Entry* entryBefore, Slapi_Ent
 	char *new_service = NULL;
 	char *pam_ident_attr = NULL;
 	char *map_method = NULL;
-	int fallback;
-	int secure;
+	PRBool fallback;
+	PRBool secure;
 
 	*returncode = LDAP_SUCCESS;
 
@@ -458,8 +458,8 @@ pam_passthru_apply_config (Slapi_PBlock *pb, Slapi_Entry* entryBefore, Slapi_Ent
 	new_service = slapi_entry_attr_get_charptr(e, PAMPT_SERVICE_ATTR);
 	excludes = slapi_entry_attr_get_charray(e, PAMPT_EXCLUDES_ATTR);
 	includes = slapi_entry_attr_get_charray(e, PAMPT_INCLUDES_ATTR);
-	fallback = slapi_entry_attr_get_int(e, PAMPT_FALLBACK_ATTR);
-	secure = slapi_entry_attr_get_int(e, PAMPT_SECURE_ATTR);
+	fallback = slapi_entry_attr_get_bool(e, PAMPT_FALLBACK_ATTR);
+	secure = slapi_entry_attr_get_bool(e, PAMPT_SECURE_ATTR);
 
 	/* lock config here */
 	slapi_lock_mutex(theConfig.lock);