分享

OpenLDAP的日志文件

 dtl乐学馆 2014-09-26
为OpenLDAP建立日志文件
OpenLDAP默认没有指定日志文件,所以需要我们手动建立,以下为建立方法,供参考:
[root@chasfer/etc]# man slapd.conf		//查看slapd.conf帮助,了解loglevel参数
...
       loglevel <integer>
              Specify the level at which debugging statements and
              operation statistics should be syslogged (currently
              logged to the syslogd(8) LOG_LOCAL4 facility).  Log
              levels are additive, and available levels are:
                      1      trace function calls
                      2      debug packet handling
                      4      heavy trace debugging
                      8      connection management
                      16     print out packets sent and received
                      32     search filter processing
                      64     configuration file processing
                      128    access control list processing
                      256    stats                            log
                             connections/operations/results
                      512    stats log entries sent
                      1024   print   communication   with   shell
                             backends
                      2048   entry parsing

...


[root@chasfer /etc]# cat /etc/openldap/slapd.conf	//加入loglevel,并赋值
...
loglevel	4095
...

[root@chasfer /etc]# cat /etc/syslog.conf		//syslog中加入ldap日志文件
...
# save OpenLDAP log
local4.*						/var/log/ldap.log

[root@chasfer /etc]# service syslog restart		//重启syslog服务
此时,日志文件/var/log/ldap.log即会保存Openldap的日志信息.
			参考:http:///Webmail/msg00461.html

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多