samba4 wbinfo bug? and maybe an idea to fix it
Thorsten Trautwein-Veit
thorsten.trautwein-veit at schulergroup.com
Wed Nov 19 10:16:20 GMT 2008
Hi all,
to test filepermissions i set up an samba4 DC and joined an samba4
meberserver. To get name and group resolving working on the memberserver
i decided to make nss working.
on both servers wbinfo were not working so i debuged it ...
a backtrace showed up :
----------------------------------------
#0 winbind_named_pipe_sock (dir=0x807bece "/tmp/.winbindd") at
nsswitch/wb_common.c:178
#1 0x0805478d in winbind_open_pipe_sock (recursing=0, need_priv=0) at
nsswitch/wb_common.c:319
#2 0x080548f9 in winbind_write_sock (buffer=0xbfd97414, count=2096,
recursing=0, need_priv=0) at nsswitch/wb_common.c:367
#3 0x08054e03 in winbindd_send_request (req_type=17, need_priv=0,
request=0xbfd97414) at nsswitch/wb_common.c:574
#4 0x08054f73 in winbindd_request_response (req_type=17,
request=0xbfd97414, response=0xbfd9676c) at nsswitch/wb_common.c:634
#5 0x08052c4e in print_domain_users (domain=0x0) at nsswitch/wbinfo.c:916
#6 0x08053969 in main (argc=2, argv=0xbfd980a4, envp=0xbfd980b0) at
nsswitch/wbinfo.c:1084
----------------------------------------
wb_common.c thinks the pipe to winbind is in /tmp/.winbindd which is not
true the pipe is in /usr/local/samba/var/run/winbindd
i did configure the following way :
./configure --prefix=/usr/local/samba-4 --enable-debug
--enable-developer --enable-automatic-dependencies --enable-gnutls=no
-> no socket_warper support
export WINBINDD_SOCKET_DIR=/usr/local/samba/var/run/winbindd
get wbinfo back to live.
Note :
I used --prefix=/usr/local/samba-4 but created an symbolic link to
/usr/local/samba
conclusion :
winbind_struct_protocol.h should be updated.
the
#ifndef WINBINDD_SOCKET_DIR
#define WINBINDD_SOCKET_DIR "/tmp/.winbindd" /* Name of PF_UNIX dir */
#endif
should be something like :
#ifndef WINBINDD_SOCKET_DIR
#define WINBINDD_SOCKET_DIR <--prefix>/var/run/winbindd
#endif
Please correct me if i am wrong. I hope i do not get annoying with my
reports and make to much noise on samba-technical.
Thanks all,
Thorsten
--
Freundliche Grüße / Best regards
Thorsten Trautwein-Veit
Dipl.-Ing. (FH)
Schuler Cartec GmbH & Co. KG
EDV
Bahnhofstraße 41
73033 Göppingen
URL: http://www.schulergroup.com
E-Mail-Pflichtangaben (gemäß EHUG): http://pflichtangaben.schulergroup.com
More information about the samba-technical
mailing list