ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] LDAP и аутентификация
@ 2002-09-27  2:12 Pavel Stoliarov
  2002-09-27  3:57 ` Andrey Vakatov
  2002-09-27  5:06 ` Denis S. Filimonov
  0 siblings, 2 replies; 3+ messages in thread
From: Pavel Stoliarov @ 2002-09-27  2:12 UTC (permalink / raw)
  To: community

Всем привет 
 решил настроить аутентификацию пользователей через LDAP ,
утановил  openldap-2.0.25-alt3 , nss_ldap, pam_ldap, система ALT Linux MASTER 
2.0.
 перенес всех пользователей из /etc/passwd и /etc/group в 
ou=People,dc=myhost,dc=mydomain и ou=Group,dc=myhost,dc=mydomain 
соответсвенно .  
 настроил /etc/nsswtitch.conf , т.е. прописал
  
  passwd:     files ldap
  shadow:     tcb ldap files
  group:      files ldap

настроил /etc/openldap/ldap.conf :
host 127.0.0.1
base    dc=myhost,dc=mydomain
uri     ldap://localhost
ldap_version 3
rootbinddn  cn=proxyuser,dc=myhost,dc=mydomain
scope one
pam_filter objectclass=posixaccount
pam_login_attribute uid
pam_member_attribute gid
pam_template_login_attribute uid
pam_password md5
nss_base_passwd                ou=People,dc=myhost,dc=mydomain?one
nss_base_shadow                ou=People,dc=myhost,dc=mydomain?one
nss_base_group         ou=Group,dc=myhost,dc=mydomain?one

все работет прекрасно , с помощью ldapsearch могу делать любые запросы .

Только вот система не видит пользователей которые прописаны в ldap
т.е. делаю например
 getent passwd - выводяться только пользователи в /etc/passwd 
 или например хочу посмотреть конкретного юзера который прописан в LDAP базе:    
  id user1
  id: user1: No such user

 в логах LDAP не видно  что производились какие то запросы ,.


 Вообщем мучаюсь уже почти неделю. Если у кого нибудь работает аутентификация 
по LDAP , помогите разобраться плз.
-- 
Best regards 
Pavel



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Comm] LDAP и аутентификация
  2002-09-27  2:12 [Comm] LDAP и аутентификация Pavel Stoliarov
@ 2002-09-27  3:57 ` Andrey Vakatov
  2002-09-27  5:06 ` Denis S. Filimonov
  1 sibling, 0 replies; 3+ messages in thread
From: Andrey Vakatov @ 2002-09-27  3:57 UTC (permalink / raw)
  To: community

Pavel Stoliarov wrote:
> Всем привет 
>  решил настроить аутентификацию пользователей через LDAP ,
> утановил  openldap-2.0.25-alt3 , nss_ldap, pam_ldap, система ALT Linux MASTER 
> 2.0.
><skip>
> 
>  Вообщем мучаюсь уже почти неделю. Если у кого нибудь работает аутентификация 
> по LDAP , помогите разобраться плз.
/etc/pam.d здесь настраивается через какие механизмы 
аутентифицировать.
Читать здесь:
http://www.mandrakesecure.net/en/docs/ldap-auth.php
и переводить под свои реалии.
-- 
Андрей Вакатов




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Comm] LDAP и аутентификация
  2002-09-27  2:12 [Comm] LDAP и аутентификация Pavel Stoliarov
  2002-09-27  3:57 ` Andrey Vakatov
@ 2002-09-27  5:06 ` Denis S. Filimonov
  1 sibling, 0 replies; 3+ messages in thread
From: Denis S. Filimonov @ 2002-09-27  5:06 UTC (permalink / raw)
  To: community

27 Сентябрь 2002 09:12, Pavel Stoliarov написал:
> Всем привет
>  решил настроить аутентификацию пользователей через LDAP ,
> утановил  openldap-2.0.25-alt3 , nss_ldap, pam_ldap, система ALT Linux
> MASTER 2.0.
>  перенес всех пользователей из /etc/passwd и /etc/group в
> ou=People,dc=myhost,dc=mydomain и ou=Group,dc=myhost,dc=mydomain
> соответсвенно .
>  настроил /etc/nsswtitch.conf , т.е. прописал
>
>   passwd:     files ldap
>   shadow:     tcb ldap files
>   group:      files ldap
>
у меня 

passwd:     ldap files
shadow:     ldap tcb files
group:      ldap files

все работает правильно.

> настроил /etc/openldap/ldap.conf :
> host 127.0.0.1
> base    dc=myhost,dc=mydomain
> uri     ldap://localhost
> ldap_version 3
> rootbinddn  cn=proxyuser,dc=myhost,dc=mydomain
> scope one
> pam_filter objectclass=posixaccount
> pam_login_attribute uid
> pam_member_attribute gid
> pam_template_login_attribute uid
> pam_password md5
> nss_base_passwd                ou=People,dc=myhost,dc=mydomain?one
> nss_base_shadow                ou=People,dc=myhost,dc=mydomain?one
> nss_base_group         ou=Group,dc=myhost,dc=mydomain?one
>
> все работет прекрасно , с помощью ldapsearch могу делать любые запросы .
>
> Только вот система не видит пользователей которые прописаны в ldap
> т.е. делаю например
>  getent passwd - выводяться только пользователи в /etc/passwd
>  или например хочу посмотреть конкретного юзера который прописан в LDAP
> базе: id user1
>   id: user1: No such user
>
>  в логах LDAP не видно  что производились какие то запросы ,.
>
>
>  Вообщем мучаюсь уже почти неделю. Если у кого нибудь работает
> аутентификация по LDAP , помогите разобраться плз.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-09-27  5:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-27  2:12 [Comm] LDAP и аутентификация Pavel Stoliarov
2002-09-27  3:57 ` Andrey Vakatov
2002-09-27  5:06 ` Denis S. Filimonov

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