From: "Denis S. Filimonov" <den@academ.org>
To: community@altlinux.ru
Subject: Re: [Comm] Авторизация из /etc/passwd и ldap одновременно: как правильно?
Date: Mon, 19 Apr 2004 21:55:12 +0700
Message-ID: <200404192155.12733.den@academ.org> (raw)
In-Reply-To: <4083BBC6.6080804@rmts.donpac.ru>
On Monday 19 April 2004 18:45, Eugene Prokopiev wrote:
> Denis S. Filimonov пишет:
> > On Monday 19 April 2004 14:08, Eugene Prokopiev wrote:
> >>system-auth-use_first_pass:
> >>
> >>#%PAM-1.0
> >>auth sufficient /lib/security/pam_ldap.so
> >
> > вот здесь пропущен "use_first_pass"
>
> да, только не здесь, а в system-auth. Уже воспользовался Вашим
> годичной давности советом из сизифовской рассылки :) Читал его и
> раньше, но дошел до того, что он мне пригодился, только сегодня :)
>
> >>2. su - могут использовать как ldap, так и
> >> /etc/passwd-пользователи, но для su - ldap-user пароль надо
> >> вводить один раз, а для su - passwd-user необходимо вводить пароль
> >> дважды:
> >
> > да, там тоже, видимо, надо подставить use_first_pass, чтобы оно не
> > спрашивало еще раз.
>
> нет, system-auth достаточно.
>
> Вот только самый главный вопрос остается открытым: а что я недокрутил
> в ssh?
мне кажется есть некоторая путаница между параметром "use_first_pass" и
и файлом system-auth-use_first_pass
Поэтому нужно начать сначала, а именно с файлов /etc/pam.d/su
и /etc/pam.d/sshd
Разница в том, что sshd использует pam_userpass и поэтому все
последующие модули аутентификации должны иметь параметр
"use_first_pass", и, следовательно, в файле system-auth-use_first_pass
все auth модули (которым пароль вообще нужен) должны иметь параметр
"use_first_pass". У Вас же в system-auth-use_first_pass стоит
auth sufficient /lib/security/pam_ldap.so
без "use_first_pass". Потому и не работает.
--
Sincerely,
Denis.
next prev parent reply other threads:[~2004-04-19 14:55 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-19 7:08 Eugene Prokopiev
2004-04-19 9:15 ` Nick S. Grechukh
2004-04-19 9:36 ` Eugene Prokopiev
2004-04-19 11:46 ` iLya Bryzgalow
2004-04-19 9:47 ` Eugene Prokopiev
2004-04-19 11:00 ` Nick S. Grechukh
2004-04-19 10:35 ` Denis S. Filimonov
2004-04-19 11:45 ` Eugene Prokopiev
2004-04-19 14:55 ` Denis S. Filimonov [this message]
2004-04-20 4:50 ` Eugene Prokopiev
2004-04-19 12:17 ` Eugene Prokopiev
2004-04-19 14:21 ` Nick S. Grechukh
2004-04-19 14:35 ` Denis S. Filimonov
2004-04-19 15:48 ` Nick S. Grechukh
2004-04-20 4:51 ` Eugene Prokopiev
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=200404192155.12733.den@academ.org \
--to=den@academ.org \
--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