Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SLES 15] pam_warn(omi:session) message flood #712

Open
mzima opened this issue Dec 29, 2021 · 6 comments
Open

[SLES 15] pam_warn(omi:session) message flood #712

mzima opened this issue Dec 29, 2021 · 6 comments

Comments

@mzima
Copy link

mzima commented Dec 29, 2021

We are using the omi-1.6.8-1 RPM package on SLES 15.3 and our journald message facility gets flooded with this kind of pam_warn / pam_sm_close_session messages:

2021-12-29T11:16:23.008028+01:00 l9800022 omiserver: pam_warn(omi:session): function=[pam_sm_close_session] flags=0x8000 service=[omi] terminal=[] user=[dummyuser] ruser=[<unknown>] rhost=[<unknown>]

The reason for this message is that session handling currently is not defined in /etc/pam.d/omi:

#%PAM-1.0
# The configuration of omi is generated by the omi installer.
auth        requisite   pam_nologin.so
auth        include     common-auth
account     requisite   pam_nologin.so
account     include     common-account

The session message from omiserver is therefore handeld by /etc/pam.d/other which makes use of pam_warn.so (SLES default):

#%PAM-1.0
auth     required       pam_warn.so
auth     required       pam_deny.so
account  required       pam_warn.so
account  required       pam_deny.so
password required       pam_warn.so
password required       pam_deny.so
session  required       pam_warn.so
session  required       pam_deny.so

The pam_sm_close_session use itself was introduced by this commit a couple of years ago:

Can please someone have a look at this issue? Our current workaround is to modify the /etc/pam.d/other file, but our expectation would be that the omi PAM file should take care of session handling.

Cheers,
Martin

@JumpingYang001
Copy link
Contributor

@mzima we will check it, and if any update will let you know, thanks.

@eeagle
Copy link

eeagle commented Aug 29, 2022

The same problem exists under SLES12SP5.

@mzima How did you change the /etc/pam.d/other file?

@mzima
Copy link
Author

mzima commented Aug 29, 2022

@eeagle I changed it manually.

@eeagle
Copy link

eeagle commented Aug 29, 2022

etc/pam.d/other

@mzima I mean how looks your /etc/pam.d/other-Fix in the File ;-)

@mzima
Copy link
Author

mzima commented Aug 29, 2022

@eeagle

You have to remove or comment the "session required pam_warn.so" line:

#%PAM-1.0
auth     required       pam_warn.so
auth     required       pam_deny.so
account  required       pam_warn.so
account  required       pam_deny.so
password required       pam_warn.so
password required       pam_deny.so
#session  required       pam_warn.so
session  required       pam_deny.so

That's all :)

@eeagle
Copy link

eeagle commented Aug 31, 2022

@eeagle

You have to remove or comment the "session required pam_warn.so" line:

#%PAM-1.0
auth     required       pam_warn.so
auth     required       pam_deny.so
account  required       pam_warn.so
account  required       pam_deny.so
password required       pam_warn.so
password required       pam_deny.so
#session  required       pam_warn.so
session  required       pam_deny.so

That's all :)

Thank you :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants