From: Alexei Takaseev <alexei@taf.ru>
To: community@altlinux.ru
Subject: Re: [Comm] cyrus + mysql ( шифрование паролей )
Date: Mon, 3 Jan 2005 16:03:02 +0800
Message-ID: <20050103160302.7fecc090.alexei@taf.ru> (raw)
In-Reply-To: <200501031035.20730.checked@mail.ru>
On Mon, 3 Jan 2005 10:35:20 +0300
Лааз Вадим <checked@mail.ru> wrote:
> # cat /usr/lib/sasl2/Cyrus.conf
> auxprop_plugin: sql
>
> sql_engine: mysql
> sql_user: mail
> sql_passwd: mail
> sql_hostnames: localhost
> sql_database: mail
> sql_statement: select passwd from users where email = '%u'
> #sql_verbose: PGSQL
> sql_usessl: no
>
> Я так понимаю, при авторизации сравнивается присланный пароль с тем,
> что дает select passwd from users where email = '%u'
>
> как сделать чтобы присланный пароль перед сравнением шифровался?
[taf@metamorph cyrus-sasl2-2.1.20]$ cat
/usr/share/doc/cyrus-sasl2-2.1.20/README.ALT checkpw.c:
В пакет cyrus-sasl2 добавлен патч, позволяющий хранить
пользовательские пароли в SQL в зашифрованом виде. Для использования
данной возможности в файле конфигурации нужно указать:
password_format: [plaintext|crypt|crypt_trad]
[taf@metamorph cyrus-sasl2-2.1.20]$
next prev parent reply other threads:[~2005-01-03 8:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-03 7:35 Лааз Вадим
2005-01-03 8:03 ` Alexei Takaseev [this message]
2005-01-03 10:25 ` Лааз Вадим
2005-01-03 11:08 ` Alexei Takaseev
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=20050103160302.7fecc090.alexei@taf.ru \
--to=alexei@taf.ru \
--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