[samba] wbinfo -u не показывает пользователей
Slava Dubrovskiy
slava на elan.com.ua
Пт Июл 2 19:25:19 MSD 2004
Alexander Bokovoy пишет:
>On Fri, Jul 02, 2004 at 03:27:53PM +0300, Slava Dubrovskiy wrote:
>
>
>>Alexander Bokovoy пишет:
>>
>>
>>
>>>On Thu, Jul 01, 2004 at 10:33:56AM +0300, Slava Dubrovskiy wrote:
>>>
>>>
>>>
>>>
>>>>Дальше добавляю пользователя через pdbedit -a
>>>>А при попытке получить список пользователей через wbinfo -u пишет
>>>>$ wbinfo -u
>>>>Error looking up domain users
>>>>При попытке получить список доменов:
>>>>$ wbinfo -m
>>>>BUILTIN
>>>>
>>>>
>>>>
>>>>
>>>Из-под какого пользователя спрашиваете? Что для него говорит 'id'?
>>>
>>>
>>>
>>>
>>>
>>Александр, подскажите, пожааалуйста, в чем проблема!!! Весь гугль
>>перерыл :-(
>>
>>
>Приведите более подробную отладочную информацию (log level = 5, winbindd
>запустить в интерактивном режиме -- winbindd -i)
>
>
Вот лог winbind с log level 10.
В 18:19 дал команду wbinfo -u
[2004/07/02 18:18:50, 1] nsswitch/winbindd.c:main(843)
winbindd version 3.0.3-ALT/alt1.1 started.
Copyright The Samba Team 2000-2004
[2004/07/02 18:18:50, 5] lib/debug.c:debug_dump_status(369)
INFO: Current debug levels:
all: True/10
tdb: False/0
printdrivers: False/0
lanman: False/0
smb: False/0
rpc_parse: False/0
rpc_srv: False/0
rpc_cli: False/0
passdb: False/0
sam: False/0
auth: False/0
winbind: False/0
vfs: False/0
idmap: False/0
quota: False/0
acls: False/0
doing parameter log file = /var/log/samba/log.%m
doing parameter max log size = 100
doing parameter time server = Yes
doing parameter add user script = /usr/sbin/useradd %u
doing parameter delete user script = /usr/sbin/userdel -r %u
doing parameter add group script = /usr/sbin/groupadd %g
doing parameter delete group script = /usr/sbin/groupdel %g
doing parameter add user to group script = /usr/sbin/usermod -G %g %u
doing parameter set primary group script = /usr/sbin/usermod -g '%g' '%u'
doing parameter add machine script = /usr/sbin/useradd -d /dev/null -g
machines -c 'Machine Account' -s /bin/false -M %u
doing parameter abort shutdown script = /sbin/shutdown -c
doing parameter logon script = %U.bat
doing parameter logon home =
doing parameter logon path =
doing parameter domain logons = Yes
doing parameter os level = 64
doing parameter preferred master = Yes
doing parameter domain master = Yes
doing parameter wins support = Yes
doing parameter idmap uid = 10000-20000
doing parameter idmap gid = 10000-20000
[2004/07/02 18:18:50, 2] param/loadparm.c:do_section(3392)
Processing section "[homes]"
doing parameter comment = Home Directory for '%u'
doing parameter read only = No
doing parameter browseable = No
[2004/07/02 18:18:50, 2] param/loadparm.c:do_section(3392)
Processing section "[netlogon]"
doing parameter comment = Network Logon Service
doing parameter path = /var/lib/samba/netlogon
doing parameter guest ok = Yes
doing parameter root preexec = /usr/bin/ntlogon.py -u %U -g %G -o %a
-d /var/lib/samba/netlogon/
doing parameter root postexec = rm -f /var/lib/samba/netlogon/%U.bat
[2004/07/02 18:18:50, 2] param/loadparm.c:do_section(3392)
Processing section "[C$]"
doing parameter comment = Administrative share for homes
doing parameter path = /home
doing parameter valid users = '@DOMAIN\\Domain Admins'
doing parameter admin users = '@DOMAIN\\Domain Admins'
doing parameter read only = No
[2004/07/02 18:18:50, 2] param/loadparm.c:do_section(3392)
Processing section "[printers]"
doing parameter comment = All Printers
doing parameter path = /var/spool/samba
doing parameter create mask = 0700
doing parameter guest ok = Yes
doing parameter printable = Yes
doing parameter browseable = No
[2004/07/02 18:18:50, 2] param/loadparm.c:do_section(3392)
Processing section "[print$]"
doing parameter path = /var/lib/samba/printers
doing parameter write list = @adm, root
[2004/07/02 18:18:50, 2] param/loadparm.c:do_section(3392)
Processing section "[CD-ROM]"
doing parameter comment = Компакт с сервера
doing parameter path = /mnt/cdrom/auto
doing parameter guest ok = Yes
[2004/07/02 18:18:50, 2] param/loadparm.c:do_section(3392)
Processing section "[Public]"
doing parameter comment = Каталог для разных программ
doing parameter path = /mnt/shares/users
doing parameter read only = No
doing parameter guest ok = Yes
[2004/07/02 18:18:50, 2] param/loadparm.c:do_section(3392)
Processing section "[Sklad]"
doing parameter comment = Каталог для склада
doing parameter path = /mnt/shares/sklad
doing parameter read only = No
doing parameter inherit permissions = Yes
[2004/07/02 18:18:50, 2] param/loadparm.c:do_section(3392)
Processing section "[Buhgalters]"
doing parameter comment = Каталог для бухгалтеров
doing parameter path = /mnt/shares/buhgalters
doing parameter read only = No
doing parameter inherit permissions = Yes
[2004/07/02 18:18:50, 2] param/loadparm.c:do_section(3392)
Processing section "[Finance]"
doing parameter comment = Каталог для финансистов
doing parameter path = /mnt/shares/finance
doing parameter read only = No
doing parameter inherit permissions = Yes
[2004/07/02 18:18:50, 2] param/loadparm.c:do_section(3392)
Processing section "[Logistiks]"
doing parameter comment = Каталог для логистиков
doing parameter path = /mnt/shares/logistiks
doing parameter read only = No
doing parameter inherit permissions = Yes
[2004/07/02 18:18:50, 2] param/loadparm.c:do_section(3392)
Processing section "[Menegers]"
doing parameter comment = Каталог для менеджеров
doing parameter path = /mnt/shares/menegers
doing parameter read only = No
doing parameter inherit permissions = Yes
[2004/07/02 18:18:50, 4] param/loadparm.c:lp_load(3909)
pm_process() returned Yes
[2004/07/02 18:18:50, 3] param/loadparm.c:lp_add_ipc(2359)
adding IPC service
[2004/07/02 18:18:50, 3] param/loadparm.c:lp_add_ipc(2359)
adding IPC service
[2004/07/02 18:18:50, 10] param/loadparm.c:set_server_role(3818)
set_server_role: role = ROLE_DOMAIN_PDC
[2004/07/02 18:18:50, 10] lib/ms_fnmatch.c:ms_fnmatch(240)
ms_fnmatch(eth0,eth0) -> 0
[2004/07/02 18:18:50, 2] lib/interface.c:add_interface(79)
added interface ip=192.168.1.1 bcast=192.168.1.255 nmask=255.255.255.0
[2004/07/02 18:18:50, 10] lib/ms_fnmatch.c:ms_fnmatch(240)
ms_fnmatch(eth0,eth1) -> -1
[2004/07/02 18:18:50, 10] lib/ms_fnmatch.c:ms_fnmatch(240)
ms_fnmatch(eth0,eth1) -> -1
[2004/07/02 18:18:50, 10] lib/ms_fnmatch.c:ms_fnmatch(240)
ms_fnmatch(eth0,lo) -> -1
[2004/07/02 18:18:50, 10] lib/ms_fnmatch.c:ms_fnmatch(240)
ms_fnmatch(eth0,ppp0) -> -1
[2004/07/02 18:18:50, 10] lib/ms_fnmatch.c:ms_fnmatch(240)
ms_fnmatch(lo,eth0) -> -1
[2004/07/02 18:18:50, 10] lib/ms_fnmatch.c:ms_fnmatch(240)
ms_fnmatch(lo,eth1) -> -1
[2004/07/02 18:18:50, 10] lib/ms_fnmatch.c:ms_fnmatch(240)
ms_fnmatch(lo,eth1) -> -1
[2004/07/02 18:18:50, 10] lib/ms_fnmatch.c:ms_fnmatch(240)
ms_fnmatch(lo,lo) -> 0
[2004/07/02 18:18:50, 2] lib/interface.c:add_interface(79)
added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0
[2004/07/02 18:18:50, 10] lib/ms_fnmatch.c:ms_fnmatch(240)
ms_fnmatch(lo,ppp0) -> -1
[2004/07/02 18:18:50, 5] lib/util.c:init_names(270)
Netbios name list:-
my_netbios_names[0]="SERVER"
[2004/07/02 18:18:50, 10] lib/ms_fnmatch.c:ms_fnmatch(240)
ms_fnmatch(eth0,eth0) -> 0
[2004/07/02 18:18:50, 2] lib/interface.c:add_interface(79)
added interface ip=192.168.1.1 bcast=192.168.1.255 nmask=255.255.255.0
[2004/07/02 18:18:50, 10] lib/ms_fnmatch.c:ms_fnmatch(240)
ms_fnmatch(eth0,eth1) -> -1
[2004/07/02 18:18:50, 10] lib/ms_fnmatch.c:ms_fnmatch(240)
ms_fnmatch(eth0,eth1) -> -1
[2004/07/02 18:18:50, 10] lib/ms_fnmatch.c:ms_fnmatch(240)
ms_fnmatch(eth0,lo) -> -1
[2004/07/02 18:18:50, 10] lib/ms_fnmatch.c:ms_fnmatch(240)
ms_fnmatch(eth0,ppp0) -> -1
[2004/07/02 18:18:50, 10] lib/ms_fnmatch.c:ms_fnmatch(240)
ms_fnmatch(lo,eth0) -> -1
[2004/07/02 18:18:50, 10] lib/ms_fnmatch.c:ms_fnmatch(240)
ms_fnmatch(lo,eth1) -> -1
[2004/07/02 18:18:50, 10] lib/ms_fnmatch.c:ms_fnmatch(240)
ms_fnmatch(lo,eth1) -> -1
[2004/07/02 18:18:50, 10] lib/ms_fnmatch.c:ms_fnmatch(240)
ms_fnmatch(lo,lo) -> 0
[2004/07/02 18:18:50, 2] lib/interface.c:add_interface(79)
added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0
[2004/07/02 18:18:50, 10] lib/ms_fnmatch.c:ms_fnmatch(240)
ms_fnmatch(lo,ppp0) -> -1
[2004/07/02 18:18:50, 5] lib/gencache.c:gencache_init(63)
Opening cache file at /var/lib/samba/gencache.tdb
[2004/07/02 18:18:50, 5] libsmb/namecache.c:namecache_enable(58)
namecache_enable: enabling netbios namecache, timeout 660 seconds
[2004/07/02 18:18:50, 5] sam/idmap.c:smb_register_idmap(89)
smb_register_idmap: Successfully added idmap backend 'ldap'
[2004/07/02 18:18:50, 5] sam/idmap.c:smb_register_idmap(89)
smb_register_idmap: Successfully added idmap backend 'tdb'
[2004/07/02 18:18:50, 10] sam/idmap_tdb.c:db_idmap_init(500)
db_idmap_init: Opening tdbfile /var/lib/samba/winbindd_idmap.tdb
[2004/07/02 18:18:50, 8] lib/util.c:fcntl_lock(1656)
fcntl_lock 10 13 0 1 1
[2004/07/02 18:18:50, 8] lib/util.c:fcntl_lock(1691)
fcntl_lock: Lock call successful
[2004/07/02 18:18:50, 2] lib/tallocmsg.c:register_msg_pool_usage(57)
Registered MSG_REQ_POOL_USAGE
[2004/07/02 18:18:50, 2] lib/dmallocmsg.c:register_dmalloc_msgs(71)
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
[2004/07/02 18:18:50, 3] nsswitch/winbindd_util.c:add_trusted_domain(173)
add_trusted_domain: PSV is an NT4 domain
[2004/07/02 18:18:50, 1] nsswitch/winbindd_util.c:add_trusted_domain(180)
Added domain PSV S-1-5-21-624722805-1764809894-951593318
[2004/07/02 18:18:50, 5] nsswitch/winbindd_cache.c:get_cache(131)
get_cache: Setting MS-RPC methods for domain PSV
[2004/07/02 18:18:50, 10] nsswitch/winbindd_cache.c:wcache_flush_cache(66)
wcache_flush_cache success
[2004/07/02 18:18:50, 10] nsswitch/winbindd_cache.c:alternate_name(1324)
alternate_name: [Cached] - doing backend query for info for domain PSV
[2004/07/02 18:18:50, 5] nsswitch/winbindd_util.c:add_trusted_domains(207)
scanning trusted domain list
[2004/07/02 18:18:50, 5] passdb/secrets.c:secrets_get_trusted_domains(602)
secrets_get_trusted_domains: looking for 1 domains, starting at index 0
[2004/07/02 18:18:50, 5] passdb/secrets.c:secrets_get_trusted_domains(682)
secrets_get_trusted_domains: got 0 domains
[2004/07/02 18:18:50, 3] nsswitch/winbindd_util.c:add_trusted_domain(173)
add_trusted_domain: BUILTIN is an NT4 domain
[2004/07/02 18:18:50, 1] nsswitch/winbindd_util.c:add_trusted_domain(180)
Added domain BUILTIN S-1-5-32
[2004/07/02 18:18:50, 5] nsswitch/winbindd_util.c:add_trusted_domains(207)
scanning trusted domain list
[2004/07/02 18:18:50, 5] passdb/secrets.c:secrets_get_trusted_domains(602)
secrets_get_trusted_domains: looking for 1 domains, starting at index 0
[2004/07/02 18:18:50, 5] passdb/secrets.c:secrets_get_trusted_domains(682)
secrets_get_trusted_domains: got 0 domains
[2004/07/02 18:18:50, 10] nsswitch/winbindd_util.c:open_winbindd_socket(673)
open_winbindd_socket: opened socket fd 15
[2004/07/02 18:18:50, 10]
nsswitch/winbindd_util.c:open_winbindd_priv_socket(685)
open_winbindd_priv_socket: opened socket fd 16
[2004/07/02 18:19:11, 6] nsswitch/winbindd.c:new_connection(343)
accepted socket 19
[2004/07/02 18:19:11, 10] nsswitch/winbindd.c:winbind_client_read(458)
client_read: read 1824 bytes. Need 0 more for a full request.
[2004/07/02 18:19:11, 10] nsswitch/winbindd.c:process_request(308)
process_request: request fn INTERFACE_VERSION
[2004/07/02 18:19:11, 3]
nsswitch/winbindd_misc.c:winbindd_interface_version(261)
[ 5896]: request interface version
[2004/07/02 18:19:11, 10] nsswitch/winbindd.c:client_write(512)
client_write: wrote 1300 bytes.
[2004/07/02 18:19:11, 10] nsswitch/winbindd.c:winbind_client_read(458)
client_read: read 1824 bytes. Need 0 more for a full request.
[2004/07/02 18:19:11, 10] nsswitch/winbindd.c:process_request(308)
process_request: request fn WINBINDD_PRIV_PIPE_DIR
[2004/07/02 18:19:11, 3]
nsswitch/winbindd_misc.c:winbindd_priv_pipe_dir(297)
[ 5896]: request location of privileged pipe
[2004/07/02 18:19:11, 10] nsswitch/winbindd.c:client_write(512)
client_write: wrote 1300 bytes.
[2004/07/02 18:19:11, 10] nsswitch/winbindd.c:client_write(557)
client_write: need to write 35 extra data bytes.
[2004/07/02 18:19:11, 10] nsswitch/winbindd.c:client_write(512)
client_write: wrote 35 bytes.
[2004/07/02 18:19:11, 10] nsswitch/winbindd.c:client_write(546)
client_write: client_write: complete response written.
[2004/07/02 18:19:11, 6] nsswitch/winbindd.c:new_connection(343)
accepted socket 20
[2004/07/02 18:19:11, 10] nsswitch/winbindd.c:winbind_client_read(458)
client_read: read 0 bytes. Need 1824 more for a full request.
[2004/07/02 18:19:11, 5] nsswitch/winbindd.c:winbind_client_read(465)
read failed on sock 19, pid 5896: EOF
[2004/07/02 18:19:11, 10] nsswitch/winbindd.c:winbind_client_read(458)
client_read: read 1824 bytes. Need 0 more for a full request.
[2004/07/02 18:19:11, 10] nsswitch/winbindd.c:process_request(308)
process_request: request fn LIST_USERS
[2004/07/02 18:19:11, 3] nsswitch/winbindd_user.c:winbindd_list_users(590)
[ 5896]: list users
[2004/07/02 18:19:11, 10] nsswitch/winbindd.c:client_write(512)
client_write: wrote 1300 bytes.
[2004/07/02 18:19:11, 10] nsswitch/winbindd.c:winbind_client_read(458)
client_read: read 0 bytes. Need 1824 more for a full request.
[2004/07/02 18:19:11, 5] nsswitch/winbindd.c:winbind_client_read(465)
read failed on sock 20, pid 5896: EOF
С уважением,
Дубровский Вячеслав.
Подробная информация о списке рассылки Samba