Description of problem: The PAM(8) man page says that each rule is "typically placed on a single line, but may be extended with an escaped end of line." Authconfig parses PAM configuration files, but it does not seem to recognize or honor any portion of a rule which follows the line continuation character. Version-Release number of selected component (if applicable): All How reproducible: Reproducible. Steps to Reproduce: 1. Add several options to a rule line such as pam_unix: password required pam_unix.so nullok \ use_authtok \ md5 shadow remember=7 2. Run authconfig and note that it doesn't see any options on "continued" portions of the line. Actual results: No options on "continued" portions of the line are recognized (MD5, shadow, etc.) Expected results: Authconfig should recognize and process all arguments, as per PAM(8). Additional info: I'm attaching a patch file which corrects the problem. The patch was created against the authconfig-4.6.8 src rpm, but the code was very straightforward and could(should?) apply to any version.
Created attachment 110443 [details] Patches authinfo.c to "assemble" a line before processing it. One function, _assemble_line, is added to authinfo.c. Then in authInfoReadPAM, _assemble_line is called to fill a buffer with the complete rule line. So, it pieces together the first portion of the line with all "continued" portions. password required pam_unix.so nullok \ md5 becomes password required pam_unix.so nullok md5
Thanks for the patch, however authconfig is being rewritten in Python. I'll fix this bug in the rewrite anyway.
Should be fixed now.