From owner-freebsd-hackers@freebsd.org Tue Nov 8 19:20:56 2016 Return-Path: Delivered-To: freebsd-hackers@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 29F89C37ED5 for ; Tue, 8 Nov 2016 19:20:56 +0000 (UTC) (envelope-from ap00@mail.ru) Received: from fallback4.mail.ru (fallback4.mail.ru [94.100.181.169]) by mx1.freebsd.org (Postfix) with ESMTP id DABE3FA6 for ; Tue, 8 Nov 2016 19:20:55 +0000 (UTC) (envelope-from ap00@mail.ru) Received: from smtp29.i.mail.ru (smtp29.i.mail.ru [94.100.177.89]) by fallback4.mail.ru (mPOP.Fallback_MX) with ESMTP id 4E2DB22F60FB for ; Tue, 8 Nov 2016 22:20:46 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Subject:To:Message-ID:From:Date; bh=+4O/PZE0Y/ZpG+ISyEdU0kyCT7RFXHAvFX2X/nQi0jQ=; b=I4EX1l3MbVfaBb9K6jIJKZ8zypzlM8xq4YPh2zO6mnYnQHUK/P2xMCYg4ANs4XFCkdEnw5K/yM4cXMyeTGJeyrRHKuvcCYssRflMpHoKZwu0plMu6D7Ws2B3VrUlsK4uZJgipS7goEZPgSCSpDsiFgVUjUl9t0KU+tp3AalijqM=; Received: from [91.190.121.202] (port=54333 helo=pstation) by smtp29.i.mail.ru with esmtpa (envelope-from ) id 1c4Bwj-0001gr-CD for freebsd-hackers@freebsd.org; Tue, 08 Nov 2016 22:20:37 +0300 Date: Tue, 8 Nov 2016 22:20:34 +0300 From: Anthony Pankov X-Priority: 3 (Normal) Message-ID: <26095845.20161108222034@mail.ru> To: freebsd-hackers@freebsd.org Subject: Re: nss_ldap seems to not work In-Reply-To: <4A97463C-6A15-4B79-A52C-9DBBF2A20862@bbnest.net> References: <1644757548.20161108110056@mail.ru> <4A97463C-6A15-4B79-A52C-9DBBF2A20862@bbnest.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Authentication-Results: smtp29.i.mail.ru; auth=pass smtp.auth=ap00@mail.ru smtp.mailfrom=ap00@mail.ru X-E1FCDC63: 47975F80F6E2B9B30E2709F7B692CA3BA2BA58D3D091CA1F X-E1FCDC64: 136FD621EEE4B2902005B47CA003263070B98512BA0E4D99685376221D61E053B9C4F2611CB3DCF4 X-Mailru-Sender: 0489DF6C38DA5EE561E8A477868835DB5F0E93C26E80CF8FCC19735011D983A7920795A225069ADACEE4813122F9A0DF X-Mras: OK X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Nov 2016 19:20:56 -0000 Hello, Alexander. I'm sorry, but this happen when engaging production server. I fix it by moving to nss-pam-ldap (nslcd) so I can't move back and give this option a chance. > Does it help if you add "nss_schema rfc2307=E2=80=9D to nss_ldap.config? >> On 8 =D0=BD=D0=BE=D1=8F=D0=B1. 2016 =D0=B3., at 17:00, Anthony Pankov vi= a freebsd-hackers wrote: >>=20 >> Greetings. >>=20 >> nss_ldap seems to not work correctly at least at FreeBSD 10.3. >>=20 >> Two configurations >> 1. FreeBSD 9.2 >> 2. FreeBSD 10.3 >> sharing nss_ldap settings and using the same LDAP tree (DIT) pro= duce >> different results. >>=20 >> At FreeBSD 10.3 nss_ldap can't enumerate supplementary user >> groups. >>=20 >> Example: >> FreeBSD 9.2: >> # id user1 >> ... groups=3Dbasegroup,gr1,gr2,gr3 >> FreeBSD 10.3: >> # id user1 >> ... groups=3Dbasegroup >>=20 >> The effect is inadequate result of initgroups() calling which lead to >> various side effects with permissions. >>=20 >> P.S. Interesting fact. At FreeBSD 10.3 pw utility produce correct >> result: >> #pw usershow user1 >> ... groups=3Dbasegroup,gr1,gr2,gr3 >>=20 >> --=20 >> Best regards, >> Anthony mailto:ap00@mail.ru >>=20 >> _______________________________________________ >> freebsd-hackers@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers >> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.or= g" > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org" --=20 =D0=A1 =D1=83=D0=B2=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC, Anthony mailto:ap00@mail.ru