Skip to content

Commit

Permalink
Fix regex in sssd_offline_cred_expiration
Browse files Browse the repository at this point in the history
Update it to include a capturing group to use
a state to compare the captured subexpression

Signed-off-by: Edgar Aguilar <edgar.aguilar@oracle.com>
  • Loading branch information
Xeicker committed Feb 12, 2024
1 parent 8a7bcc0 commit 028b553
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</ind:textfilecontent54_test>
<ind:textfilecontent54_object id="obj_sssd_offline_cred_expiration" version="1">
<ind:filepath operation="pattern match">^\/etc\/sssd\/(sssd.conf|conf\.d\/.+\.conf)$</ind:filepath>
<ind:pattern operation="pattern match">^[\s]*\[pam](?:[^\n\[]*\n+)+?[\s]*offline_credentials_expiration[\s]*=[\s]*1\s*(?:#.*)?$</ind:pattern>
<ind:pattern operation="pattern match">^[\s]*\[pam](?:[^\n\[]*\n+)+?[\s]*offline_credentials_expiration[\s]*=[\s]*(\d+)\s*(?:#.*)?$</ind:pattern>
<ind:instance datatype="int">1</ind:instance>
</ind:textfilecontent54_object>

Expand Down

0 comments on commit 028b553

Please sign in to comment.