From: "Andrew V. Stepanov" <stanv@altlinux.org>
To: "ALT Linux sysadmins' discussion" <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] LDAP + пароли для пользователей в blowfish
Date: Thu, 9 Dec 2010 11:43:20 +0300
Message-ID: <AANLkTi=+7D=rJTiA13qe6OLA+c7q4rx=Y63_BTd=hVW3@mail.gmail.com> (raw)
In-Reply-To: <8739q79wjf.fsf@vps2.branbackup.org>
Круто, спасибо!
Получилось.
Т.е. можно и так:
# slappasswd -h '{SHA}'
New password:
Re-enter new password:
{SHA}QL0AFWMIX8NRZTKeof9cXsvbvu8=
Я все думал что `pam_password crypt' - это привязка к системному
вызову crypt(), т.е. blowfish.
Оказывается это SHA.
2010/12/9 Vitaly Kuznetsov <vitty@altlinux.ru>:
> "Andrew V. Stepanov" <stanv@altlinux.org> writes:
>
>> В каком виде занести пароль в поле userPassword чтобы pam_ldap можно
>> было включить опцию `pam_password crypt' ????
>
> Вот пример на перле для SHA:
>
> use Digest::SHA1;
> use MIME::Base64;
> $ctx = Digest::SHA1->new;
> $ctx->add($theGoodWord);
> $hashedSHAPasswd = '{SHA}' . encode_base64($ctx->digest,'');
> print 'userPassword: ' . $hashedSHAPasswd . "\n";
>
> --
> Vitaly Kuznetsov, ALT Linux
> _______________________________________________
> Sysadmins mailing list
> Sysadmins@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/sysadmins
>
next prev parent reply other threads:[~2010-12-09 8:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-09 8:24 Andrew V. Stepanov
2010-12-09 8:32 ` Vitaly Kuznetsov
2010-12-09 8:43 ` Andrew V. Stepanov [this message]
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='AANLkTi=+7D=rJTiA13qe6OLA+c7q4rx=Y63_BTd=hVW3@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