Bug#470918: sudo-ldap: uses wrong hostname

2008-04-03 Thread Bdale Garbee
On Fri, 2008-03-14 at 20:38 +0100, Lluis wrote: 127.0.0.1 localhost 127.0.0.1 hostname.domain hostname I'm not accustomed to seeing two lines for the same IP address in /etc/hosts, I'm not sure that's a good idea... it's hard to decide what behavior should really rbe expected in

Bug#470918: sudo-ldap: uses wrong hostname

2008-04-03 Thread Justin Pryzby
On Thu, Apr 03, 2008 at 12:11:17PM -0600, Bdale Garbee wrote: On Fri, 2008-03-14 at 20:38 +0100, Lluis wrote: 127.0.0.1 localhost 127.0.0.1 hostname.domain hostname I'm not accustomed to seeing two lines for the same IP address in /etc/hosts, I'm not sure that's a good

Bug#470918: sudo-ldap: uses wrong hostname

2008-04-03 Thread Lluis
El Thu, Apr 03, 2008 at 12:11:17PM -0600, Bdale Garbee ens deleit� amb les seg�ents paraules: On Fri, 2008-03-14 at 20:38 +0100, Lluis wrote: 127.0.0.1 localhost 127.0.0.1 hostname.domain hostname I'm not accustomed to seeing two lines for the same IP address in

Bug#470918: sudo-ldap: uses wrong hostname

2008-03-14 Thread Lluis
Package: sudo-ldap Version: 1.6.9p12-1 Severity: important I've detected that sudo-ldap uses 'localhost' for looking up the 'sudoHost' entries when the hostname is present in the lookpback (127.0.0.1) line of /etc/hosts. Symptoms: - 'sudoHost' check fails - 'sudo -p %h' shows 'localhost'

Bug#470918: sudo-ldap: uses wrong hostname

2008-03-14 Thread Justin Pryzby
On Fri, Mar 14, 2008 at 03:38:28PM +0100, Lluis wrote: I've detected that sudo-ldap uses 'localhost' for looking up the 'sudoHost' entries when the hostname is present in the lookpback (127.0.0.1) line of /etc/hosts. Symptoms: - 'sudoHost' check fails - 'sudo -p %h' shows

Bug#470918: sudo-ldap: uses wrong hostname

2008-03-14 Thread Lluis
I already tried that before sending the bug. The output it's exactly the same before and after changing the /etc/hosts file === /etc/hosts === 127.0.0.1 localhost 127.0.0.1 hostname.domain hostname # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost