* [Comm] postfix + mysql ( шифрование паролей )
@ 2004-12-30 9:40 Лааз Вадим
2004-12-30 9:53 ` Valery V. Inozemtsev
2004-12-30 10:32 ` Михаил Монашёв
0 siblings, 2 replies; 8+ messages in thread
From: Лааз Вадим @ 2004-12-30 9:40 UTC (permalink / raw)
To: community
можно ли сделать так, что бы в mysql пароли лежали криптованные?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Comm] postfix + mysql ( шифрование паролей )
2004-12-30 9:40 [Comm] postfix + mysql ( шифрование паролей ) Лааз Вадим
@ 2004-12-30 9:53 ` Valery V. Inozemtsev
2004-12-30 10:32 ` Михаил Монашёв
1 sibling, 0 replies; 8+ messages in thread
From: Valery V. Inozemtsev @ 2004-12-30 9:53 UTC (permalink / raw)
To: community
[-- Attachment #1: Type: text/plain, Size: 318 bytes --]
В сообщении от 30 Декабрь 2004 12:40 Лааз Вадим написал(a):
> можно ли сделать так, что бы в mysql пароли лежали криптованные?
ftp://ftp.altlinux.ru/pub/people/shrek/doc/postfix-how-to.html
возможно поможет
--
Valery V. Inozemtsev
Powered by ALT Linux Sisyphus (20041214)
ftp://ftp.altlinux.ru/pub/people/shrek/
[-- Attachment #2: Type: application/pgp-signature, Size: 190 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Comm] postfix + mysql ( шифрование паролей )
2004-12-30 9:40 [Comm] postfix + mysql ( шифрование паролей ) Лааз Вадим
2004-12-30 9:53 ` Valery V. Inozemtsev
@ 2004-12-30 10:32 ` Михаил Монашёв
2004-12-30 11:34 ` Лааз Вадим
1 sibling, 1 reply; 8+ messages in thread
From: Михаил Монашёв @ 2004-12-30 10:32 UTC (permalink / raw)
To: Лааз Вадим
Здравствуйте Вадим
ЛВ> можно ли сделать так, что бы в mysql пароли лежали криптованные?
Очень просто. в sql есть функции MD5, PASSWORD и подобные.
пишешь : INSERT INTO users SET pass=PASSWORD('56hgffrthbftyuyu');
и всё.
С уважением,
Михаил Монашёв
Member of Independent Software Developers Forum (ISDEF)
ICQ# 166233339
http://softsearch.ru/
http://softbn.ru/
http://mindmix.ru/
http://3d2f.com/
http://xuix.com/
http://xoib.com/
Без бэкапа по жизни.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Comm] postfix + mysql ( шифрование паролей )
2004-12-30 10:32 ` Михаил Монашёв
@ 2004-12-30 11:34 ` Лааз Вадим
2004-12-30 12:41 ` Mikhael Korneev
2004-12-30 23:13 ` Re[2]: " Михаил Монашёв
0 siblings, 2 replies; 8+ messages in thread
From: Лааз Вадим @ 2004-12-30 11:34 UTC (permalink / raw)
To: community
В сообщении от 30 Декабрь 2004 13:32 Михаил Монашёв написал(a):
> ЛВ> можно ли сделать так, что бы в mysql пароли лежали криптованные?
> Очень просто. в sql есть функции MD5, PASSWORD и подобные.
> пишешь : INSERT INTO users SET pass=PASSWORD('56hgffrthbftyuyu');
скорее
update users SET pass=PASSWORD('56hgffrthbftyuyu') where user='test';
а как быть с проверкой postfix-а, cyrus-imap?
select * from users where pass=password('пароль');
не прокатывает.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Comm] postfix + mysql ( шифрование паролей )
2004-12-30 11:34 ` Лааз Вадим
@ 2004-12-30 12:41 ` Mikhael Korneev
2004-12-30 23:13 ` Re[2]: " Михаил Монашёв
1 sibling, 0 replies; 8+ messages in thread
From: Mikhael Korneev @ 2004-12-30 12:41 UTC (permalink / raw)
To: community
Лааз Вадим wrote:
>В сообщении от 30 Декабрь 2004 13:32 Михаил Монашёв написал(a):
>
>
>>ЛВ> можно ли сделать так, что бы в mysql пароли лежали криптованные?
>>Очень просто. в sql есть функции MD5, PASSWORD и подобные.
>>пишешь : INSERT INTO users SET pass=PASSWORD('56hgffrthbftyuyu');
>>
>>
>скорее
>update users SET pass=PASSWORD('56hgffrthbftyuyu') where user='test';
>
>а как быть с проверкой postfix-а, cyrus-imap?
>
>select * from users where pass=password('пароль');
>не прокатывает.
>
>
Через sasl. В том sasl-е который в сизифе приложен патчик для
авторизации по криптованым паролям. Вот как у меня это в smtpd.conf это
сделано:
$ cat smtpd.conf
pwcheck_method: auxprop
auxprop_plugin: sql
allowplaintext: yes
mech_list: PLAIN LOGIN
srp_mda: md5
srvtab: /dev/null
opiekeys: /dev/null
password_format: crypt
sql_hostnames: 172.16.0.1
sql_user: postfix
sql_passwd: QlvcEXUAku
sql_database: postfix
sql_verbose: yes
sql_select: SELECT password FROM mailbox WHERE username = '%u@%r' and
active = 1
--
Best regards, Mikhael Korneev aka Voldar
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re[2]: [Comm] postfix + mysql ( шифрование паролей )
2004-12-30 11:34 ` Лааз Вадим
2004-12-30 12:41 ` Mikhael Korneev
@ 2004-12-30 23:13 ` Михаил Монашёв
2004-12-31 21:26 ` Grigory Fateyev
2005-01-03 6:52 ` Лааз Вадим
1 sibling, 2 replies; 8+ messages in thread
From: Михаил Монашёв @ 2004-12-30 23:13 UTC (permalink / raw)
To: Лааз Вадим
Здравствуйте Вадим
>> пишешь : INSERT INTO users SET pass=PASSWORD('56hgffrthbftyuyu');
ЛВ> скорее
ЛВ> update users SET pass=PASSWORD('56hgffrthbftyuyu') where user='test';
ЛВ> а как быть с проверкой postfix-а, cyrus-imap?
ЛВ> select * from users where pass=password('пароль');
ЛВ> не прокатывает.
Странно что не прокатывает. Должно .Может стоит название фугкций большими
буквами писать? Какую ошибку селект этот выдаёт?
С уважением,
Михаил Монашёв
Member of Independent Software Developers Forum (ISDEF)
ICQ# 166233339
http://softsearch.ru/
http://softbn.ru/
http://mindmix.ru/
http://3d2f.com/
http://soft-search.ru/
http://xuix.com/
http://xoib.com/
http://mind-mix.ru/
Без бэкапа по жизни.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Comm] postfix + mysql ( шифрование паролей )
2004-12-30 23:13 ` Re[2]: " Михаил Монашёв
@ 2004-12-31 21:26 ` Grigory Fateyev
2005-01-03 6:52 ` Лааз Вадим
1 sibling, 0 replies; 8+ messages in thread
From: Grigory Fateyev @ 2004-12-31 21:26 UTC (permalink / raw)
To: community
Hello, Михаил!
31 Декабря 2004г. в 02:13 You wrote:
> С уважением,
> Михаил Монашёв
> Member of Independent Software Developers Forum (ISDEF)
> ICQ# 166233339
> http://softsearch.ru/
> http://softbn.ru/
> http://mindmix.ru/
> http://3d2f.com/
> http://soft-search.ru/
> http://xuix.com/
> http://xoib.com/
> http://mind-mix.ru/
> Без бэкапа по жизни.
Большая просьба перед вашей бооольшой подписью добавить "-- "
(естественно без кавычек)
Спасибо!
Всех с Новым Годом!
--
Всего наилучшего!
greg_[at]_anastasia_[dot]_ru Григорий.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Comm] postfix + mysql ( шифрование паролей )
2004-12-30 23:13 ` Re[2]: " Михаил Монашёв
2004-12-31 21:26 ` Grigory Fateyev
@ 2005-01-03 6:52 ` Лааз Вадим
1 sibling, 0 replies; 8+ messages in thread
From: Лааз Вадим @ 2005-01-03 6:52 UTC (permalink / raw)
To: community
В сообщении от 31 Декабрь 2004 02:13 Михаил Монашёв написал(a):
> ЛВ> select * from users where pass=password('пароль');
> ЛВ> не прокатывает.
Сорри, прокатывает.
проблемма авторизации cyrus-imapd
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-01-03 6:52 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-30 9:40 [Comm] postfix + mysql ( шифрование паролей ) Лааз Вадим
2004-12-30 9:53 ` Valery V. Inozemtsev
2004-12-30 10:32 ` Михаил Монашёв
2004-12-30 11:34 ` Лааз Вадим
2004-12-30 12:41 ` Mikhael Korneev
2004-12-30 23:13 ` Re[2]: " Михаил Монашёв
2004-12-31 21:26 ` Grigory Fateyev
2005-01-03 6:52 ` Лааз Вадим
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