ALT Linux Community general discussions
 help / color / mirror / Atom feed
* Re: [Comm] TLS SSL
@ 2005-04-20  9:14 Boldin Pavel
  2005-04-20  9:45 ` Re[2]: " Anton Gorlov
  0 siblings, 1 reply; 6+ messages in thread
From: Boldin Pavel @ 2005-04-20  9:14 UTC (permalink / raw)
  To: community

[-- Attachment #1: Type: text/plain, Size: 1357 bytes --]

Anton Gorlov пишет:
> Здравствуйте, community.

Ура! Заработало!

Значит делаем так:

# squid_ldap_auth -b "dc=nirvana,dc=home" -H 'ldap://nirvana.home/' -f
"uid=%s" -v 3 -Z
где -v 3 - версия протокола для bind, -Z - указание на использование TLS.
================== stdin
vasya file
OK
===================

в squid.conf пока можно записать /usr/bin/strace -o /tmp/strace.log
/usr/lib/squid/squid_ldap_auth .....

(и отсылать/смотреть самоу /tmp/strace.log)

1. замечание squid_ldap_auth запускается НЕ ПОД root, значит, если нет
прав на чтение CAcert (кстати, squid_ldap_auth читает
/etc/openldap/ldap.conf, в котором есть опция TLS_CACERT)
то все обламывается (что скорее всего и случилось :)
лечится либо так:
# cp /etc/openldap/ldap.conf /var/spool/squid/ldaprc
# cp /etc/openldap/ssl/cacert.pem /var/spool/squid/cacert.pem
# echo "TLS_CACERT /var/spool/squid/cacert.pem" > /var/spool/squid/ldaprc

или просто добавлением squid в группу ldap и тогда
# chown ldap.ldap -R /etc/openldap

прилагаются файлы: ldap.conf, squid.conf.bz2 (смотрите секции с
auth_param), slapd.conf вам не нужен.

если сразу заработает - с Вас бутылка пива :), будете в Самаре - завезете ;)

если нет - пишите, включайте файл strace.log (лучше как bz2)

-- 

Болдин Павел aka davinchi

       ldavinchi@inbox.ru or davinchi@zu.org.ru

       ZU - Zagovor Unixoidov. SSAU 303.



[-- Attachment #2: ldap.conf --]
[-- Type: text/plain, Size: 335 bytes --]

# $OpenLDAP: pkg/ldap/libraries/libldap/ldap.conf,v 1.9 2000/09/04 19:57:01 kurt Exp $
#
# LDAP Defaults
#

# See ldap.conf(5) for details
# This file should be world readable but not world writable.

BASE	dc=nirvana, dc=home
URI	ldap://ldap.servers

TLS_CACERT /etc/openldap/ssl/cacert.pem
#SIZELIMIT	12
#TIMELIMIT	15
#DEREF		never



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

end of thread, other threads:[~2005-04-20 13:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-20  9:14 [Comm] TLS SSL Boldin Pavel
2005-04-20  9:45 ` Re[2]: " Anton Gorlov
2005-04-20 11:44   ` Boldin Pavel
2005-04-20 12:57     ` Re[2]: " Anton Gorlov
2005-04-20 13:42   ` Boldin Pavel
2005-04-20 13:48     ` Re[2]: " Anton Gorlov

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