配置SSSD的日志文件

1、修改配置文件sssd.conf
vim /etc/sssd/sssd.conf

[domain/LDAP]
cache_credentials = true
debug_level = 9

[sssd]
debug_level = 9

[nss]
debug_level = 9

[pam]
debug_level = 9

[ssh]
debug_level = 9
日志级别说明图

2、重启SSSD服务
Redhat: service sssd restart
SUSE: rcsssd restart

3、在/var/log/sssd/查看日志
如何查看sssd的日志在哪个文件中,可以通过如下方法:

# rpm -ql sssd | grep log
/var/log/sssd
# ll /var/log/sssd/
总用量 0
-rw------- 1 root root 0 3月  25 15:51 ldap_child.log
-rw------- 1 root root 0 3月  25 15:51 sssd_LDAP.log
-rw------- 1 root root 0 3月  25 15:51 sssd.log
-rw------- 1 root root 0 3月  25 15:51 sssd_nss.log
-rw------- 1 root root 0 3月  25 15:51 sssd_pam.log

附官方说明:
Checking SSSD Log Files
SSSD uses a number of log files to report information about its operation, located in the /var/log/sssd/directory. SSSD produces a log file for each domain, as well as an sssd_pam.log and an sssd_nss.log file.
Additionally, the /var/log/secure file logs authentication failures and the reason for the failure.

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,452评论 0 10
  • 承诺,对于小孩子真的影响很大,浩浩真的就是6.30等我们吃完饭要跟他一起玩,一边不想让他们不开心,一边又想做...
    女王大人1997阅读 286评论 0 0
  • 又是六月七号了,现在是八点二十,离开考还有四十分钟,我现在在外语楼语音室,准备上英语…… 其实今天没准备写东西,最...
    海棠树子阅读 562评论 11 6
  • 文/子子穆 周末的清晨 你闲荡在城市的街头 走过他常走的路 听遍他爱听的歌 你看每一个背影都像他 你看每一双眼睛都...
    子子穆阅读 277评论 0 3