[Resolvido] Winbind não inicia e não atualiza

Iniciado por lucascatani, 22 de Novembro de 2018, 16:10

tópico anterior - próximo tópico

lucascatani

Não consigo iniciar o winbind e nem atualizar ele:

Ubuntu 18.04
samba-ad

Comando:

# systemctl status winbind.service

Saída:

● winbind.service - Samba Winbind Daemon
   Loaded: loaded (/lib/systemd/system/winbind.service; disabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2018-11-22 16:02:20 -02; 3min 8s ago
     Docs: man:winbindd(8)
           man:samba(7)
           man:smb.conf(5)
  Process: 22182 ExecStart=/usr/sbin/winbindd --foreground --no-process-group $WINBINDOPTIONS (code=exited, status=1/FAILURE)
Main PID: 22182 (code=exited, status=1/FAILURE)

Nov 22 16:02:20 srvinno systemd[1]: Starting Samba Winbind Daemon...
Nov 22 16:02:20 srvinno systemd[1]: winbind.service: Main process exited, code=exited, status=1/FAILURE
Nov 22 16:02:20 srvinno systemd[1]: winbind.service: Failed with result 'exit-code'.
Nov 22 16:02:20 srvinno systemd[1]: Failed to start Samba Winbind Daemon.


Comando

journalctl -xe

Saída

Nov 22 16:08:40 srvinno systemd[1]: Starting Samba Winbind Daemon...
-- Subject: Unit winbind.service has begun start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit winbind.service has begun starting up.

Nov 22 16:08:40 srvinno systemd[1]: winbind.service: Main process exited, code=exited, status=1/FAILURE
Nov 22 16:08:40 srvinno systemd[1]: winbind.service: Failed with result 'exit-code'.
Nov 22 16:08:40 srvinno systemd[1]: Failed to start Samba Winbind Daemon.
-- Subject: Unit winbind.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit winbind.service has failed.
--
-- The result is RESULT.




zekkerj

Ative o log do samba com a diretiva "log level = 3" no arquivo smb.conf, reinicie o winbindd e depois olhe na pasta /var/log/samba se um arquivo "log.winbind" é criado, e se tem alguma pista sobre o problema.
Pesquise antes de perguntar, sua dúvida pode já ter sido respondida.
Não respondo dúvidas por MP, coloque sua dúvida no fórum onde ela pode ser pesquisada pelos seus colegas!
Não venha ao fórum apenas para perguntar. Se você sabe a resposta de um problema, porque não ajudar seu colega? ;D

lucascatani

Citação de: zekkerj online 22 de Novembro de 2018, 20:37
Ative o log do samba com a diretiva "log level = 3" no arquivo smb.conf, reinicie o winbindd e depois olhe na pasta /var/log/samba se um arquivo "log.winbind" é criado, e se tem alguma pista sobre o problema.


[2018/12/01 10:52:38.421097,  3] ../source3/param/loadparm.c:3860(lp_load_ex)
  lp_load_ex: refreshing parameters
[2018/12/01 10:52:38.421134,  3] ../source3/param/loadparm.c:549(init_globals)
  Initialising global parameters
[2018/12/01 10:52:38.421177,  3] ../source3/param/loadparm.c:2774(lp_do_section)
  Processing section "[global]"
[2018/12/01 10:52:38.422500,  2] ../source3/lib/interface.c:345(add_interface)
  added interface enp1s0 ip=10.1.1.254 bcast=10.1.1.255 netmask=255.255.255.0
[2018/12/01 10:52:38.423590,  2] ../source3/lib/interface.c:345(add_interface)
  added interface enp1s0 ip=10.1.1.254 bcast=10.1.1.255 netmask=255.255.255.0
[2018/12/01 10:52:38.440428,  0] ../source3/winbindd/winbindd_cache.c:3170(initialize_winbindd_cache)
  initialize_winbindd_cache: clearing cache and re-creating with version number 2
[2018/12/01 10:52:38.449619,  2] ../source3/winbindd/winbindd_util.c:283(add_trusted_domain_from_tdc)
  Added domain BUILTIN (null) S-1-5-32
[2018/12/01 10:52:38.543477,  3] ../lib/ldb-samba/ldb_wrap.c:326(ldb_wrap_connect)
  ldb_wrap open of idmap.ldb
[2018/12/01 10:52:38.543948,  2] ../source3/winbindd/winbindd_util.c:283(add_trusted_domain_from_tdc)
  Added domain INNOVATIVA innovativa.intra S-1-5-21-2946662902-224300259-1232720492
[2018/12/01 10:52:38.544573,  0] ../lib/util/become_daemon.c:124(daemon_ready)
  STATUS=daemon 'winbindd' finished starting up and ready to serve connections
[2018/12/01 10:52:38.751634,  3] ../source3/winbindd/winbindd_misc.c:395(winbindd_interface_version)
  [21273]: request interface version (version = 29)
[2018/12/01 10:52:38.751746,  3] ../source3/winbindd/winbindd_misc.c:428(winbindd_priv_pipe_dir)
  [21273]: request location of privileged pipe
[2018/12/01 10:52:38.751903,  3] ../source3/winbindd/winbindd_sids_to_xids.c:50(winbindd_sids_to_xids_send)
  sids_to_xids
[2018/12/01 10:52:38.757053,  3] ../source3/winbindd/winbindd_sids_to_xids.c:50(winbindd_sids_to_xids_send)
  sids_to_xids
[2018/12/01 10:52:38.758104,  3] ../source3/winbindd/winbindd_getusersids.c:49(winbindd_getusersids_send)
  getusersids S-1-5-21-2946662902-224300259-1232720492-1002
[2018/12/01 10:52:38.765964,  3] ../source3/winbindd/winbindd_util.c:1299(lookup_usergroups_cached)
  : lookup_usergroups_cached
[2018/12/01 10:52:38.786378,  3] ../source3/winbindd/winbindd_getusersids.c:49(winbindd_getusersids_send)
  getusersids S-1-5-21-2946662902-224300259-1232720492-1002
[2018/12/01 10:52:38.790621,  3] ../source3/winbindd/winbindd_util.c:1299(lookup_usergroups_cached)
  : lookup_usergroups_cached
[2018/12/01 10:52:39.281225,  3] ../source3/winbindd/winbindd_misc.c:395(winbindd_interface_version)
  [21276]: request interface version (version = 29)
[2018/12/01 10:52:39.281338,  3] ../source3/winbindd/winbindd_misc.c:428(winbindd_priv_pipe_dir)
  [21276]: request location of privileged pipe
[2018/12/01 10:52:39.281495,  3] ../source3/winbindd/winbindd_sids_to_xids.c:50(winbindd_sids_to_xids_send)
  sids_to_xids
[2018/12/01 10:52:39.287552,  3] ../source3/winbindd/winbindd_sids_to_xids.c:50(winbindd_sids_to_xids_send)
  sids_to_xids
[2018/12/01 10:52:39.294779,  3] ../source3/winbindd/winbindd_sids_to_xids.c:50(winbindd_sids_to_xids_send)
  sids_to_xids
[2018/12/01 10:52:39.298623,  3] ../source3/winbindd/winbindd_getusersids.c:49(winbindd_getusersids_send)
  getusersids S-1-5-21-2946662902-224300259-1232720492-1002
[2018/12/01 10:52:39.303119,  3] ../source3/winbindd/winbindd_util.c:1299(lookup_usergroups_cached)
  : lookup_usergroups_cached
[2018/12/01 10:52:39.318542,  3] ../source3/winbindd/winbindd_getusersids.c:49(winbindd_getusersids_send)
  getusersids S-1-5-21-2946662902-224300259-1232720492-1002
[2018/12/01 10:52:39.322605,  3] ../source3/winbindd/winbindd_util.c:1299(lookup_usergroups_cached)
  : lookup_usergroups_cached
[2018/12/01 10:52:39.334196,  3] ../source3/winbindd/winbindd_getusersids.c:49(winbindd_getusersids_send)
  getusersids S-1-5-21-2946662902-224300259-1232720492-1002
[2018/12/01 10:52:39.338068,  3] ../source3/winbindd/winbindd_util.c:1299(lookup_usergroups_cached)
  : lookup_usergroups_cached
[2018/12/01 10:52:39.338068,  3] ../source3/winbindd/winbindd_util.c:1299(lookup_usergroups_cached)
  : lookup_usergroups_cached
[2018/12/01 10:52:39.349332,  3] ../source3/winbindd/winbindd_getusersids.c:49(winbindd_getusersids_send)
  getusersids S-1-5-21-2946662902-224300259-1232720492-1002
[2018/12/01 10:52:39.353060,  3] ../source3/winbindd/winbindd_util.c:1299(lookup_usergroups_cached)
  : lookup_usergroups_cached
[2018/12/01 10:52:39.364377,  3] ../source3/winbindd/winbindd_getusersids.c:49(winbindd_getusersids_send)
  getusersids S-1-5-21-2946662902-224300259-1232720492-1002
[2018/12/01 10:52:39.368259,  3] ../source3/winbindd/winbindd_util.c:1299(lookup_usergroups_cached)
  : lookup_usergroups_cached
[2018/12/01 10:53:16.418591,  3] ../source3/winbindd/winbindd_misc.c:395(winbindd_interface_version)
  [21335]: request interface version (version = 29)
[2018/12/01 10:53:16.418712,  3] ../source3/winbindd/winbindd_misc.c:428(winbindd_priv_pipe_dir)
  [21335]: request location of privileged pipe
[2018/12/01 10:53:16.418872,  3] ../source3/winbindd/winbindd_sids_to_xids.c:50(winbindd_sids_to_xids_send)
  sids_to_xids
[2018/12/01 10:54:37.541362,  0] ../source3/winbindd/winbindd.c:243(winbindd_sig_term_handler)


lucascatani

Existe  como eu instalar uma versão mais antiga do winbind manualmente?

lucascatani

Resolvi com gambiarra:

apt-get install libwbclient0=2:4.3.8+dfsg-0ubuntu1

apt-get install libwbclient0=2:4.7.6+dfsg~ubuntu-0ubuntu2

apt-get install samba

Se der erro em alguma das lib não tem problema.

* Não perdi nenhuma configuração do samba