Skip to content
Commit 56e35711 authored by manojkiraneda's avatar manojkiraneda Committed by Andrew Geissler
Browse files

Adding pam_ldap.so by masking pam load errors



Absence of ldap distro feature will not generate pam_ldap.so because
of which we might see some unwanted error messages regarding the
failure in opening the pam_ldap.so in journalctl incase if pam_ldap
is present in PAM Configuration.

This commit would:

- Leverage '-' option before the 'type' in pam configuration, by which
  the PAM library will not log any errors in the syslog if it is not
  able to load the module beacause it is missing in the system.By using
  this we don't need two pam configuration files for ldap and unix.
- Leverages ignore_unknown_user &  ignore_authinfo_unavail options of
  pam_ldap.so, which forces the PAM framework to ignore pam_ldap incase
  if the user is not present in LDAP server or if the client cannot
  connect to LDAP Server.

(From meta-phosphor rev: 2c7efc937785a76e35a06b6807e12765ad40d99d)

Change-Id: Ic1044989ccae4e6e442de9865cf00cea33f75262
Signed-off-by: default avatarmanojkiraneda <manojkiran.eda@gmail.com>
Signed-off-by: default avatarAndrew Geissler <geissonator@yahoo.com>
parent fd87f1b7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment