Advertisement
Guest User

Untitled

a guest
May 2nd, 2016
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.00 KB | None | 0 0
  1. # doveadm auth login semenov
  2. Password:
  3. passdb: semenov auth failed
  4. extra fields:
  5. user=semenov
  6.  
  7. # tail /var/log/dovecot.log
  8. ...
  9. May 02 16:41:40 auth: Debug: auth client connected (pid=11327)
  10. May 02 16:41:40 auth: Debug: client in: AUTH 1 PLAIN service=doveadm resp=xxxxxxxxxxxxxx (previous base64 data may contain sensitive data)
  11. May 02 16:41:40 auth-worker(11317): Debug: pam(semenov): lookup service=dovecot
  12. May 02 16:41:40 auth-worker(11317): Debug: pam(semenov): #1/1 style=1 msg=Password:
  13. May 02 16:41:40 auth-worker(11317): Info: pam(semenov): pam_authenticate() failed: Authentication service cannot retrieve authentication info
  14. May 02 16:41:42 auth: Debug: client passdb out: FAIL 1 user=semenov
  15.  
  16. # cat /etc/pam.d/dovecot
  17. auth requisite pam_sss.so
  18. account requisite pam_sss.so
  19. session requisite pam_permit.so
  20. password requisite pam_sss.so
  21.  
  22. # strace -tt -s 2048 pamtester dovecot semenov authenticate
  23. ...
  24. 16:28:49.898190 getuid() = 0
  25. 16:28:49.898216 getgid() = 0
  26. 16:28:49.898242 stat("/var/lib/sss/pipes/private/pam", {st_mode=S_IFSOCK|0600, st_size=0, ...}) = 0
  27. 16:28:49.898276 fstat(-1, 0x7ffd51cb7140) = -1 EBADF (Bad file descriptor)
  28. 16:28:49.898304 socket(PF_LOCAL, SOCK_STREAM, 0) = 3
  29. 16:28:49.898335 fcntl(3, F_GETFL) = 0x2 (flags O_RDWR)
  30. 16:28:49.898363 fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
  31. 16:28:49.898389 fcntl(3, F_GETFD) = 0
  32. 16:28:49.898421 fcntl(3, F_SETFD, FD_CLOEXEC) = 0
  33. 16:28:49.898449 connect(3, {sa_family=AF_LOCAL, sun_path="/var/lib/sss/pipes/private/pam"}, 110) = 0
  34. 16:28:49.898498 fstat(3, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0
  35. 16:28:49.898537 poll([{fd=3, events=POLLOUT}], 1, 300000) = 1 ([{fd=3, revents=POLLOUT}])
  36. 16:28:49.898570 sendto(3, "241", 16, MSG_NOSIGNAL, NULL, 0) = 16
  37. ....
  38. 16:28:51.375595 socket(PF_LOCAL, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 4
  39. 16:28:51.375624 connect(4, {sa_family=AF_LOCAL, sun_path="/dev/log"}, 110) = 0
  40. 16:28:51.375658 sendto(4, "<86>May 2 16:28:51 pamtester: pam_sss(dovecot:auth): authentication success; logname=semenov uid=0 euid=0 tty= ruser= rhost= user=semenov", 138, MSG_NOSIGNAL, NULL, 0) = 138
  41. ...
  42. pamtester: successfully authenticated
  43.  
  44. # doveadm auth login semenov
  45.  
  46. # strace -tt -s 2048 -p $(ps aufx|grep 'dovecot/auth -w'|grep -v grep|awk '{print $2}')
  47. ...
  48. 16:41:40.649304 getuid() = 0
  49. 16:41:40.649331 getgid() = 0
  50. 16:41:40.649358 stat("/var/lib/sss/pipes/private/pam", {st_mode=S_IFSOCK|0600, st_size=0, ...}) = 0
  51. 16:41:40.649391 fstat(-1, 0x7ffde94080e0) = -1 EBADF (Bad file descriptor)
  52. 16:41:40.649419 socket(PF_LOCAL, SOCK_STREAM, 0) = 7
  53. 16:41:40.649450 fcntl(7, F_GETFL) = 0x2 (flags O_RDWR)
  54. 16:41:40.649478 fcntl(7, F_SETFL, O_RDWR|O_NONBLOCK) = 0
  55. 16:41:40.649505 fcntl(7, F_GETFD) = 0
  56. 16:41:40.649532 fcntl(7, F_SETFD, FD_CLOEXEC) = 0
  57. 16:41:40.649559 connect(7, {sa_family=AF_LOCAL, sun_path="/var/lib/sss/pipes/private/pam"}, 110) = -1 EACCES (Permission denied)
  58. 16:41:40.649600 close(7) = 0
  59. 16:41:40.649639 socket(PF_LOCAL, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 7
  60. 16:41:40.649667 connect(7, {sa_family=AF_LOCAL, sun_path="/dev/log"}, 110) = -1 EACCES (Permission denied)
  61. 16:41:40.649706 close(7) = 0
  62. ....
  63. 16:41:40.650284 socket(PF_NETLINK, SOCK_RAW, NETLINK_AUDIT) = 7
  64. 16:41:40.650312 fcntl(7, F_SETFD, FD_CLOEXEC) = 0
  65. 16:41:40.650342 sendto(7, "200L452op=PAM:authentication acct="semenov" exe="/usr/lib/dovecot/auth" hostname=? addr=? terminal=dovecot res=failed", 128, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 128
  66. 16:41:40.650385 poll([{fd=7, events=POLLIN}], 1, 500) = 1 ([{fd=7, revents=POLLIN}])
  67. 16:41:40.650417 recvfrom(7, "$22005,200L452", 8988, MSG_PEEK|MSG_DONTWAIT, {sa_family=AF_NETLINK, pid=0, groups=00000000}, [12]) = 36
  68. 16:41:40.650449 recvfrom(7, "$22005,200L452", 8988, MSG_DONTWAIT, {sa_family=AF_NETLINK, pid=0, groups=00000000}, [12]) = 36
  69. 16:41:40.650486 close(7) = 0
  70. 16:41:40.650519 write(2, "10211317 pam(semenov): pam_authenticate() failed: Authentication service cannot retrieve authentication infon", 108) = 108
  71.  
  72. # cat /usr/share/lxc/config/common.conf.d/999-my.conf
  73. lxc.aa_profile = unconfined
  74. lxc.cgroup.devices.allow = a
  75. lxc.cap.drop =
  76.  
  77. May 2 16:41:40 pve kernel: [10218.310055] audit: type=1400 audit(1462185700.636:1342): apparmor="ALLOWED" operation="file_perm" profile="/usr/lib/dovecot/auth" name="/run/dovecot/auth-login" pid=18118 comm="auth" requested_mask="w" denied_mask="w" fsuid=0 ouid=115
  78. May 2 16:41:40 pve kernel: [10218.310067] audit: type=1400 audit(1462185700.636:1344): apparmor="ALLOWED" operation="file_perm" profile="/usr/lib/dovecot/auth" name="/run/dovecot/auth-login" pid=18118 comm="auth" requested_mask="r" denied_mask="r" fsuid=0 ouid=115
  79. May 2 16:41:40 pve kernel: [10218.320050] audit: type=1400 audit(1462185700.644:1346): apparmor="ALLOWED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-13 profile="/usr/lib/dovecot/auth" name="run/systemd/journal/dev-log" pid=18120 comm="auth" requested_mask="w" denied_mask="w" fsuid=0 ouid=0
  80.  
  81. May 2 16:41:40 sys kernel: [10218.319942] audit: type=1400 audit(1462185700.644:1345): apparmor="ALLOWED" operation="connect" info="Failed name lookup - disconnected path" error=-13 profile="/usr/lib/dovecot/auth" name="var/lib/sss/pipes/private/pam" pid=18120 comm="auth" requested_mask="wr" denied_mask="wr
  82. " fsuid=0 ouid=0
  83. May 2 16:41:40 sys kernel: [10218.320501] audit: type=1400 audit(1462185700.648:1347): apparmor="ALLOWED" operation="connect" info="Failed name lookup - disconnected path" error=-13 profile="/usr/lib/dovecot/auth" name="var/lib/sss/pipes/private/pam" pid=18120 comm="auth" requested_mask="wr" denied_mask="wr
  84. " fsuid=0 ouid=0
  85. May 2 16:41:40 sys kernel: [10218.320599] audit: type=1400 audit(1462185700.648:1348): apparmor="ALLOWED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-13 profile="/usr/lib/dovecot/auth" name="run/systemd/journal/dev-log" pid=18120 comm="auth" requested_mask="w" denied_mask="w" fs
  86. uid=0 ouid=0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement