ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Mikhael Korneev <voldar@vrg.ru>
To: community@altlinux.ru
Subject: Re: [Comm] postfix + mysql ( шифрование паролей )
Date: Thu, 30 Dec 2004 15:41:08 +0300
Message-ID: <41D3F764.2070609@vrg.ru> (raw)
In-Reply-To: <200412301434.13015.checked@mail.ru>

Лааз Вадим 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



  reply	other threads:[~2004-12-30 12:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-30  9:40 Лааз Вадим
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 [this message]
2004-12-30 23:13     ` Re[2]: " Михаил Монашёв
2004-12-31 21:26       ` Grigory Fateyev
2005-01-03  6:52       ` Лааз Вадим

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=41D3F764.2070609@vrg.ru \
    --to=voldar@vrg.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