From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 15 14:30:52 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 76BF016A4CE for ; Mon, 15 Dec 2003 14:30:52 -0800 (PST) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7508943D2D for ; Mon, 15 Dec 2003 14:30:48 -0800 (PST) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id 6FDC65309; Mon, 15 Dec 2003 23:30:47 +0100 (CET) Received: from dwp.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id 820325308; Mon, 15 Dec 2003 23:30:38 +0100 (CET) Received: by dwp.des.no (Postfix, from userid 2602) id 15CDF33C94; Mon, 15 Dec 2003 23:30:38 +0100 (CET) To: Adil Katchi References: From: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Mon, 15 Dec 2003 23:30:38 +0100 In-Reply-To: (Adil Katchi's message of "Mon, 15 Dec 2003 17:15:17 -0500") Message-ID: User-Agent: Gnus/5.090024 (Oort Gnus v0.24) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on flood.des.no X-Spam-Level: X-Spam-Status: No, hits=0.1 required=5.0 tests=RCVD_IN_SORBS autolearn=no version=2.60 cc: "'freebsd-hackers@freebsd.org'" Subject: Re: PAM and passwd X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 22:30:52 -0000 Adil Katchi writes: > This seems to indicate that the local users' info is loaded at PAM startu= p. > Is this true? It depends on the module. Most PAM modules use getpwnam() to look up the user, and will fail if it does not exist; some modules don't (for instance, pam_ldap looks the user up in the LDAP directory even if nsswitch isn't set up to use LDAP) You probably want to write your own PAM authentication module to handle account creation. Feel free to contact me off-list for further information on how to do this. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no