[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#409342: marked as done (missing "DNS" in nsswitch.conf brakes libnss-ldap service)



Your message dated Wed, 16 Nov 2022 01:20:11 +0000
with message-id <E1ov763-0016tp-7a@fasolo.debian.org>
and subject line Bug#1024140: Removed package(s) from unstable
has caused the Debian Bug report #409342,
regarding missing "DNS" in nsswitch.conf brakes libnss-ldap service
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
409342: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=409342
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: libnss-ldap
Version: 251-7.1

A missing call to service DNS in /etc/nsswitch.conf makes the nsswitch
system unuseable without error message, even if DNS is nor really needed.

My /etc/libnss-ldap.conf is
----cut----
uri ldaps://10.76.195.82 ldaps://10.76.192.88
tls_checkpeer yes
tls_cacert /etc/ssl/certs/cacert.pem
ldap_version 3

bind_policy hard
nss_reconnect_maxconntries 2
nss_reconnect_sleeptime 2
nss_reconnect_maxsleeptime 10
nss_reconnect_tries 2

base dc=ibw,dc=forst,dc=uni-goettingen,dc=de
pam_filter objectclass=posixAccount
pam_min_uid 10000
nss_base_passwd	ou=Leute,dc=ibw,dc=forst,dc=uni-goettingen,dc=de?one
nss_base_shadow ou=Leute,dc=ibw,dc=forst,dc=uni-goettingen,dc=de?one
nss_base_passwd ou=HostIds,dc=ibw,dc=forst,dc=uni-goettingen,dc=de?one
nss_base_group	ou=Gruppen,dc=ibw,dc=forst,dc=uni-goettingen,dc=de?one
nss_base_hosts ou=HostIds,dc=ibw,dc=forst,dc=uni-goettingen,dc=de?one
---cut---

My /etc/nsswitch.conf is
---cut---
passwd:         files  ldap
group:          files  ldap
shadow:         files  ldap

hosts:		files ldap
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis
---cut---

If I call 'getent passwd' I get only the contents of the local
/etc/passwd file and the process __hangs indefinitely__. There is no
error message in syslog.

I would expect an error message at least. A configuration without DNS
seems not unreaonable to me. In fact, the present server is a printer
server. Nobody would need connections to the worldwide net from
here. LDAP should cope with the local IP addresses and the Addresses
of the LDAP servers are specified in numerical form anyway.

I found a workaround, after _long_ experimentation:

A line in /etc/nsswitch.conf reading

   hosts: files dns ldap

resolves the problem.

Even

   hosts: files

works.

So it is LDAP that needs DNS even with numerical URIs.


I am using debian 4.0,
           kernel 2.6.18-3-486,
           libc-2.3.6.so,
           libldap-2.3.so.0.2.18, libldap_r.so.2.0.130, libldap.so.2.0.130

--
-------------------------------------------------------------------
Juergen Prenzel
Institut fuer Bodenkunde und Waldernaehrung
Buesgenweg 2
D-37077 Goettingen
Tel.: +49/551/39-12104  Fax: +49/551/39-3310  email: jprenze@gwdg.de
-------------------------------------------------------------------



--- End Message ---
--- Begin Message ---
Version: 265-6+rm

Dear submitter,

as the package libnss-ldap has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1024140

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)

--- End Message ---

Reply to: