<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>21208</bug_id>
          
          <creation_ts>2009-08-24 18:42:03 +0400</creation_ts>
          <short_desc>openldap -&gt; openldap2.4 : система не может получить имя пользователя.</short_desc>
          <delta_ts>2010-10-19 19:52:48 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>openldap2.4</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>19564</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="ReMaks">admaks</reporter>
          <assigned_to name="Vitaly Kuznetsov">vitty</assigned_to>
          <cc>aen</cc>
    
    <cc>cas</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>97217</commentid>
    <comment_count>0</comment_count>
    <who name="ReMaks">admaks</who>
    <bug_when>2009-08-24 18:42:03 +0400</bug_when>
    <thetext>у меня был школьный сервер, который я обновил до сизифа. (если это
важно) 

обновление прошло, ничего не ругалось,
но пользователя из базы &quot;найти&quot; не может.


т.е. если залогиниться под пользователем - id получает, аутентификацию
проходит, а имя (и группу скорее всего тоже) пользователя - нет

# id max
uid=10000 gid=513 groups=4294967295,513

(что за группа 4294967295??? gid=513 = это от самбы еще осталось )

# getent passwd | grep max
max:x:10000:513:Maks Re:/home/maks:/bin/bash

# su - max
/usr/bin/id: cannot find name for user ID 10000
[I have no name!@srv ~]$

 $ whoami
whoami: невозможно определить имя пользователя для ID 10000


вот так &quot;работает&quot;....

с локальными пользователями - все ОК


&gt; rpm -qa|grep ldap что говорит?  

# rpm -qa|grep ldap|sort
alterator-ldap-groups-0.1-alt5.1
alterator-ldap-init-0.1-alt1.M50.1
alterator-ldap-users-0.5-alt3.2
alterator-openldap-0.3-alt5
alterator-openldap-functions-0.1-alt1
ldap-user-tools-0.5-alt1.2
libkrb5-ldap-1.6.3-alt7
libldap2.3-2.3.43-alt2.3
libldap2.4-2.4.16-alt4.4
mediawiki-ldap-1.2a-alt3
nss-ldapd-0.6.8-alt1
openldap2.4-2.4.16-alt4.4
openldap2.4-clients-2.4.16-alt4.4
openldap2.4-servers-2.4.16-alt4.4
pam_ldap-184-alt1
perl-ldap-0.39-alt1
php5-ldap-5.2.11.20090722-alt1
ruby-ldap-0.9.9-alt1
smbldap-tools-0.9.5-alt2



# cat /etc/pam_ldap.conf |grep ^[^#]
base dc=home,dc=domain,dc=ru
uri ldap://localhost
timelimit 5
bind_timelimit 5


# cat /etc/nss-ldapd.conf |grep ^[^#]
uri ldap://localhost
base dc=home,dc=domain,dc=ru


# cat /etc/sysconfig/ldap |grep ^[^#]
SLAPDURLLIST=&quot;&apos; ldap:/// ldaps:///&apos;&quot;
SLAPD_OPTIONS=&quot;-l DAEMON -s 6&quot;
SLURPD_OPTIONS=&apos;-t /&apos;

# cat /etc/sysconfig/nslcd
# uncomment this if you want debug
#OPTIONS=&quot;-d&quot;

# ls -la /etc/pam.d/
total 160
drwxr-xr-x   2 root root   4096 Aug 18 12:39 .
drwxr-xr-x 121 root root   8192 Aug 24 14:07 ..
-rw-r-----   1 root root    113 Aug 17 15:43 alterator-chkpwd
lrwxrwxrwx   1 root root     15 Mar 25 15:33 chage -&gt; chage-chfn-chsh
-rw-r-----   1 root shadow  164 Apr 23  2008 chage-chfn-chsh
lrwxrwxrwx   1 root root     15 Mar 25 15:33 chfn -&gt; chage-chfn-chsh
lrwxrwxrwx   1 root root     17 Mar 25 15:33 chpasswd -&gt; chpasswd-newusers
-rw-------   1 root root    188 Apr 23  2008 chpasswd-newusers
lrwxrwxrwx   1 root root     15 Mar 25 15:33 chsh -&gt; chage-chfn-chsh
-rw-------   1 root root    164 Apr  8 06:18 crond
-rw-r--r--   1 root root     58 Jun  4 13:24 cups
-rw-------   1 root root    134 Jun 10 23:48 dovecot
-rw-r--r--   1 root root    195 Mar 12  2008 gadmin-dhcpd
-rw-r--r--   1 root root    195 Mar 12  2008 gadmin-samba
-rw-r-----   1 root root    166 Mar  4 12:14 gparted
lrwxrwxrwx   1 root root     14 Mar 25 15:33 groupadd -&gt; user-group-mod
lrwxrwxrwx   1 root root     14 Mar 25 15:33 groupdel -&gt; user-group-mod
lrwxrwxrwx   1 root root     14 Mar 25 15:33 groupmod -&gt; user-group-mod
-rw-------   1 root root    361 Apr  8 00:32 login
lrwxrwxrwx   1 root root     17 Mar 25 15:33 newusers -&gt; chpasswd-newusers
-rw-r--r--   1 root root    127 Aug  7 15:20 other
-rw-r-----   1 root shadow  127 Apr 14  2007 passwd
-rw-r--r--   1 root root    147 May 27 15:38 polkit
-rw-r-----   1 root root    130 May 15 18:53 ppp
-rw-r--r--   1 root root    901 Jul 24 23:04 quagga
-rw-r--r--   1 root root    127 Apr  8 03:15 samba
-rw-r--r--   1 root root    233 Aug  2 22:30 screen
-rw-r-----   1 root auth     97 Aug  5 20:18 squid
-rw-------   1 root root    242 Apr 12 03:42 sshd
-rw-------   1 root root    590 Apr  8 00:32 su
-rw-------   1 root root    127 May  6 05:49 sudo
lrwxrwxrwx   1 root root     16 Aug  8 11:36 system-auth -&gt; system-auth-ldap
-rw-r--r--   1 root root    897 Aug  7 15:20 system-auth-krb5
-rw-r--r--   1 root root    897 Aug  7 15:20 system-auth-ldap
-rw-r--r--   1 root root    672 Aug  4 15:20 system-auth-ldap.old
-rw-r--r--   1 root root    362 Aug  7 15:20 system-auth-local
-rw-r--r--   1 root root    433 Aug  4 15:20 system-auth-local.old
-rw-r--r--   1 root root   1306 Aug  7 15:20 system-auth-multi
-rw-r--r--   1 root root    483 Aug  7 15:20 system-auth-pkcs11
lrwxrwxrwx   1 root root     31 Aug  8 11:36 system-auth-use_first_pass -&gt; system-auth-use_first_pass-ldap
-rw-r--r--   1 root root    470 Aug  7 15:20 system-auth-use_first_pass-krb5
-rw-r--r--   1 root root    470 Aug  7 15:20 system-auth-use_first_pass-ldap
-rw-r--r--   1 root root    183 Aug  7 15:20 system-auth-use_first_pass-local
-rw-r--r--   1 root root    687 Aug  7 15:20 system-auth-use_first_pass-multi
-rw-r--r--   1 root root    275 Aug  7 15:20 system-auth-use_first_pass-pkcs11
-rw-r--r--   1 root root    527 Apr  8 03:15 system-auth-winbind
-rw-------   1 root root    200 Apr 23  2008 user-group-mod
lrwxrwxrwx   1 root root     14 Mar 25 15:33 useradd -&gt; user-group-mod
lrwxrwxrwx   1 root root     14 Mar 25 15:33 userdel -&gt; user-group-mod
lrwxrwxrwx   1 root root     14 Mar 25 15:33 usermod -&gt; user-group-mod
-rw-r-----   1 root chkpwd   39 Nov 21  2006 vlock
-rw-r-----   1 root root    368 May 29 04:38 vsftpd</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97234</commentid>
    <comment_count>1</comment_count>
    <who name="barabashka">barabashka</who>
    <bug_when>2009-08-25 03:33:55 +0400</bug_when>
    <thetext>ls -al /etc/nss-ldapd.conf /etc/pam_ldap.conf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97235</commentid>
    <comment_count>2</comment_count>
    <who name="barabashka">barabashka</who>
    <bug_when>2009-08-25 03:39:31 +0400</bug_when>
    <thetext>ну и сразу, чтобы далеко не ходить
su - max
strace -ff -o out.str id и прислать этот самый out.str</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97236</commentid>
    <comment_count>3</comment_count>
    <who name="barabashka">barabashka</who>
    <bug_when>2009-08-25 03:41:44 +0400</bug_when>
    <thetext>Поставил, обновил, ошибку не ловлю.
pm -qa|grep ldap
pam_ldap-184-alt1
ldap-user-tools-0.5-alt1.2
alterator-ldap-groups-0.1-alt5.1
mediawiki-ldap-1.2a-alt3
alterator-ldap-users-0.5-alt3.2
openldap2.4-2.4.16-alt4.4
libkrb5-ldap-1.6.3-alt7
nss-ldapd-0.6.8-alt1
smbldap-tools-0.9.5-alt2
openldap2.4-servers-2.4.16-alt4.4
ruby-ldap-0.9.9-alt1
alterator-openldap-0.3-alt5
perl-ldap-0.39-alt1
libldap2.4-2.4.16-alt4.4
openldap2.4-clients-2.4.16-alt4.4
php5-ldap-5.2.11.20090722-alt1
libldap2.3-2.3.43-alt2.3
alterator-openldap-functions-0.1-alt1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97237</commentid>
    <comment_count>4</comment_count>
    <who name="ReMaks">admaks</who>
    <bug_when>2009-08-25 04:18:46 +0400</bug_when>
    <thetext>(В ответ на комментарий №1)
&gt; ls -al /etc/nss-ldapd.conf /etc/pam_ldap.conf

# ls -al /etc/nss-ldapd.conf /etc/pam_ldap.conf
-rw------- 1 _nslcd _nslcd 4433 Apr  2 01:45 /etc/nss-ldapd.conf
-rw-r--r-- 1 root   root   8692 Apr  2 01:45 /etc/pam_ldap.conf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97238</commentid>
    <comment_count>5</comment_count>
    <who name="ReMaks">admaks</who>
    <bug_when>2009-08-25 04:21:14 +0400</bug_when>
    <thetext>(В ответ на комментарий №2)
&gt; ну и сразу, чтобы далеко не ходить
&gt; su - max
&gt; strace -ff -o out.str id и прислать этот самый out.str

 cat out.str.26269
execve(&quot;/usr/bin/id&quot;, [&quot;id&quot;], [/* 33 vars */]) = 0
brk(0)                                  = 0x804f000
uname({sys=&quot;Linux&quot;, node=&quot;srv-hn-1.home.remaks.info&quot;, ...}) = 0
access(&quot;/etc/ld.so.preload&quot;, R_OK)      = -1 ENOENT (No such file or directory)
open(&quot;/etc/ld.so.cache&quot;, O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=42095, ...}) = 0
mmap2(NULL, 42095, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7ef2000
close(3)                                = 0
open(&quot;/lib/libc.so.6&quot;, O_RDONLY)        = 3
read(3, &quot;\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200l\1\0004\0\0\0&quot;..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1401024, ...}) = 0
mmap2(NULL, 1412104, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7d99000
fadvise64(3, 0, 1412104, POSIX_FADV_WILLNEED) = 0
mprotect(0xb7eeb000, 4096, PROT_NONE)   = 0
mmap2(0xb7eec000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x152) = 0xb7eec000
mmap2(0xb7eef000, 11272, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7eef000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f18000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7d98000
set_thread_area({entry_number:-1 -&gt; 6, base_addr:0xb7d986c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xb7eec000, 8192, PROT_READ)   = 0
mprotect(0x804d000, 4096, PROT_READ)    = 0
mprotect(0xb7f19000, 4096, PROT_READ)   = 0
munmap(0xb7ef2000, 42095)               = 0
brk(0)                                  = 0x804f000
brk(0x8070000)                          = 0x8070000
open(&quot;/usr/lib/locale/locale-archive&quot;, O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open(&quot;/usr/share/locale/locale.alias&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
open(&quot;/usr/lib/locale/ru_RU.UTF-8/LC_IDENTIFICATION&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
open(&quot;/usr/lib/locale/ru_RU.utf8/LC_IDENTIFICATION&quot;, O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=343, ...}) = 0
mmap2(NULL, 343, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7efc000
close(3)                                = 0
open(&quot;/usr/lib/gconv/gconv-modules.cache&quot;, O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=26048, ...}) = 0
mmap2(NULL, 26048, PROT_READ, MAP_SHARED, 3, 0) = 0xb7ef5000
close(3)                                = 0
open(&quot;/usr/lib/locale/ru_RU.UTF-8/LC_MEASUREMENT&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
open(&quot;/usr/lib/locale/ru_RU.utf8/LC_MEASUREMENT&quot;, O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=23, ...}) = 0
mmap2(NULL, 23, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7ef4000
close(3)                                = 0
open(&quot;/usr/lib/locale/ru_RU.UTF-8/LC_TELEPHONE&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
open(&quot;/usr/lib/locale/ru_RU.utf8/LC_TELEPHONE&quot;, O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=52, ...}) = 0
mmap2(NULL, 52, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7ef3000
close(3)                                = 0
open(&quot;/usr/lib/locale/ru_RU.UTF-8/LC_ADDRESS&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
open(&quot;/usr/lib/locale/ru_RU.utf8/LC_ADDRESS&quot;, O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=127, ...}) = 0
mmap2(NULL, 127, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7ef2000
close(3)                                = 0
open(&quot;/usr/lib/locale/ru_RU.UTF-8/LC_NAME&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
open(&quot;/usr/lib/locale/ru_RU.utf8/LC_NAME&quot;, O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=62, ...}) = 0
mmap2(NULL, 62, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7d97000
close(3)                                = 0
open(&quot;/usr/lib/locale/ru_RU.UTF-8/LC_PAPER&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
open(&quot;/usr/lib/locale/ru_RU.utf8/LC_PAPER&quot;, O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=34, ...}) = 0
mmap2(NULL, 34, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7d96000
close(3)                                = 0
open(&quot;/usr/lib/locale/ru_RU.UTF-8/LC_MESSAGES&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
open(&quot;/usr/lib/locale/ru_RU.utf8/LC_MESSAGES&quot;, O_RDONLY) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
close(3)                                = 0
open(&quot;/usr/lib/locale/ru_RU.utf8/LC_MESSAGES/SYS_LC_MESSAGES&quot;, O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=60, ...}) = 0
mmap2(NULL, 60, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7d95000
close(3)                                = 0
open(&quot;/usr/lib/locale/ru_RU.UTF-8/LC_MONETARY&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
open(&quot;/usr/lib/locale/ru_RU.utf8/LC_MONETARY&quot;, O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=302, ...}) = 0
mmap2(NULL, 302, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7d94000
close(3)                                = 0
open(&quot;/usr/lib/locale/ru_RU.UTF-8/LC_COLLATE&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
open(&quot;/usr/lib/locale/ru_RU.utf8/LC_COLLATE&quot;, O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=966938, ...}) = 0
mmap2(NULL, 966938, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7ca7000
close(3)                                = 0
open(&quot;/usr/lib/locale/ru_RU.UTF-8/LC_TIME&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
open(&quot;/usr/lib/locale/ru_RU.utf8/LC_TIME&quot;, O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2538, ...}) = 0
mmap2(NULL, 2538, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7ca6000
close(3)                                = 0
open(&quot;/usr/lib/locale/ru_RU.UTF-8/LC_NUMERIC&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
open(&quot;/usr/lib/locale/ru_RU.utf8/LC_NUMERIC&quot;, O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=54, ...}) = 0
mmap2(NULL, 54, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7ca5000
close(3)                                = 0
open(&quot;/usr/lib/locale/en_US.utf8/LC_CTYPE&quot;, O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=256316, ...}) = 0
mmap2(NULL, 256316, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7c66000
close(3)                                = 0
geteuid32()                             = 10000
getuid32()                              = 10000
getegid32()                             = 513
getgid32()                              = 513
open(&quot;/usr/share/locale/ru_RU.UTF-8/LC_MESSAGES/coreutils.mo&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
open(&quot;/usr/share/locale/ru_RU.utf8/LC_MESSAGES/coreutils.mo&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
open(&quot;/usr/share/locale/ru_RU/LC_MESSAGES/coreutils.mo&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
open(&quot;/usr/share/locale/ru.UTF-8/LC_MESSAGES/coreutils.mo&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
open(&quot;/usr/share/locale/ru.utf8/LC_MESSAGES/coreutils.mo&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
open(&quot;/usr/share/locale/ru/LC_MESSAGES/coreutils.mo&quot;, O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=283890, ...}) = 0
mmap2(NULL, 283890, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7c20000
close(3)                                = 0
fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 1), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7c1f000
socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
connect(3, {sa_family=AF_FILE, path=&quot;/var/run/nscd/socket&quot;}, 110) = -1 ENOENT (No such file or directory)
close(3)                                = 0
socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
connect(3, {sa_family=AF_FILE, path=&quot;/var/run/nscd/socket&quot;}, 110) = -1 ENOENT (No such file or directory)
close(3)                                = 0
open(&quot;/etc/nsswitch.conf&quot;, O_RDONLY)    = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1797, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7c1e000
read(3, &quot;#\n# Please refer to nsswitch.con&quot;..., 4096) = 1797
read(3, &quot;&quot;, 4096)                       = 0
close(3)                                = 0
munmap(0xb7c1e000, 4096)                = 0
open(&quot;/etc/ld.so.cache&quot;, O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=42095, ...}) = 0
mmap2(NULL, 42095, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7c14000
close(3)                                = 0
open(&quot;/lib/libnss_files.so.2&quot;, O_RDONLY) = 3
read(3, &quot;\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\32\0\0004\0\0\0&quot;..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=46640, ...}) = 0
mmap2(NULL, 49860, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7c07000
fadvise64(3, 0, 49860, POSIX_FADV_WILLNEED) = 0
mmap2(0xb7c12000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa) = 0xb7c12000
close(3)                                = 0
mprotect(0xb7c12000, 4096, PROT_READ)   = 0
munmap(0xb7c14000, 42095)               = 0
open(&quot;/etc/passwd&quot;, O_RDONLY|O_CLOEXEC) = 3
fcntl64(3, F_GETFD)                     = 0x1 (flags FD_CLOEXEC)
fstat64(3, {st_mode=S_IFREG|0644, st_size=3375, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7c1e000
read(3, &quot;root:x:0:0:System Administrator:&quot;..., 4096) = 3375
read(3, &quot;&quot;, 4096)                       = 0
close(3)                                = 0
munmap(0xb7c1e000, 4096)                = 0
open(&quot;/etc/ld.so.cache&quot;, O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=42095, ...}) = 0
mmap2(NULL, 42095, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7c14000
close(3)                                = 0
open(&quot;/lib/libnss_ldap.so.2&quot;, O_RDONLY) = 3
read(3, &quot;\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\22\0\0004\0\0\0&quot;..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=38260, ...}) = 0
mmap2(NULL, 41048, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7bfc000
fadvise64(3, 0, 41048, POSIX_FADV_WILLNEED) = 0
mmap2(0xb7c05000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8) = 0xb7c05000
close(3)                                = 0
mprotect(0xb7c05000, 4096, PROT_READ)   = 0
munmap(0xb7c14000, 42095)               = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 3
connect(3, {sa_family=AF_FILE, path=&quot;/var/run/nslcd/socket&quot;}, 110) = 0
gettimeofday({1251159597, 992895}, NULL) = 0
gettimeofday({1251159597, 993053}, NULL) = 0
select(1024, NULL, [3], NULL, {9, 999842}) = 1 (out [3], left {9, 999842})
send(3, &quot;\1\0\0\0\352\3\0\0\20&apos;\0\0&quot;, 12, MSG_NOSIGNAL) = 12
gettimeofday({1251159597, 995065}, NULL) = 0
gettimeofday({1251159597, 995227}, NULL) = 0
select(1024, [3], NULL, NULL, {59, 999838}) = 1 (in [3], left {59, 999838})
read(3, &quot;\1\0\0\0\352\3\0\0\3\0\0\0&quot;, 1024) = 12
gettimeofday({1251159597, 995966}, NULL) = 0
gettimeofday({1251159597, 996126}, NULL) = 0
gettimeofday({1251159597, 996282}, NULL) = 0
close(3)                                = 0
socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
connect(3, {sa_family=AF_FILE, path=&quot;/var/run/nscd/socket&quot;}, 110) = -1 ENOENT (No such file or directory)
close(3)                                = 0
socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
connect(3, {sa_family=AF_FILE, path=&quot;/var/run/nscd/socket&quot;}, 110) = -1 ENOENT (No such file or directory)
close(3)                                = 0
open(&quot;/etc/group&quot;, O_RDONLY|O_CLOEXEC)  = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1850, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7c1e000
read(3, &quot;root:x:0:\nbin:x:1:root\ndaemon:x:&quot;..., 4096) = 1850
read(3, &quot;&quot;, 4096)                       = 0
close(3)                                = 0
munmap(0xb7c1e000, 4096)                = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 3
connect(3, {sa_family=AF_FILE, path=&quot;/var/run/nslcd/socket&quot;}, 110) = 0
gettimeofday({1251159598, 1439}, NULL)  = 0
gettimeofday({1251159598, 1604}, NULL)  = 0
select(1024, NULL, [3], NULL, {9, 999835}) = 1 (out [3], left {9, 999835})
send(3, &quot;\1\0\0\0\212\23\0\0\1\2\0\0&quot;, 12, MSG_NOSIGNAL) = 12
gettimeofday({1251159598, 3527}, NULL)  = 0
gettimeofday({1251159598, 3693}, NULL)  = 0
select(1024, [3], NULL, NULL, {59, 999834}) = 1 (in [3], left {59, 999834})
read(3, &quot;\1\0\0\0\212\23\0\0\3\0\0\0&quot;, 1024) = 12
gettimeofday({1251159598, 4513}, NULL)  = 0
gettimeofday({1251159598, 4674}, NULL)  = 0
gettimeofday({1251159598, 4834}, NULL)  = 0
close(3)                                = 0
getgroups32(0, NULL)                    = 1
getgroups32(1, [513])                   = 1
open(&quot;/etc/group&quot;, O_RDONLY|O_CLOEXEC)  = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1850, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7c1e000
read(3, &quot;root:x:0:\nbin:x:1:root\ndaemon:x:&quot;..., 4096) = 1850
read(3, &quot;&quot;, 4096)                       = 0
close(3)                                = 0
munmap(0xb7c1e000, 4096)                = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 3
connect(3, {sa_family=AF_FILE, path=&quot;/var/run/nslcd/socket&quot;}, 110) = 0
gettimeofday({1251159598, 7865}, NULL)  = 0
gettimeofday({1251159598, 8024}, NULL)  = 0
select(1024, NULL, [3], NULL, {9, 999841}) = 1 (out [3], left {9, 999841})
send(3, &quot;\1\0\0\0\212\23\0\0\1\2\0\0&quot;, 12, MSG_NOSIGNAL) = 12
gettimeofday({1251159598, 9947}, NULL)  = 0
gettimeofday({1251159598, 10112}, NULL) = 0
select(1024, [3], NULL, NULL, {59, 999835}) = 1 (in [3], left {59, 999835})
read(3, &quot;\1\0\0\0\212\23\0\0\3\0\0\0&quot;, 1024) = 12
gettimeofday({1251159598, 10787}, NULL) = 0
gettimeofday({1251159598, 11256}, NULL) = 0
gettimeofday({1251159598, 11416}, NULL) = 0
close(3)                                = 0
write(1, &quot;uid=10000 gid=513 \320\263\321\200\321\203\320\277\320\277\321\213=5&quot;..., 35) = 35
close(1)                                = 0
munmap(0xb7c1f000, 4096)                = 0
close(2)                                = 0
exit_group(0)                           = ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97239</commentid>
    <comment_count>6</comment_count>
    <who name="barabashka">barabashka</who>
    <bug_when>2009-08-25 04:55:08 +0400</bug_when>
    <thetext>su - max
а потом strace -ff -o out.str id ?
А где сообщение?
/usr/bin/id: cannot find name for user ID 10000
[I have no name!@srv ~]$</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97251</commentid>
    <comment_count>7</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2009-08-25 12:28:27 +0400</bug_when>
    <thetext>(В ответ на комментарий №3)
&gt; Поставил, обновил, ошибку не ловлю.
Зайди на ham1 и полюбуйся разкуроченной базой пользователей.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97272</commentid>
    <comment_count>8</comment_count>
    <who name="ReMaks">admaks</who>
    <bug_when>2009-08-25 15:00:26 +0400</bug_when>
    <thetext>(В ответ на комментарий №6)
&gt; su - max
&gt; а потом strace -ff -o out.str id ?
&gt; А где сообщение?
&gt; /usr/bin/id: cannot find name for user ID 10000
&gt; [I have no name!@srv ~]$

write(1, &quot;uid=10000 gid=513
\320\263\321\200\321\203\320\277\320\277\321\213=5&quot;..., 35) = 35


не похоже?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97274</commentid>
    <comment_count>9</comment_count>
    <who name="barabashka">barabashka</who>
    <bug_when>2009-08-25 15:07:46 +0400</bug_when>
    <thetext>А теперь рассказывайте как вы обновлялись или ставились. И андрей и ReMaks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97275</commentid>
    <comment_count>10</comment_count>
    <who name="barabashka">barabashka</who>
    <bug_when>2009-08-25 15:10:34 +0400</bug_when>
    <thetext>Проблема в районе индексов. TestCase ldapsearch -x -b &apos;вашbasedn&apos; uidNumber=10000.
Решается остановкой slapd и запуском команды
slapindex -v -b &apos;вашbasedn&apos;

Проверить права на /var/lib/ldap/bases/*/* и /var/lib/ldap/dblogs/*/*

Запустить slapd, проверить багу.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97276</commentid>
    <comment_count>11</comment_count>
    <who name="barabashka">barabashka</who>
    <bug_when>2009-08-25 15:13:37 +0400</bug_when>
    <thetext>Trace ошибки.
getpwuid(uid_t uid) возращает username, функция переопределена в nss_ldap. Поймать фильтр можно, если в /etc/nss_ldap.conf добавить debug 1. С nss-ldapd не проверял.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97281</commentid>
    <comment_count>12</comment_count>
    <who name="ReMaks">admaks</who>
    <bug_when>2009-08-25 15:35:18 +0400</bug_when>
    <thetext>(В ответ на комментарий №9)
&gt; А теперь рассказывайте как вы обновлялись или ставились. И андрей и ReMaks

жил был школьный сервер. Настроил из инсталятора. все было хорошо
перевел на сизиф.
все работало (с) /в лдап-то/

потом в сизиф приехал openldap24.
обновил. нигде ничего не сругалось...

и вот случайно заметил что пользователя из лдап не забирают корректно...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97282</commentid>
    <comment_count>13</comment_count>
    <who name="ReMaks">admaks</who>
    <bug_when>2009-08-25 15:43:31 +0400</bug_when>
    <thetext>(В ответ на комментарий №10)
&gt; Проблема в районе индексов. TestCase ldapsearch -x -b &apos;вашbasedn&apos;
&gt; uidNumber=10000.
&gt; Решается остановкой slapd и запуском команды
&gt; slapindex -v -b &apos;вашbasedn&apos;
&gt; 
&gt; Проверить права на /var/lib/ldap/bases/*/* и /var/lib/ldap/dblogs/*/*
&gt; 
&gt; Запустить slapd, проверить багу.



ай шайтан.

сделал (slapindex -v -b &apos;вашbasedn&apos;)
и работает...

#id max
uid=10000(max) gid=513(Domain Users) groups=513(Domain Users)


что это было?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97284</commentid>
    <comment_count>14</comment_count>
    <who name="ReMaks">admaks</who>
    <bug_when>2009-08-25 15:49:41 +0400</bug_when>
    <thetext>(В ответ на комментарий №10)
&gt; Проблема в районе индексов. TestCase ldapsearch -x -b &apos;вашbasedn&apos;
&gt; uidNumber=10000.

тест кейс
до ничего не позвращял

после slapindex - все ок.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97731</commentid>
    <comment_count>15</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2009-08-31 18:34:02 +0400</bug_when>
    <thetext>Обходной способ есть, в новых версиях не воспроизводится. Прошу сделать установку гладкой.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99100</commentid>
    <comment_count>16</comment_count>
    <who name="ReMaks">admaks</who>
    <bug_when>2009-09-15 00:31:22 +0400</bug_when>
    <thetext>(В ответ на комментарий №15)
&gt; Обходной способ есть, в новых версиях не воспроизводится. Прошу сделать
&gt; установку гладкой.

т.к. перепроверить не могу - закройте багу потом, ок?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114009</commentid>
    <comment_count>17</comment_count>
    <who name="Vitaly Kuznetsov">vitty</who>
    <bug_when>2010-10-19 19:52:48 +0400</bug_when>
    <thetext>закрываю за давностью истории</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>