ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Eugene Prokopiev <enp@itx.ru>
To: ALT Linux sysadmin discuss <Sysadmins@lists.altlinux.org>
Subject: [Sysadmins] vsftpd accounts from openldap
Date: Mon, 18 Mar 2013 10:35:37 +0400
Message-ID: <CANM4RuhJZuzX6f49+PHQqhVvpxR86FUstP_M1HCzheKL=bFPsw@mail.gmail.com> (raw)

Здравствуйте!

Требуется авторизовать вот таких пользователей в vsftpd из OpenLDAP:

$ ldapsearch -LL -H ldap://127.0.0.1 -x -D 'cn=root,dc=home' -W -b
'ou=local,dc=home' '(&(telephoneNumber=3919)(sn=*))'
Enter LDAP Password:
version: 1

dn: cn=3919,ou=local,dc=home
sn:: 0JDQsdC+0L3QtdC90YIgOQ==
telephoneNumber: 3919
userPassword:: MzkxOQ==
objectClass: person
cn: 3919

Конфигурация:

# cat /etc/vsftpd/conf
anonymous_enable=NO
local_enable=YES
use_localtime=YES
local_umask=022

# cat /etc/pam.d/vsftpd
#%PAM-1.0
auth       sufficient   pam_ldap.so
account    sufficient   pam_ldap.so
session    sufficient   pam_ldap.so

# cat /etc/pam_ldap.conf
host 127.0.0.1
base ou=local,dc=home
ldap_version 3
rootbinddn cn=root,dc=home
pam_filter objectclass=person
pam_login_attribute telephoneNumber
pam_password clear

Не работает. В логах ничего кроме START: ftp pid=... и EXIT: ftp
pid=... соответственно, tshark запросов к OpenLDAP не показывает, т.е.
что-то не так в конфигурации pam. Что? Какие есть способы отладки?
Ничего про отладку в pam_ldap.conf не нашел.

--
С уважением,
Прокопьев Евгений

             reply	other threads:[~2013-03-18  6:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-18  6:35 Eugene Prokopiev [this message]
2013-03-20  9:12 ` Eugene Prokopiev
2013-03-20  9:13   ` Eugene Prokopiev

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='CANM4RuhJZuzX6f49+PHQqhVvpxR86FUstP_M1HCzheKL=bFPsw@mail.gmail.com' \
    --to=enp@itx.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