Menu

#13 how do we log user and groups?

v1.0_(example)
open
chtsanti
1
2019-03-07
2019-03-07
davidxin
No

Hi all,

i am going to log user and group with c-icap. In log file, username and groups are based-64 encode as value, it is sent by a icap client. how do we make it visible and readable in log?

in logformat, there is “%un” for Username in Format codes. Do we have format code for Groups?

user:aaa
groups:Domain Users

in c-icap.conf:

LogFormat myFormat "%tl, %a %im %iu %is %un %{Host}>ho> %{A-Header-Name}>ho Username:%{X-Authenticated-User}>ih Groups:%{X-Authenticated-Groups}>ih"

in access.log:
07/Mar/2019:16:18:00 +0800, 5.0.0.254 REQMOD echo 200 Local://aaa www.icaptest.net> - Username:TG9jYWw6Ly9hYWE= Groups:TG9jYWw6Ly9kb21haW4gdXNlcnM=

Thanks in advance.

David

Discussion

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB