ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Boldin Pavel <ldavinchi@inbox.ru>
To: community@altlinux.ru
Subject: Re: [Comm] TLS SSL
Date: Wed, 20 Apr 2005 14:14:35 +0500
Message-ID: <42661D7B.20906@inbox.ru> (raw)

[-- 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



             reply	other threads:[~2005-04-20  9:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-20  9:14 Boldin Pavel [this message]
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

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=42661D7B.20906@inbox.ru \
    --to=ldavinchi@inbox.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