From owner-freebsd-stable@FreeBSD.ORG Tue Mar 18 09:14:40 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B3DA11065672 for ; Tue, 18 Mar 2008 09:14:40 +0000 (UTC) (envelope-from valerio.daelli@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.227]) by mx1.freebsd.org (Postfix) with ESMTP id 6DB0C8FC3A for ; Tue, 18 Mar 2008 09:14:40 +0000 (UTC) (envelope-from valerio.daelli@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so6400561wxd.7 for ; Tue, 18 Mar 2008 02:14:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=/Ke8lf08qt9mC4wJAftvw9hjHyRszEKEd6pk+mNVRxA=; b=H4MBVwrDewifZqe4okPgKPOWZ63elcmDwuCZA+mWLmhPlyR9Y46aJZd5QcMi8LeqT2S3+01AV5tGhmjs3Vs8u37461T6I3fu9e2E4Vio6+IT0cWdeWbw1hxOYhMhoVDVYb83LDom8UUZsIvBVPOqHfFZh9DEM1KnPGtu6mkJTqs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=NbQOsh7pZYIpbOnThLggOegrCM9R5jIbfkDsgj658+hQBiXPi49Xvnry0qZFe01EodhdGmHAFOUHpgnNaSQlc73Hn/Papj8uu+jVpkJneYWuI5JyMVetasPqaERxXQ0BlFr0X1DehgMIMtUBnWn4DIpdEvdgf0A/5RnQlJ83ut8= Received: by 10.114.132.5 with SMTP id f5mr1064563wad.50.1205830136140; Tue, 18 Mar 2008 01:48:56 -0700 (PDT) Received: by 10.114.113.14 with HTTP; Tue, 18 Mar 2008 01:48:56 -0700 (PDT) Message-ID: <27dbfc8c0803180148q3aa8323ev8a06a25eef46257f@mail.gmail.com> Date: Tue, 18 Mar 2008 09:48:56 +0100 From: "Valerio Daelli" To: "Daniel Bond" , freebsd-stable@freebsd.org In-Reply-To: <47DE9638.6080609@danielbond.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47DE9638.6080609@danielbond.org> Cc: Subject: Re: Problems combining nss_ldap/pam_ldap with pam_mkhomedir in FreeBSD 7.0 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Mar 2008 09:14:40 -0000 On Mon, Mar 17, 2008 at 5:03 PM, Daniel Bond wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi, > Now, if I uncomment the line with pam_mkhomedir.so on it, logins stop to > work. In /var/log/auth.log I now see two lines appearing: > > Mar 17 16:46:40 webmail sshd[98923]: nss_ldap: could not search LDAP > server - Server is unavailable > Mar 17 16:46:40 webmail sshd[98923]: error: PAM: pam_open_session(): > error in service module Hi not sure if this may solve your problem. We found a similar problem on FreeBSD 7.0 with pam_mkhomedir.so and sshd. We solved using pam_exec.so and a custom shell script to create the home directories. Hope this help Valerio Daelli