From: Eugene Prokopiev <john@rmts.donpac.ru>
To: community@altlinux.ru
Subject: [Comm] /etc/passwd -> LDAP: pam_tcb -> pam_ldap?
Date: Sat, 17 Apr 2004 09:31:24 +0400
Message-ID: <4080C12C.6010901@rmts.donpac.ru> (raw)
Здравствуйте!
Чуть раньше о том же самом я уже писал. Но ситуация изменилась,
пользователи LDAP в сам LDAP уже заходят :)
Имеем:
$ ldapsearch -LLL -H ldap://localhost -b
"dc=myserver,dc=myprovider,dc=ru" -D
"cn=vasya,cn=Users,dc=myserver,dc=myprovider,dc=ru" -w "1"
dn: dc=myserver, dc=myprovider, dc=ru
objectClass: top
dn: cn=Users, dc=myserver, dc=myprovider, dc=ru
objectClass: top
dn: cn=vasya, cn=Users, dc=myserver, dc=myprovider, dc=ru
objectClass: account
objectClass: posixAccount
objectClass: shadowAccount
cn: vasya
uid: vasya
uidNumber: 1000
gidNumber: 10
homeDirectory: /home/vasya
loginShell: /bin/bash
userPassword:: e1NTSEF9M2J1TWFKQ2I4WEpSbFVKTjRPWDVhRjZCVmttYlhxNXg=
Т.е. Васю в LDAP пускают (а не пускали из-за неправильного вызова
ldapsearch - не те ключи использовал).
Остальное без особых изменений:
# grep ^[a-z] /etc/ldap.conf
host 127.0.0.1
base dc=myserver,dc=myprovider,dc=ru
bindpw secret
rootbinddn cn=manager,dc=myserver,dc=myprovider,dc=ru
# grep ^[a-z] /etc/nsswitch.conf | grep ldap
passwd: files ldap nisplus nis
shadow: tcb ldap files nisplus nis
group: files ldap nisplus nis
Т.е. в духе того, что написано в Руководстве администратора. И id у меня
действительно работает так, как там описано:
# id vasya
uid=1000(vasya) gid=10(wheel) groups=10(wheel)
А вот следующий шаг не работает:
$ su - vasya
Password:
su: Authentication failure
Apr 17 09:15:06 john-ws pam_tcb[30339]: su: Authentication failed for
vasya from john(uid=501)
А почему pam_tcb, а не pam_ldap? По словам pam_tcb и ldap нашел в
search.altlinux.ru два обсуждения, в которых люди сталкивались с
проблемами, но проблемы были другими и дело было не на ALM22.
Выяснилось, что для нормальной работы необходимо еще что-то прописывать
в /etc/pam.d. Пытался делать по аналогии, но добавление pam_ldap
приводило только к Segmentation fault при su - vasya.
Собственно вопрос: как все-таки на ALM22 сделать это правильно?
Поделитесь, пожалуйста, работающими конфигами.
--
С уважением, Прокопьев Евгений
next reply other threads:[~2004-04-17 5:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-17 5:31 Eugene Prokopiev [this message]
2004-04-17 5:58 ` Eugene Prokopiev
2004-04-17 6:13 ` Eugene Prokopiev
2004-04-17 6:26 ` Denis S. Filimonov
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=4080C12C.6010901@rmts.donpac.ru \
--to=john@rmts.donpac.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