ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Dmitry Nechaev <dima@academy.cap.ru>
To: community@altlinux.ru
Subject: Re: [Comm] OpenLDAP
Date: Wed, 5 Nov 2003 10:36:30 +0300
Message-ID: <200311051036.30685.dima@academy.cap.ru> (raw)
In-Reply-To: <3FA8072F.9@v-lug.vlink.ru>

В сообщении от Вторник 04 Ноябрь 2003 23:08 Taras Ablamsky написал(a):
> Alexey I. Froloff пишет:
> >* Taras Ablamsky <t@v-lug.vlink.ru> [031104 01:16]:
> >>t@lcomp2 ~ $ cat /etc/pam.d/system-auth
> >>#%PAM-1.0
> >>auth    sufficient      /lib/security/pam_ldap.so
> >>auth    required        /lib/security/pam_tcb.so shadow fork prefix=$2a$
> >> count=8 nullok use_first_pass account sufficient     
> >> /lib/security/pam_ldap.so
> >>account required        /lib/security/pam_tcb.so shadow fork
> >>password        required        /lib/security/pam_passwdqc.so
> >> min=disabled,24,12,8,7 max=40 passphrase=3 match=4 similar=deny
> >> random=42 enforce=users retry=3 password        sufficient     
> >> /lib/security/pam_ldap.so use_authtok password        required       
> >> /lib/security/pam_tcb.so use_authtok shadow fork prefix=$2a$ count=8
> >> write_to=tcb
> >
> >Есть мнение, что сюда стОит добавить pam_mkhomedir (по аналогии с
> >system-auth-winbind)
>
> Это если нужно чтобы $HOME создавался автоматически.
> Меня это смущает несколько, а $HOME создается в скрипте, которым
> и добавляется пользователь. Хотя может и имеет смысл добавить
> pam_mkhomedir...
> Надо бы посмотреть что она делает и, самое главное, как.
Это описано в мандрейковской доке:

=== quote begins ===
If you want to be able to have the system create home directories on the fly 
(ie. you enter a user into the LDAP database but have not created a home 
directory for them on the system), you can use the pam_mkhomedir module. 
Replace the above "session" entries in system-auth with (and note the line 
wrap):

session required /lib/security/pam_mkhomedir.so skel=/etc/skel/ umask=0022
session required /lib/security/pam_limits.so
session required /lib/security/pam_unix.so
session optional /lib/security/pam_ldap.so

This will create a home directory for the user, on the fly, using /etc/skel as 
the skeleton directory (which is the standard when creating new system users 
anyways).
=== quote ends ===

У меня теперь другая проблема.
Пользователь авторизуется нормально, но в шелл войти не может - его выкидывает 
сразу. В логах - Session opened for user [user], и сразу же Session closed 
for user [user]. Шелл прописан валидный (/bin/bash), homedir /tmp. На хосте, 
где крутится сервер LDAP, пользователь входит без проблем, хотя там и 
homedir-а для него нет.

-- 
2.4.20-alt5-up GNU/Linux

      reply	other threads:[~2003-11-05  7:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-03  9:48 Dmitry Nechaev
2003-11-03 22:03 ` Taras Ablamsky
2003-11-04  5:23   ` Alexey I. Froloff
2003-11-04 20:08     ` Taras Ablamsky
2003-11-05  7:36       ` Dmitry Nechaev [this message]

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=200311051036.30685.dima@academy.cap.ru \
    --to=dima@academy.cap.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