Rather than one variable for each passwd type, use one enum variable