From: Alex Moskalenko <mav@elserv.msk.su>
To: community@altlinux.ru
Subject: [Comm] OpenLDAP - возможно баг?
Date: Thu, 7 Jul 2005 09:27:35 +0400
Message-ID: <200507070927.36585.mav@elserv.msk.su> (raw)
Здравствуйте!
Дано:
[mav@tmpsrv mav]$ cat /etc/altlinux-release
ALT Linux Master 2.4 (Citron)
[mav@tmpsrv mav]$ rpm -qa | grep openldap
openldap-doc-2.1.30-alt3
openldap-2.1.30-alt3
openldap-clients-2.1.30-alt3
openldap-servers-2.1.30-alt3
В LDAP лежат учетные записи пользователей. Настроен nss, samba, postfix.
Понадобилось прикрутить cyrus-imapd. Попытался сделать авторизацию через LDAP
(imapd -> saslauthd -> ldap). И наткнулся на интересную вещь - saslauthd не
может авторизоваться в LDAP. При этом в логах следующее
Jul 6 23:22:57 testmail saslauthd[13363]: user ldap_search_st() failed: Size
limit exceeded
Jul 6 23:22:57 testmail saslauthd[13363]: Retrying authentication
Jul 6 23:22:57 testmail saslauthd[13363]: user ldap_search_st() failed: Size
limit exceeded
Jul 6 23:22:57 testmail saslauthd[13363]: do_auth : auth failure:
[user=username] [service=imap] [realm=] [mech=ldap] [reason=Unknown]
То есть получаем ldap error 4.
При более подробных раскопках обнаружил следующее
[mav@tmpsrv mav]$ ldapsearch -x -LL -b ou=Accounts,dc=example,dc=ru
"(&(uid=username)(objectClass=inetOrgPerson))" dn
version: 1
dn: uid=username,ou=Users,ou=Accounts,dc=example,dc=ru
[mav@tmpsrv mav]$ ldapsearch -z 1 -x -LL -b ou=Accounts,dc=example,dc=ru
"(&(uid=username)(objectClass=inetOrgPerson))" dn
version: 1
dn: uid=username,ou=Users,ou=Accounts,dc=example,dc=ru
Size limit exceeded (4)
[mav@tmpsrv mav]$ ldapsearch -z 2 -x -LL -b ou=Accounts,dc=example,dc=ru
"(&(uid=moskalenko)(objectClass=inetOrgPerson))" dn
version: 1
dn: uid=moskalenko,ou=Users,ou=Accounts,dc=example,dc=ru
То есть имеем одну запись в каталоге, удовлетворяющую условию поиска, но при
поиске ее с -z 1 (насколько я понял, saslauthd делает именно так) получаем ту
же error 4. Соответственно вопросы:
1) Из-за чего такое может быть? Не баг ли это в openLDAP? Ведь запись одна, и
запросили одну - почему тогда size limit exeeded?
2) Как в свете всего вышеперечисленного получить рабочий saslauthd либо
аутентифицироваться в cyrus-imapd из LDAP минуя saslauthd?
3) Если это все-таки баг - не вылезет ли это где-нибудь еще, кроме saslauthd?
--
WBR, Alex Moskalenko
next reply other threads:[~2005-07-07 5:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-07 5:27 Alex Moskalenko [this message]
2005-07-07 6:29 ` Eugene Ostapets
2005-07-07 2:46 ` Alex Moskalenko
2005-07-07 6:55 ` Eugene Ostapets
2005-07-07 7:46 ` Alex Moskalenko
2005-07-07 6:37 ` Re[2]: " Anton Gorlov
2005-07-07 6:51 ` Eugene Ostapets
2005-07-07 6:50 ` Anton Gorlov
2005-07-07 7:52 ` Alex Moskalenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200507070927.36585.mav@elserv.msk.su \
--to=mav@elserv.msk.su \
--cc=community@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git