ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: "Andrew V. Stepanov" <stanv@altlinux.org>
To: sysadmins@lists.altlinux.org
Subject: [Sysadmins] LDAP + пароли для пользователей в blowfish
Date: Thu, 9 Dec 2010 11:24:43 +0300
Message-ID: <AANLkTinQJ2rvUcjzv4r5Fk-W8V26F9CgZOQ5-Jg2UL3B@mail.gmail.com> (raw)

Привет.
Я хочу чтобы системные пользователи хранились в LDAP.
Я это сделал.
Только сейчас у меня в /etc/pam_ldap.conf пароли на проверку в LDAP
сервер отправляются в открытом виде:
pam_password clear

Я могу хранить хеш пароля в LDAP. Для этого я могу создать его с помощью:
/usr/sbin/slappasswd -h '{CRYPT}'
Но на вход LDAP всеравно хочет получить clear пароль. Т.е. чтобы в
/etc/pam_ldap.conf было `pam_password clear'

С такой конфигурацией пользователи успешно авторизируются в системе.

В etc/pam_ldap.conf есть опция:
pam_password crypt
Как я понял тогда pam_ldap будет отправлять на проверку в LDAP сервер
хеш пароля.

Только у меня вопрос, как занести в LDAP пароль пользователя?

stanv@hull: ~/ > bfhash 123
$2a$08$hb2E6SbbhRS8AfNiIpH2wujDP7Q5tuHHnBHVVeLx0GKAHaQG7BXbW%

stanv@hull: ~/ > bfhash 123
$2a$08$0zFsBZbRI0MxjOJZkUzH6uNdeYbQu4uKz9earJP64P2rjny4PyNTe%

Как видно хеш для одного пароля генерируется каждый раз другой.

В каком виде занести пароль в поле userPassword чтобы pam_ldap можно
было включить опцию `pam_password crypt' ????

СПАСИБО!!!

             reply	other threads:[~2010-12-09  8:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-09  8:24 Andrew V. Stepanov [this message]
2010-12-09  8:32 ` Vitaly Kuznetsov
2010-12-09  8:43   ` Andrew V. Stepanov
2010-12-09  9:36 ` Sergey Vlasov
2010-12-09  9:55   ` Andrew V. Stepanov
2010-12-09 18:20     ` Sergey Vlasov

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=AANLkTinQJ2rvUcjzv4r5Fk-W8V26F9CgZOQ5-Jg2UL3B@mail.gmail.com \
    --to=stanv@altlinux.org \
    --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