Bug 35394

Summary: бинарник /usr/bin/net не запускается (отсутствуют необходимые библиотеки)
Product: Sisyphus Reporter: Alexey Sheplyakov <asheplyakov>
Component: samba-common-toolsAssignee: Evgeny Sinelnikov <sin>
Status: CLOSED NOTABUG QA Contact: qa-sisyphus
Severity: normal    
Priority: P3 CC: iv, sin
Version: unstable   
Hardware: all   
OS: Linux   

Description Alexey Sheplyakov 2018-09-14 13:10:46 MSK
# net ads join -U administrator%t0psecret
net: error while loading shared libraries: libwbclient.so.0: cannot open shared object file: No such file or directory
Comment 1 Ivan A. Melnikov 2018-09-14 13:29:03 MSK
Не воспроизводится в хешере на последнем Сизифе:

$ hsh --initroot
$ hsh-install /usr/bin/net
$ hsh-shell --rooter
[...]
[root@localhost .in]# net ads join -U administrator%t0psecret
Can't load /etc/samba/smb.conf - run testparm to debug it
[root@localhost .in]# mkdir /etc/samba
[root@localhost .in]# touch /etc/samba/smb.conf
[root@localhost .in]# net ads join -U administrator%t0psecret
mkdir failed on directory /var/lib/samba/private/msg.sock: No such file or directory
Failed to init messaging context
[root@localhost .in]# mkdir -p /var/lib/samba/private
[root@localhost .in]# net ads join -U administrator%t0psecret
Host is not configured as a member server.
Invalid configuration.  Exiting....
Failed to join domain: This operation is only allowed for the PDC of the domain.
[root@localhost .in]#

Что собственно и ожидалось.
Comment 2 Ivan A. Melnikov 2018-09-14 13:31:59 MSK
libwbclient.so.0 -- это клиент winbind. Покажите ваш /etc/nsswitch.conf, пожалуйста.
Comment 3 Alexey Sheplyakov 2018-09-17 18:36:31 MSK
> libwbclient.so.0 -- это клиент winbind.

Спасибо, я в курсе.

> Покажите ваш /etc/nsswitch.conf, пожалуйста.

Мне не жалко, но зачем?

# grep -v -E "^#" /etc/nsswitch.conf

passwd:     files
shadow:     tcb files
group:      files
gshadow:    files

hosts:      files dns myhostname


ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files


bootparams: nisplus [NOTFOUND=return] files

netgroup:   nisplus

publickey:  nisplus

automount:  files
Comment 4 Alexey Sheplyakov 2018-09-17 18:45:25 MSK
# ldd /usr/bin/net | grep 'not found' |sort -u
        libnsl.so.2 => not found
        libwbclient.so.0 => not found

Вот в чем причина. А как это получилось, описано здесь: https://bugzilla.altlinux.org/show_bug.cgi?id=35405
Comment 5 Ivan A. Melnikov 2018-09-18 11:34:54 MSK
(In reply to comment #4)
> # ldd /usr/bin/net | grep 'not found' |sort -u
>         libnsl.so.2 => not found
>         libwbclient.so.0 => not found
> 
> Вот в чем причина. А как это получилось, описано здесь:
> https://bugzilla.altlinux.org/show_bug.cgi?id=35405

Ну что ж, это проблема явно не в samba, и должна быть исправлена не в этом пакете.