<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; Dovecot авторизация в AD]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=24416&amp;type=atom" />
	<updated>2012-09-26T10:20:21Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=24416</id>
		<entry>
			<title type="html"><![CDATA[Re: Dovecot авторизация в AD]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=300107#p300107" />
			<content type="html"><![CDATA[<p>пожалуйста <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /> обращайтесь</p>]]></content>
			<author>
				<name><![CDATA[osorkon]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16356</uri>
			</author>
			<updated>2012-09-26T10:20:21Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=300107#p300107</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Dovecot авторизация в AD]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=300106#p300106" />
			<content type="html"><![CDATA[<p>Howto выдам<br />Osorkon Вам как всегда огромное человеческое спасибо )</p>]]></content>
			<author>
				<name><![CDATA[l_cho]]></name>
				<uri>https://linuxforum.ru/profile.php?id=23173</uri>
			</author>
			<updated>2012-09-26T10:02:37Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=300106#p300106</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Dovecot авторизация в AD]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=300104#p300104" />
			<content type="html"><![CDATA[<p>howto? давайте, пригодится</p>]]></content>
			<author>
				<name><![CDATA[osorkon]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16356</uri>
			</author>
			<updated>2012-09-26T09:51:56Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=300104#p300104</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Dovecot авторизация в AD]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=300103#p300103" />
			<content type="html"><![CDATA[<p>Связочка работает , МАН выложить тотальный?</p>]]></content>
			<author>
				<name><![CDATA[l_cho]]></name>
				<uri>https://linuxforum.ru/profile.php?id=23173</uri>
			</author>
			<updated>2012-09-26T09:24:08Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=300103#p300103</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Dovecot авторизация в AD]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=300091#p300091" />
			<content type="html"><![CDATA[<p>Ну да от куда Локалхосту знать где 192.168.2.1<br />Уже туплю вторую неделю связку налаживаю )</p>]]></content>
			<author>
				<name><![CDATA[l_cho]]></name>
				<uri>https://linuxforum.ru/profile.php?id=23173</uri>
			</author>
			<updated>2012-09-26T07:40:09Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=300091#p300091</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Dovecot авторизация в AD]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=300088#p300088" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>l_cho пишет:</cite><blockquote><p>mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128</p></blockquote></div><div class="quotebox"><cite>l_cho пишет:</cite><blockquote><p>RCPT from unknown[192.168.2.1]</p></blockquote></div><p>продолжать? <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /></p>]]></content>
			<author>
				<name><![CDATA[osorkon]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16356</uri>
			</author>
			<updated>2012-09-26T07:15:37Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=300088#p300088</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Dovecot авторизация в AD]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=300084#p300084" />
			<content type="html"><![CDATA[<p>Спасибо osorkon, Dovecot приручил , но вот теперь Postfix не хочет пересылать сообщения.<br />Логи<br /></p><div class="codebox"><pre><code>Sep 26 10:23:43 postman postfix/smtpd[3054]: connect from unknown[192.168.2.1]
Sep 26 10:23:43 postman postfix/smtpd[3054]: NOQUEUE: reject: RCPT from unknown[192.168.2.1]: 554 5.7.1 &lt;lfs@mail.ru&gt;: Relay access denied$</code></pre></div><p>main.cf<br /></p><div class="codebox"><pre><code># See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
mydomain = SAM.RU
#myorigin = /etc/mailname

smtpd_banner = $myhostname
biff = no

# appending .domain is the MUA&#039;s job.
append_dot_mydomain = no

# Uncomment the next line to generate &quot;delayed mail&quot; warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = sam.ru
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = SAM.RU, postman.sam.ru,localhost.eor.local, localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
#mailbox_command = procmail -a &quot;$EXTENSION&quot;
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all

mail_spool_directory = /var/mail/</code></pre></div>]]></content>
			<author>
				<name><![CDATA[l_cho]]></name>
				<uri>https://linuxforum.ru/profile.php?id=23173</uri>
			</author>
			<updated>2012-09-26T06:26:56Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=300084#p300084</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Dovecot авторизация в AD]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=299975#p299975" />
			<content type="html"><![CDATA[<p>обратите внимание.<br /></p><div class="quotebox"><cite>l_cho пишет:</cite><blockquote><p>res_errno: 49, res_error: &lt;80090308: LdapErr: DSID-0C090334, comment: AcceptSecurityContext error, data 525, vece&gt;, res_match$</p></blockquote></div><div class="quotebox"><cite>l_cho пишет:</cite><blockquote><p>LDAP: binding failed (dn CN=mail,CN=User,DC=betta,DC=EOR,DC=LOCAL): Invalid credentials, 80090308: LdapErr: DSID-0C09033$</p></blockquote></div><p>из всего этого думаю больший интерес представляет строка<br /></p><div class="quotebox"><cite>l_cho пишет:</cite><blockquote><p>LDAP: binding failed (dn CN=mail,CN=User,DC=betta,DC=EOR,DC=LOCAL): Invalid credentials, 80090308: LdapErr: DSID-0C09033$</p></blockquote></div><p>Есть мнение что это ответ вашего DC вашему dovecot. Проверьте путь к обьекту в AD, логин/пароль администратора (DOMAIN/user домен заглавными обязательно, остальное надо эксперементировать)</p>]]></content>
			<author>
				<name><![CDATA[osorkon]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16356</uri>
			</author>
			<updated>2012-09-25T10:12:59Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=299975#p299975</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Dovecot авторизация в AD]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=299943#p299943" />
			<content type="html"><![CDATA[<p>Увеличел ЛОГ:</p><div class="codebox"><pre><code>Sep 25 08:23:32 postman dovecot: dovecot: Killed with signal 15 (by pid=2155 uid=0 code=kill)
Sep 25 08:23:32 postman dovecot: auth(default): ldap_bind
Sep 25 08:23:32 postman dovecot: auth(default): ldap_simple_bind
Sep 25 08:23:32 postman dovecot: auth(default): ldap_sasl_bind
Sep 25 08:23:32 postman dovecot: auth(default): ldap_send_initial_request
Sep 25 08:23:32 postman dovecot: auth(default): ldap_new_connection 1 1 0
Sep 25 08:23:32 postman dovecot: auth(default): ldap_int_open_connection
Sep 25 08:23:32 postman dovecot: auth(default): ldap_connect_to_host: TCP 192.168.2.99:389
Sep 25 08:23:32 postman dovecot: auth(default): ldap_new_socket: 10
Sep 25 08:23:32 postman dovecot: auth(default): ldap_prepare_socket: 10
Sep 25 08:23:32 postman dovecot: auth(default): ldap_connect_to_host: Trying 192.168.2.99:389
Sep 25 08:23:32 postman dovecot: auth(default): ldap_pvt_connect: fd: 10 tm: -1 async: 0
Sep 25 08:23:32 postman dovecot: auth(default): ldap_open_defconn: successful
Sep 25 08:23:32 postman dovecot: auth(default): ldap_send_server_request
Sep 25 08:23:32 postman dovecot: auth(default): ldap_result ld 0x8a4fc58 msgid -1
Sep 25 08:23:32 postman dovecot: auth(default): wait4msg ld 0x8a4fc58 msgid -1 (timeout 0 usec)
Sep 25 08:23:32 postman dovecot: auth(default): wait4msg continue ld 0x8a4fc58 msgid -1 all 1
Sep 25 08:23:32 postman dovecot: auth(default): ** ld 0x8a4fc58 Connections:
Sep 25 08:23:32 postman dovecot: auth(default): * host: 192.168.2.99  port: 389  (default)
Sep 25 08:23:32 postman dovecot: auth(default):   refcnt: 2  status: Connected
Sep 25 08:23:32 postman dovecot: auth(default):   last used: Tue Sep 25 08:23:32 2012
Sep 25 08:23:32 postman dovecot: auth(default):
Sep 25 08:23:32 postman dovecot: auth(default):
Sep 25 08:23:32 postman dovecot: auth(default): ** ld 0x8a4fc58 Outstanding Requests:
Sep 25 08:23:32 postman dovecot: auth(default):  * msgid 1,  origid 1, status InProgress
Sep 25 08:23:32 postman dovecot: auth(default):    outstanding referrals 0, parent count 0
Sep 25 08:23:32 postman dovecot: auth(default):   ld 0x8a4fc58 request count 1 (abandoned 0)
Sep 25 08:23:32 postman dovecot: auth(default): ** ld 0x8a4fc58 Response Queue:
Sep 25 08:23:32 postman dovecot: auth(default):    Empty
Sep 25 08:23:32 postman dovecot: auth(default):   ld 0x8a4fc58 response count 0
Sep 25 08:23:32 postman dovecot: auth(default): ldap_chkResponseList ld 0x8a4fc58 msgid -1 all 1
Sep 25 08:23:32 postman dovecot: auth(default): ldap_chkResponseList returns ld 0x8a4fc58 NULL
Sep 25 08:23:32 postman dovecot: auth(default): ldap_int_select
Sep 25 08:23:32 postman dovecot: auth(default): read1msg: ld 0x8a4fc58 msgid -1 all 1
Sep 25 08:23:32 postman dovecot: auth(default): read1msg: ld 0x8a4fc58 msgid 1 message type bind
Sep 25 08:23:32 postman dovecot: auth(default): read1msg: ld 0x8a4fc58 0 new referrals
Sep 25 08:23:32 postman dovecot: auth(default): read1msg:  mark request completed, ld 0x8a4fc58 msgid 1
Sep 25 08:23:32 postman dovecot: auth(default): request done: ld 0x8a4fc58 msgid 1
Sep 25 08:23:32 postman dovecot: auth(default): res_errno: 49, res_error: &lt;80090308: LdapErr: DSID-0C090334, comment: AcceptSecurityContext error, data 525, vece&gt;, res_match$
Sep 25 08:23:32 postman dovecot: auth(default): ldap_free_request (origid 1, msgid 1)
Sep 25 08:23:32 postman dovecot: auth(default): ldap_parse_result
Sep 25 08:23:32 postman dovecot: auth(default): ldap_err2string
Sep 25 08:23:32 postman dovecot: auth(default): LDAP: binding failed (dn CN=mail,CN=User,DC=betta,DC=EOR,DC=LOCAL): Invalid credentials, 80090308: LdapErr: DSID-0C09033$
Sep 25 08:23:32 postman dovecot: auth(default): ldap_unbind
Sep 25 08:23:32 postman dovecot: auth(default): ldap_free_connection 1 1
Sep 25 08:23:32 postman dovecot: auth(default): ldap_send_unbind
Sep 25 08:23:32 postman dovecot: auth(default): ldap_free_connection: actually freed
Sep 25 08:23:32 postman dovecot: auth(default): ldap_msgfree</code></pre></div>]]></content>
			<author>
				<name><![CDATA[l_cho]]></name>
				<uri>https://linuxforum.ru/profile.php?id=23173</uri>
			</author>
			<updated>2012-09-25T04:30:35Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=299943#p299943</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Dovecot авторизация в AD]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=299893#p299893" />
			<content type="html"><![CDATA[<p>Добрый день, приручаю dovecot и AD , но не слишком хорошо все получается , так прошу совета.<br />Логи <br />Sep 24 16:44:40 auth(default): Info: new auth connection: pid=1625<br />Sep 24 16:44:40 auth(default): Info: new auth connection: pid=1626<br />Sep 24 16:44:40 auth(default): Info: new auth connection: pid=1627</p><div class="codebox"><pre><code>dovecot.conf

protocols = imap imaps
disable_plaintext_auth = no
#
info_log_path = /var/log/dovecot.log
log_timestamp = &quot;%b %d %H:%M:%S &quot;
login_log_format = %$: %s
auth_verbose = yes
auth_debug_passwords = yes
#
mail_location = maildir:/var/mail/%u
mail_access_groups  = mail
protocol imap {
              }
auth default {
   passdb ldap {
    args = /etc/dovecot/dovecot-ldap.conf
  }
  userdb ldap {
    args = /etc/dovecot/dovecot-ldap.conf
  }
  user = mail
}
mechanisms = plain login
plugin {
quota = maildir
}


dovecot-ldap.conf

hosts = 192.168.2.99
dn = cn=user,DC=OR,DC=LOCAL
dnpass = gs
debug_level = 1
auth_bind = yes
ldap_version = 3
base = dc=OR, dc=LOCAL
deref = never
scope = subtree
user_filter = (&amp;(objectClass=*)(userAccountControl=66048))
pass_filter = (&amp;(objectClass=*)(userAccountControl=66048))</code></pre></div>]]></content>
			<author>
				<name><![CDATA[l_cho]]></name>
				<uri>https://linuxforum.ru/profile.php?id=23173</uri>
			</author>
			<updated>2012-09-24T15:29:56Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=299893#p299893</id>
		</entry>
</feed>
