From owner-freebsd-stable@FreeBSD.ORG Mon Jul 15 18:54:18 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 693C417B for ; Mon, 15 Jul 2013 18:54:18 +0000 (UTC) (envelope-from mloftis@wgops.com) Received: from mail-la0-x232.google.com (mail-la0-x232.google.com [IPv6:2a00:1450:4010:c03::232]) by mx1.freebsd.org (Postfix) with ESMTP id E5D21DB for ; Mon, 15 Jul 2013 18:54:17 +0000 (UTC) Received: by mail-la0-f50.google.com with SMTP id ep20so5303522lab.37 for ; Mon, 15 Jul 2013 11:54:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wgops.com; s=gm01; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=BEI+59UXW+uJW3X1lYc6HvwIQh5VEHfJTe5gRJP3eBI=; b=RBwP0e3wEQB31LKxND+ED3KJNeOY6w4NLAhfc2iMk6KAUU5mouG/iXpQ3xFc7HVPZU ujZAFO9q8nJzTy7mrJRPeGVuoI5U1iBNOPwtohYi0uOT65vpu4j8wYdE+7+gaX+GIfAp ecpEsAeZywxHIx5gz+sNwxK/hcCw+mnjqsGAM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-gm-message-state; bh=BEI+59UXW+uJW3X1lYc6HvwIQh5VEHfJTe5gRJP3eBI=; b=DGbZxe8xi8JbXfZ2UND3DLYnu5Bgphi6MyCo/nJO8fXmCHD8YdkLp0PV2M/OI69bJX clY1Bc+zE0gGKT5rYooZVqb3Pr0ZcyWXumw4hle7PwkpBZX9FFbtkUqIld3jMJr/Tfbw FxBUm6iq4evNcrK2kH/ImB290wvYS8DPADZ+uEoK5ntVyDsrH808oYArzdY2VmhLD2Qn MwM71emsq8kjcfiuDP8+DWvSWQBkjlT2YQZYZl6b7u2HHkavjBtwEhxwBZhLgGWkzWSU NDZwJWg9kkIdTY9K1aoTMInUfOblvlIJYh7p8TGfLmgaKU2jviRuR5o4DCllkYT6IhTY fnKg== MIME-Version: 1.0 X-Received: by 10.112.159.169 with SMTP id xd9mr24828948lbb.43.1373914456677; Mon, 15 Jul 2013 11:54:16 -0700 (PDT) Received: by 10.112.151.66 with HTTP; Mon, 15 Jul 2013 11:54:16 -0700 (PDT) In-Reply-To: References: Date: Mon, 15 Jul 2013 11:54:16 -0700 Message-ID: Subject: Re: LDAP authentication confusion From: Michael Loftis To: Daniel Eischen Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQmJl1Xt9hK6VlNAK09jTrGoVbZwsMoO2QlgxoTAOHgz4xl9W0npVGNjITG++KX+Xi5QEPM6 Cc: freebsd-stable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jul 2013 18:54:18 -0000 nss_ldap fulfills most of the get*ent calls, thus based on the bits of your configuration you've exposed I think you're ending up with that behavior and not using pam_ldap at all. Instead the authentication is happening via nsswitch fulfilling getpwent() call's (the passwd: files ldap line in nsswitch.conf) On Mon, Jul 15, 2013 at 11:51 AM, Daniel Eischen wrote: > There's an article on LDAP authentication on FreeBSD here: > > http://www.freebsd.org/doc/en/articles/ldap-auth/article.html#client > > I'm confused as to why pam_ldap and nss_ldap do not need > /etc/pam.d entries, as described in the above link in > section 3.1.1. Meaning, I do not have any ldap entries > in my /etc/pam.d/ or even /usr/local/etc/pam.d/ and > ldap logins work (console, ssh, telnet, ftp). > > $ grep -i ldap /etc/pam.d/* > $ grep -i ldap /usr/local/etc/pam.d/* > > What am I missing? > > $ uname -v > FreeBSD slrtr1 9.1-STABLE FreeBSD 9.1-STABLE #0 r250347... > $ uname -m > amd64 > $ cat /etc/nsswitch.conf > group: files ldap > hosts: files dns > networks: files > passwd: files ldap > shells: files > services: files > protocols: files > rpc: files > > -- > DE > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" -- "Genius might be described as a supreme capacity for getting its possessors into trouble of all kinds." -- Samuel Butler