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

Bug#500479: marked as done ('id' hangs forever: libnss-ldap getting whole tree instead of ldap search for group.)



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 #500479,
regarding 'id' hangs forever: libnss-ldap getting whole tree instead of ldap search for group.
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.)


-- 
500479: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=500479
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: libnss-ldap
Version: 261-2
Severity: important


'id' will hang forever when if not setting sizelimit 2048 in the ldap
server config.

This happens even if ldapserver2 has a bigger 'sizelimit' parameter
which would not block 'id'.

For the reason behind this behaviour I found that libnss-ldap asked the
ldap server for the whole bunch of passwd and group entries instead of
doing a smart ldap search.

As our ldap userbase has more than 512 entries, I had to increas the
  sizelimit Parameter on the server as a workaround.

Via tcpdump I found that the client sent a
  LDAPMessage searchRequest(2) "ou=user,dc=in-berlin,dc=de" wholeSubtree
instead of doing a search.
I expected it doing a search like

ldapsearch ... 'uid=..' and
ldapsearch ... '(&(objectClass=posixGroup)(memberUid=...))' gidNumber,gidName for group memberships.

Please correct me if I'm wrong, but I cannot expect that getting the
whole table would be a reasonable approach for a larger user database.

I verified that the used ldap server is working.

from /etc/nsswitch.conf:
passwd:         files ldap
group:          files ldap
shadow:         files ldap

regards
Olaf

The contents of
-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.18-6-xen-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages libnss-ldap depends on:
ii  debconf [debconf-2.0]    1.5.22          Debian configuration management sy
ii  libc6                    2.7-10          GNU C Library: Shared libraries
ii  libcomerr2               1.40.8-2        common error description library
ii  libkrb53                 1.6.dfsg.3-2    MIT Kerberos runtime libraries
ii  libldap-2.4-2            2.4.7-6.3+b1    OpenLDAP libraries
ii  libsasl2-2               2.1.22.dfsg1-20 Cyrus SASL - authentication abstra

Versions of packages libnss-ldap recommends:
ii  libpam-ldap                   184-4      Pluggable Authentication Module al
ii  nscd                          2.7-12     GNU C Library: Name Service Cache 

libnss-ldap suggests no packages.

-- debconf information:
* libnss-ldap/dblogin: false
* libnss-ldap/override: true
* shared/ldapns/base-dn: ou=user,dc=in-berlin,dc=de
* libnss-ldap/rootbinddn: cn=manager,dc=example,dc=net
* shared/ldapns/ldap_version: 3
  libnss-ldap/binddn: cn=proxyuser,dc=example,dc=net
* shared/ldapns/ldap-server: ldap://ldapserver1/ ldap://ldapserver2/
* libnss-ldap/nsswitch:
* libnss-ldap/confperm: false
* libnss-ldap/dbrootlogin: false



--- 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: