From: "Vladimir V. Kamarzin" <vvk@vvk.pp.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] LDAP+nss_ldap+nscd
Date: Tue, 17 Jun 2008 11:26:00 +0600
Message-ID: <m3ej6waazb.fsf@vvk.distance.ru> (raw)
In-Reply-To: <48566E8F.1020406@end.kiev.ua> (Vasyl Tereshko's message of "Mon, 16 Jun 2008 16:45:51 +0300")
>>>>> On 16 Jun 2008 at 19:45 "VT" == Vasyl Tereshko writes:
VT> Добрый день,
VT> Люди добрые, подскажите, кто может, а то совсем мозги закипают.
VT> Есть OpenLDAP и там заведены юзеровские эккаунты, настроен на серверах
VT> nss_ldap и там всё работает.
VT> А теперь задача - поднять это на клиентской машине, где юзер
VT> потенциально может получить доступ рута и в nss_ldap.conf
VT> bindrootdn=<bla-bla> и пароль в nss_ldap.secret положить нельзя.
VT> А ещё неплохо бы, чтобы там же работал nscd.
VT> У меня максимум получается, что от рута id <LDAP user> работает, а от
VT> обычного - нет. Кто-то может поделиться работающими конфигами ?
Можно настроить acl-и на ldap-сервере таким образом, чтобы выполненять
простые операции можно было анонимно, тогда нет нужды вообще использовать
rootbinddn.
access to dn.base=""
by * read
access to dn.base="cn=Subschema"
by * read
access to dn.subtree=cn=Monitor
by * read
access to attrs=userPassword,userPKCS12,sambaPwdLastSet,sambaPwdMustChange,sambaPwdCanChange,shadowMax,shadowExpire
by dn="cn=ldapadmin,dc=distance,dc=ru" write
by anonymous auth
by self write
by * none
access to attrs=shadowLastChange
by self write
by * read
# Deny access to imap/fax/kerberos admin passwords stored
# in ldap tree
access to attrs=goImapPassword
by dn="cn=ldapadmin,dc=distance,dc=ru" write
by * none
access to attrs=goKrbPassword
by dn="cn=ldapadmin,dc=distance,dc=ru" write
by * none
access to attrs=goFaxPassword
by dn="cn=ldapadmin,dc=distance,dc=ru" write
by * none
# Let servers write last user attribute
access to attrs=gotoLastUser
by * write
access to attrs=sambaLmPassword,sambaNtPassword
by dn="cn=ldapadmin,dc=distance,dc=ru" write
by dn="cn=smbpasswd smbpasswd,ou=people,dc=distance,dc=ru" read
by anonymous auth
by self write
by * none
--
vvk
Postfix page on f.i: http://freesource.info/wiki/Dokumentacija/Postfix
Russian Postfix irc: irc.freenode.net #postfix-ru
next prev parent reply other threads:[~2008-06-17 5:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-16 13:45 Vasyl Tereshko
2008-06-17 5:26 ` Vladimir V. Kamarzin [this message]
2008-06-20 14:31 ` Vasyl Tereshko
2008-06-20 14:54 ` Mykola S. Grechukh
2008-06-23 22:05 ` Ivan Fedorov
2008-06-23 23:07 ` Vasyl Tereshko
2008-12-26 11:47 ` Денис Черносов
2008-12-26 12:34 ` Денис Черносов
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=m3ej6waazb.fsf@vvk.distance.ru \
--to=vvk@vvk.pp.ru \
--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