From: "Vladimir V. Kamarzin" <vvk@vvk.pp.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] cyrus-sasl2 pam mysql не аутентифицирует
Date: Tue, 05 Feb 2008 12:15:29 +0500
Message-ID: <m34pcnyium.fsf@vvk.distance.ru> (raw)
In-Reply-To: <200802040944.17661.myjamm@gmail.com> (JaMm's message of "Mon, 4 Feb 2008 09:44:17 +1000")
[-- Attachment #1: Type: text/plain, Size: 554 bytes --]
>>>>> On 04 Feb 2008 at 04:44 "J" == JaMm writes:
mysql>> select * from accountuser;
J> +-----------+---------------+--------+-------------+
J> | username | password | prefix | domain_name |
J> +-----------+---------------+--------+-------------+
J> | cyrus | M.QD4KWNL1YNo | | |
J> | test@test | 123 | | |
J> | test | 123 | | |
J> | tst | | | |
J> +-----------+---------------+--------+-------------+
[-- Attachment #2: Type: text/plain, Size: 1442 bytes --]
Посмотрел свою древнюю инсталляцию web-cyradm, таблица accountuser там выглядит вот так:
mysql> select * from accountuser;
+-----------+---------------+--------+-------------+
| username | password | prefix | domain_name |
+-----------+---------------+--------+-------------+
| cyrus | vjD5UKrOWumxs | | |
| xxxx0002 | 95LtBJGNVP9wc | xxxx | x.ru |
| xxxx0001 | cfS0NnZc/dezU | xxxx | x.ru |
| xxxx0005 | 82mRPY2JJo6r6 | xxxx | x.ru |
| xxxx0004 | 0aZQ4HovNwio2 | xxxx | x.ru |
+-----------+---------------+--------+-------------+
5 rows in set (0.06 sec
Юзеры заводились средствами web-cyradm.
На всякий случай:
# cat /etc/pam.d/imap
#%PAM-1.0
#auth include system-auth
#account include system-auth
auth sufficient pam_mysql.so user=mail passwd=xxxxxx host=localhost db=mail table=accountuser usercolumn=username passwdcolumn=password crypt=1 logtable=log logmsgcolumn=msg logusercolumn=user loghostcolumn=host logpidcolumn=pid logtimecolumn=time
#auth sufficient pam_unix_auth.so
account required pam_mysql.so user=mail passwd=xxxxx host=localhost db=mail table=accountuser usercolumn=username passwdcolumn=password crypt=1 logtable=log logmsgcolumn=msg logusercolumn=user loghostcolumn=host logpidcolumn=pid logtimecolumn=time
#account sufficient pam_unix_acct.so
--
vvk
Russian Postfix irc: irc.freenode.net #postfix-ru
next prev parent reply other threads:[~2008-02-05 7:15 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-03 23:44 JaMm
2008-02-04 23:00 ` JaMm
2008-02-05 5:48 ` Anton Kvashin
2008-02-05 22:38 ` JaMm
2008-02-06 6:59 ` Anton Kvashin
2008-02-07 5:01 ` Anton Kvashin
2008-02-05 7:15 ` Vladimir V. Kamarzin [this message]
2008-02-05 22:48 ` JaMm
2008-02-06 6:00 ` Vladimir V. Kamarzin
2008-02-07 6:41 ` Vladimir V. Kamarzin
2008-02-08 10:16 ` Vladimir V. Kamarzin
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=m34pcnyium.fsf@vvk.distance.ru \
--to=vvk@vvk.pp.ru \
--cc=sysadmins@lists.altlinux.org \
/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 sysadmins discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
public-inbox-index sysadmins
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sysadmins
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git