From owner-freebsd-questions@FreeBSD.ORG Fri Jul 18 19:40:34 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 990DF106566B for ; Fri, 18 Jul 2008 19:40:34 +0000 (UTC) (envelope-from sdafreebsduk@rowyerboat.com) Received: from brookes.ac.uk (csmail1.brookes.ac.uk [161.73.1.23]) by mx1.freebsd.org (Postfix) with ESMTP id 404738FC0A for ; Fri, 18 Jul 2008 19:40:34 +0000 (UTC) (envelope-from sdafreebsduk@rowyerboat.com) Received: from [161.73.146.9] (izb6d318.brookes.ac.uk [161.73.146.9]) (authenticated bits=0) by brookes.ac.uk (8.14.2/8.14.2) with ESMTP id m6IJ9iVr015471 (SMTP-AUTH user p0036343) (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 18 Jul 2008 20:09:48 +0100 (BST) Message-ID: <4880EA7A.90801@rowyerboat.com> Date: Fri, 18 Jul 2008 20:09:46 +0100 From: Stephen Allen User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-MailScanner-Information: Oxford Brookes University MailScanner X-MailScanner: Clean X-MailScanner-From: sdafreebsduk@rowyerboat.com X-Spam-Status: No Subject: "Invalid credentials" errors using pam_ldap on FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jul 2008 19:40:34 -0000 Hello, I'm pretty sure I've done all the necessary steps to be able to ssh to my FreeBSD box using pam_ldap, but I'm getting "Invalid credentials" errors whenever I try (I can successfully perform an ldapsearch operation though). Here are snippets from my config: [/etc/nsswitch.conf] passwd: files ldap [/etc/pam.d/sshd] auth sufficient /usr/local/lib/pam_ldap.so auth required pam_unix.so [/usr/local/etc/ldap.conf] base o=brookes uri ldap://ldap.brookes.ac.uk:389/ scope one And here is the error: Jul 18 19:19:41 vh1a9f58 sshd[19601]: pam_ldap: error trying to bind as user "uid=p0036343,o=Brookes" (Invalid credentials) Incidentally, the following ldapsearch query _IS_ successful, and returns me some details about user 'jsmith' ldapsearch -H ldap://ldap.brookes.ac.uk -b 'o=brookes' -x -W -D 'uid=me,o=Brookes' uid=jsmith I'm really stumped on this one... can anyone help please? Many thanks, Steve :) --