From owner-freebsd-questions@freebsd.org Wed Jun 14 18:47:02 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CF2BDBF1772 for ; Wed, 14 Jun 2017 18:47:02 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay13.qsc.de (mailrelay13.qsc.de [212.99.187.253]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4330F74A4F for ; Wed, 14 Jun 2017 18:47:01 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay13.qsc.de; Wed, 14 Jun 2017 20:46:52 +0200 Received: from r56.edvax.de (port-92-195-58-9.dynamic.qsc.de [92.195.58.9]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 072C43CBF9; Wed, 14 Jun 2017 20:46:51 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id v5EIkpw9005189; Wed, 14 Jun 2017 20:46:51 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Wed, 14 Jun 2017 20:46:51 +0200 From: Polytropon To: Friedrich Locke Cc: freebsd-questions@freebsd.org, openldap-software@openldap.org Subject: Re: ldap nithmare Message-Id: <20170614204651.2f81472e.freebsd@edvax.de> In-Reply-To: <594180C8.2040809@gmail.com> References: <594180C8.2040809@gmail.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay13.qsc.de with 7C9376834F6 X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.1250 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2017 18:47:02 -0000 On Wed, 14 Jun 2017 15:30:32 -0300, Friedrich Locke wrote: > The way my /etc/hosts files is configured changes the kind of error > response. Please, realize i am not using dns, only hosts file: > > When my /etc/hosts file has this line below: > > 139.59.138.203 etosha.my.domain etosha > > I get this: > > sioux@etosha$ ldapwhoami -Y GSSAPI > SASL/GSSAPI authentication started > ldap_sasl_interactive_bind_s: Other (e.g., implementation specific) > error (80) > additional info: SASL(-1): generic failure: GSSAPI Error: No > credentials were supplied, or the credentials were unavailable or > inaccessible. (unknown mech-code 0 for mech unknown) > > The kerberos ticket to ldap/etosha.my.domain is retrieved normally. > > But, when /etc/hosts changes to: > > 139.59.138.203 etosha etosha.my.domain > > Then: > > sioux@etosha$ ldapwhoami -Y GSSAPI > SASL/GSSAPI authentication started > ldap_sasl_interactive_bind_s: Local error (-2) > additional info: SASL(-1): generic failure: GSSAPI Error: > Miscellaneous failure (see text)known (Server (ldap/etosha@MY.DOMAIN) > unknown) > > The kerberos ticket to ldap/etosha.my.domain is not retrieved. > > > > Why am i given this results ? > May someone give me advices on these regards ? The format of /etc/hosts requires the entries to be in a specific order: address, official name, aliases. So if a program explicitely looks up the official name, the 2nd entry will be retrieved. See "man 5 hosts" for details. (If you didn't do it yet: Create an entry for localhost with 127.0.0.1 in /etc/hosts - many programs complain when this entry is missing.) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...