Advertisement
Guest User

Dovecot 2 AD

a guest
Nov 30th, 2011
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.50 KB | None | 0 0
  1. # dovecot.conf
  2. mail_location = maildir:/var/mail/%d/%n
  3. #auth_username_format = %Lu
  4. passdb ldap-DUSLYK {
  5. driver = ldap
  6. args = /etc/dovecot/dovecot-DUSLYK.conf
  7. }
  8. userdb ldap-DUSLYK {
  9. driver = ldap
  10. args = /etc/dovecot/dovecot-DUSLYK-users.conf
  11. }
  12. passdb ldap-DUSL-OFFICE {
  13. driver = ldap
  14. args = /etc/dovecot/dovecot-DUSL-OFFICE.conf
  15. }
  16. userdb ldap-DUSL-BASE {
  17. driver = ldap
  18. args = /etc/dovecot/dovecot-DUSL-OFFICE-users.conf
  19. }
  20.  
  21.  
  22. # dovecot-DUSLYK.conf
  23. hosts = 192.168.55.236:3268
  24. # Distinguished Name - the username used to login to the LDAP server
  25.  
  26. # Password for LDAP server
  27. dnpass = mypass
  28. # Биндинг пользователей можно не юзать, так как auth_bind = yes
  29. auth_bind = yes
  30. ldap_version = 3
  31. base = dc=duslyk, dc=ru
  32. #user_attrs = mail=home=/var/mail/%d/%n
  33. user_filter = (&(objectClass=person)(sAMAccountName=%n))
  34. pass_filter = (&(ObjectClass=person)(sAMAccountName=%n))
  35. #pass_attrs = mail=user
  36. user_attrs = mail=user, uid=mail, gid=mail
  37.  
  38. # dovecot-DUSL-OFFICE.conf
  39. hosts = 192.168.33.2:3268
  40.  
  41. # Password for LDAP server
  42. dnpass = ********
  43. auth_bind = yes
  44. ldap_version = 3
  45. base = dc=dusl-office, dc=local
  46. #user_attrs = mail=home=/var/mail/%d/%n
  47. user_filter = (&(objectClass=person)(sAMAccountName=%n))
  48. pass_filter = (&(ObjectClass=person)(sAMAccountName=%n))
  49. #pass_attrs = mail=user
  50. user_attrs = mail=user, uid=mail, gid=mail
  51.  
  52.  
  53. # OK LOGS
  54. Nov 30 10:09:17 auth: Debug: client in: AUTH 1 PLAIN service=imap lip=192.168.55.249 rip=192.168.11.108 lport=143 rport=3506 resp=AGF6bmFrYXktdG92AHFjMnNPVw==
  55. Nov 30 10:09:17 auth: Debug: cache([email protected],192.168.11.108): miss
  56. Nov 30 10:09:17 auth: Debug: ldap([email protected],192.168.11.108): bind search: base=dc=duslyk, dc=ru filter=(&(ObjectClass=person)(sAMAccountName=aznakay-tov))
  57. Nov 30 10:09:17 auth: Debug: ldap([email protected],192.168.11.108): no fields returned by the server
  58. Nov 30 10:09:17 auth: Debug: client out: OK 1 [email protected]
  59. Nov 30 10:09:17 auth: Debug: master in: REQUEST 1659764737 29486 1 2ccfffa536fba601ce1dcd3ddeeb334e
  60. Nov 30 10:09:17 auth: Debug: userdb-cache([email protected],192.168.11.108): miss
  61. Nov 30 10:09:17 auth: Debug: ldap([email protected],192.168.11.108): user search: base=dc=duslyk, dc=ru scope=subtree filter=(&(objectClass=person)(sAMAccountName=aznakay-tov)) fields=mail,uid,gid
  62. Nov 30 10:09:17 auth: Debug: auth([email protected],192.168.11.108): username changed [email protected] -> [email protected]
  63. Nov 30 10:09:17 auth: Debug: ldap([email protected],192.168.11.108): result: mail(user)[email protected]
  64. Nov 30 10:09:17 auth: Debug: master out: USER 1659764737 [email protected]
  65. Nov 30 10:09:17 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=192.168.11.108, lip=192.168.55.249, mpid=29488
  66.  
  67. # FAIL LOGS
  68. Nov 30 10:09:30 auth: Debug: client in: AUTH 1 PLAIN service=imap secured lip=127.0.0.1 rip=127.0.0.1 lport=143 rport=48122 resp=ADFjZGV2ZWxvcGVyAGRldjFjYw==
  69. Nov 30 10:09:30 auth: Debug: cache([email protected],127.0.0.1): miss
  70. Nov 30 10:09:30 auth: Debug: ldap([email protected],127.0.0.1): bind search: base=dc=duslyk, dc=ru filter=(&(ObjectClass=person)(sAMAccountName=1cdeveloper))
  71. Nov 30 10:09:30 auth: Debug: ldap([email protected],127.0.0.1): no fields returned by the server
  72. Nov 30 10:09:30 auth: Info: ldap([email protected],127.0.0.1): invalid credentials (given password: *****)
  73. Nov 30 10:09:30 auth: Debug: cache([email protected],127.0.0.1): miss
  74. Nov 30 10:09:30 auth: Debug: ldap([email protected],127.0.0.1): bind search: base=dc=dusl-office, dc=local filter=(&(ObjectClass=person)(sAMAccountName=1cdeveloper))
  75. Nov 30 10:09:30 auth: Debug: auth client connected (pid=29539)
  76. Nov 30 10:09:30 auth: Debug: ldap([email protected],127.0.0.1): no fields returned by the server
  77. Nov 30 10:09:31 auth: Debug: client out: OK 1 [email protected]
  78. Nov 30 10:09:31 auth: Debug: master in: REQUEST 1511915521 29538 1 62db180e341c3d7460eee77f11423abd
  79. Nov 30 10:09:31 auth: Debug: userdb-cache([email protected],127.0.0.1): miss
  80. Nov 30 10:09:31 auth: Debug: ldap([email protected],127.0.0.1): user search: base=dc=duslyk, dc=ru scope=subtree filter=(&(objectClass=person)(sAMAccountName=1cdeveloper)) fields=mail,uid,gid
  81. Nov 30 10:09:31 auth: Debug: ldap([email protected],127.0.0.1): no fields returned by the server
  82. Nov 30 10:09:31 auth: Debug: master out: USER 1511915521 [email protected]
  83. Nov 30 10:09:31 imap-login: Info: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=29540, secured
  84. Nov 30 10:09:31 imap: Debug: Loading modules from directory: /usr/lib/dovecot/
  85. Nov 30 10:09:31 imap: Debug: Module loaded: /usr/lib/dovecot//lib20_autocreate_plugin.so
  86. Nov 30 10:09:31 imap: Debug: Module loaded: /usr/lib/dovecot//lib90_antispam_plugin.so
  87. Nov 30 10:09:31 imap([email protected]): Debug: Effective uid=8, gid=12, home=
  88. Nov 30 10:09:31 imap([email protected]): Debug: maildir++: root=/var/mail/zakamye.ru/1cdeveloper, index=, control=, inbox=/var/mail/zakamye.ru/1cdeveloper, alt=
  89. Nov 30 10:09:31 imap([email protected]): Debug: Namespace : Using permissions from /var/mail/zakamye.ru/1cdeveloper: mode=0700 gid=-1
  90. Nov 30 10:09:31 imap([email protected]): Info: Disconnected: Logged out bytes=50/404
  91.  
  92.  
  93.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement