[samba] wbinfo -u не показывает пользователей

Slava Dubrovskiy slava на elan.com.ua
Чт Июл 1 11:33:56 MSD 2004


Здравствуйте!

Подскажите пожалуйста, в чем может быть проблема. Система сизиф. Есть 
PDC на samba-3.0.3-alt1.1 с вот таким конфигом:

[global]
        dos charset = CP866
        unix charset = KOI8-R
        display charset = KOI8-R
        workgroup = PSV
        server string = Samba server on %h (v. %v)
        interfaces = eth0, lo
        bind interfaces only = Yes
        passdb backend = tdbsam
        pam password change = Yes
        passwd program = /usr/bin/passwd %u
        passwd chat = *New*UNIX*password* %n\n 
*ReType*new*UNIX*password* %n\n 
*passwd:*all*authentication*tokens*updated*successfully*
        unix password sync = Yes
        log level = 3
        log file = /var/log/samba/log.%m
        max log size = 100
        time server = Yes
        add user script = /usr/sbin/useradd %u
        delete user script = /usr/sbin/userdel -r %u
        add group script = /usr/sbin/groupadd %g
        delete group script = /usr/sbin/groupdel %g
        add user to group script = /usr/sbin/usermod -G %g %u
        set primary group script = /usr/sbin/usermod -g '%g' '%u'
        add machine script = /usr/sbin/useradd -d /dev/null -g machines 
-c 'Machine Account' -s /bin/false -M %u
        abort shutdown script = /sbin/shutdown -c
        logon script = %U.bat
        logon home = \\%N\%U\profile
        domain logons = Yes
        os level = 64
        preferred master = Yes
        domain master = Yes
        wins support = Yes
        ldap ssl = no
        socket address = 192.168.1.0
        idmap uid = 10000-20000
        idmap gid = 10000-20000
        template shell = /bin/bash
        winbind use default domain = Yes
        admin users = slava
        hosts allow = 192.168.1., 127.

# net groupmap list
System Operators (S-1-5-32-549) -> daemon
Replicators (S-1-5-32-552) -> kmem
Guests (S-1-5-32-546) -> nobody
Buhgalters (S-1-5-21-1880606302-4127658398-287049863-2005) -> buhgalters
Sklad (S-1-5-21-1880606302-4127658398-287049863-2111) -> sklad
Logistiks (S-1-5-21-1880606302-4127658398-287049863-2113) -> logistiks
Power Users (S-1-5-32-547) -> ntadmin
Menegers (S-1-5-21-1880606302-4127658398-287049863-2107) -> menegers
Print Operators (S-1-5-32-550) -> lp
Administrators (S-1-5-32-544) -> sys
Finance (S-1-5-21-1880606302-4127658398-287049863-2109) -> finance
Account Operators (S-1-5-32-548) -> wheel
Domain Admins (S-1-5-21-1880606302-4127658398-287049863-512) -> root
Domain Guests (S-1-5-21-1880606302-4127658398-287049863-514) -> nobody
Backup Operators (S-1-5-32-551) -> bin
Users (S-1-5-32-545) -> public
Domain Users (S-1-5-21-1880606302-4127658398-287049863-513) -> users

/etc/nsswitch.conf
passwd:     files winbind
group:      files winbind
shadow:     tcb files nisplus nis
hosts:      files dns wins
ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files
bootparams: nisplus [NOTFOUND=return] files
netgroup:   nisplus
publickey:  nisplus
automount:  files nisplus
aliases:    files nisplus

Дальше добавляю пользователя через pdbedit -a
А при попытке получить список пользователей через wbinfo -u пишет
$ wbinfo -u
Error looking up domain users
При попытке получить список доменов:
$ wbinfo -m
BUILTIN

Подчкажите, почему не показывает список пользователей wbinfo -u?

Вот лог запуска winbind:
[2004/07/01 10:28:24, 1] nsswitch/winbindd.c:main(843)
  winbindd version 3.0.3-ALT/alt1.1 started.
  Copyright The Samba Team 2000-2004
[2004/07/01 10:28:24, 3] nsswitch/winbindd_util.c:add_trusted_domain(173)
  add_trusted_domain: PSV is an NT4  domain
[2004/07/01 10:28:24, 1] nsswitch/winbindd_util.c:add_trusted_domain(180)
  Added domain PSV  S-1-5-21-1880606302-4127658398-287049863
[2004/07/01 10:28:24, 5] nsswitch/winbindd_cache.c:get_cache(131)
  get_cache: Setting MS-RPC methods for domain PSV
[2004/07/01 10:28:24, 10] nsswitch/winbindd_cache.c:wcache_flush_cache(66)
  wcache_flush_cache success
[2004/07/01 10:28:24, 10] nsswitch/winbindd_cache.c:alternate_name(1324)
  alternate_name: [Cached] - doing backend query for info for domain PSV
[2004/07/01 10:28:24, 5] nsswitch/winbindd_util.c:add_trusted_domains(207)
  scanning trusted domain list
[2004/07/01 10:28:24, 3] nsswitch/winbindd_util.c:add_trusted_domain(173)
  add_trusted_domain: BUILTIN is an NT4  domain
[2004/07/01 10:28:24, 1] nsswitch/winbindd_util.c:add_trusted_domain(180)
  Added domain BUILTIN  S-1-5-32
[2004/07/01 10:28:24, 5] nsswitch/winbindd_util.c:add_trusted_domains(207)
  scanning trusted domain list
[2004/07/01 10:28:24, 10] nsswitch/winbindd_util.c:open_winbindd_socket(673)
  open_winbindd_socket: opened socket fd 15
[2004/07/01 10:28:24, 10] 
nsswitch/winbindd_util.c:open_winbindd_priv_socket(685)
  open_winbindd_priv_socket: opened socket fd 16
[2004/07/01 10:28:33, 6] nsswitch/winbindd.c:new_connection(343)
  accepted socket 19
[2004/07/01 10:28:33, 10] nsswitch/winbindd.c:winbind_client_read(458)
  client_read: read 1824 bytes. Need 0 more for a full request.
[2004/07/01 10:28:33, 10] nsswitch/winbindd.c:process_request(308)
  process_request: request fn INTERFACE_VERSION
[2004/07/01 10:28:33, 3] 
nsswitch/winbindd_misc.c:winbindd_interface_version(261)
  [25549]: request interface version
[2004/07/01 10:28:33, 10] nsswitch/winbindd.c:client_write(512)
  client_write: wrote 1300 bytes.
[2004/07/01 10:28:33, 10] nsswitch/winbindd.c:winbind_client_read(458)
  client_read: read 1824 bytes. Need 0 more for a full request.
[2004/07/01 10:28:33, 10] nsswitch/winbindd.c:process_request(308)
  process_request: request fn WINBINDD_PRIV_PIPE_DIR
[2004/07/01 10:28:33, 3] 
nsswitch/winbindd_misc.c:winbindd_priv_pipe_dir(297)
  [25549]: request location of privileged pipe
[2004/07/01 10:28:33, 10] nsswitch/winbindd.c:client_write(512)
  client_write: wrote 1300 bytes.
[2004/07/01 10:28:33, 10] nsswitch/winbindd.c:client_write(557)
  client_write: need to write 35 extra data bytes.
[2004/07/01 10:28:33, 10] nsswitch/winbindd.c:client_write(512)
  client_write: wrote 35 bytes.
[2004/07/01 10:28:33, 10] nsswitch/winbindd.c:client_write(546)
  client_write: client_write: complete response written.
[2004/07/01 10:28:33, 6] nsswitch/winbindd.c:new_connection(343)
  accepted socket 20
[2004/07/01 10:28:33, 10] nsswitch/winbindd.c:winbind_client_read(458)
  client_read: read 0 bytes. Need 1824 more for a full request.
[2004/07/01 10:28:33, 5] nsswitch/winbindd.c:winbind_client_read(465)
  read failed on sock 19, pid 25549: EOF
[2004/07/01 10:28:33, 10] nsswitch/winbindd.c:winbind_client_read(458)
  client_read: read 1824 bytes. Need 0 more for a full request.
[2004/07/01 10:28:33, 10] nsswitch/winbindd.c:process_request(308)
  process_request: request fn GETGROUPS
[2004/07/01 10:28:33, 3] nsswitch/winbindd_group.c:winbindd_getgroups(1000)
  [25549]: getgroups oleg_z
[2004/07/01 10:28:33, 10] nsswitch/winbindd_passdb.c:name_to_sid(238)
  Finding name oleg_z
[2004/07/01 10:28:33, 1] nsswitch/winbindd_group.c:winbindd_getgroups(1029)
  user 'oleg_z' does not exist
[2004/07/01 10:28:33, 10] nsswitch/winbindd.c:client_write(512)
  client_write: wrote 1300 bytes.
[2004/07/01 10:28:33, 10] nsswitch/winbindd.c:winbind_client_read(458)
  client_read: read 1824 bytes. Need 0 more for a full request.
[2004/07/01 10:28:33, 10] nsswitch/winbindd.c:process_request(308)
  process_request: request fn GETPWNAM
[2004/07/01 10:28:33, 3] nsswitch/winbindd_user.c:winbindd_getpwnam(122)
  [25549]: getpwnam imappublic
[2004/07/01 10:28:33, 5] nsswitch/winbindd_acct.c:wb_getpwnam(393)
  wb_getpwnam: Did not find user (imappublic)
[2004/07/01 10:28:33, 5] nsswitch/winbindd_user.c:winbindd_getpwnam(134)
  winbindd_getpwnam: lookup for PSV\imappublic failed
[2004/07/01 10:28:33, 10] nsswitch/winbindd.c:client_write(512)
  client_write: wrote 1300 bytes.
[2004/07/01 10:28:33, 10] nsswitch/winbindd.c:winbind_client_read(458)
  client_read: read 1824 bytes. Need 0 more for a full request.
[2004/07/01 10:28:33, 10] nsswitch/winbindd.c:process_request(308)
  process_request: request fn GETPWNAM
[2004/07/01 10:28:33, 3] nsswitch/winbindd_user.c:winbindd_getpwnam(122)
  [25549]: getpwnam imapshared
[2004/07/01 10:28:33, 5] nsswitch/winbindd_acct.c:wb_getpwnam(393)
  wb_getpwnam: Did not find user (imapshared)
[2004/07/01 10:28:33, 5] nsswitch/winbindd_user.c:winbindd_getpwnam(134)
  winbindd_getpwnam: lookup for PSV\imapshared failed
[2004/07/01 10:28:33, 10] nsswitch/winbindd.c:client_write(512)
  client_write: wrote 1300 bytes.
[2004/07/01 10:28:33, 10] nsswitch/winbindd.c:winbind_client_read(458)
  client_read: read 0 bytes. Need 1824 more for a full request.
[2004/07/01 10:28:33, 5] nsswitch/winbindd.c:winbind_client_read(465)
  read failed on sock 20, pid 25549: EOF
[2004/07/01 10:28:38, 6] nsswitch/winbindd.c:new_connection(343)
  accepted socket 20
[2004/07/01 10:28:38, 10] nsswitch/winbindd.c:winbind_client_read(458)
  client_read: read 1824 bytes. Need 0 more for a full request.
[2004/07/01 10:28:38, 10] nsswitch/winbindd.c:process_request(308)
  process_request: request fn INTERFACE_VERSION
[2004/07/01 10:28:38, 3] 
nsswitch/winbindd_misc.c:winbindd_interface_version(261)
  [25556]: request interface version
[2004/07/01 10:28:38, 10] nsswitch/winbindd.c:client_write(512)
  client_write: wrote 1300 bytes.
[2004/07/01 10:28:38, 10] nsswitch/winbindd.c:winbind_client_read(458)
  client_read: read 1824 bytes. Need 0 more for a full request.
[2004/07/01 10:28:38, 10] nsswitch/winbindd.c:process_request(308)
[2004/07/01 10:28:38, 3] 
nsswitch/winbindd_misc.c:winbindd_priv_pipe_dir(297)
  [25556]: request location of privileged pipe
[2004/07/01 10:28:38, 10] nsswitch/winbindd.c:client_write(512)
  client_write: wrote 1300 bytes.
[2004/07/01 10:28:38, 10] nsswitch/winbindd.c:client_write(557)
  client_write: need to write 35 extra data bytes.
[2004/07/01 10:28:38, 10] nsswitch/winbindd.c:client_write(512)
  client_write: wrote 35 bytes.
[2004/07/01 10:28:38, 10] nsswitch/winbindd.c:client_write(546)
  client_write: client_write: complete response written.
[2004/07/01 10:28:38, 6] nsswitch/winbindd.c:new_connection(343)
  accepted socket 21
[2004/07/01 10:28:38, 10] nsswitch/winbindd.c:winbind_client_read(458)
  client_read: read 0 bytes. Need 1824 more for a full request.
[2004/07/01 10:28:38, 5] nsswitch/winbindd.c:winbind_client_read(465)
  read failed on sock 20, pid 25556: EOF
[2004/07/01 10:28:38, 10] nsswitch/winbindd.c:winbind_client_read(458)
  client_read: read 1824 bytes. Need 0 more for a full request.
[2004/07/01 10:28:38, 10] nsswitch/winbindd.c:process_request(308)

===skip===

С уважением,
Дубровский Вячеслав


Подробная информация о списке рассылки Samba