smbd,nmdb, windind X samba-ad-dc.

1. smbd,nmdb, windind X samba-ad-dc.

Marcus Guedes
marcusguedes

(usa Outra)

Enviado em 20/12/2023 - 17:17h


Estou com uma duvida após subir AD utilizando samba.

Quando instalei o samba deu tudo tudo certo e vejo os processo smbd,nmbd e winbind rodando normal menmente sem falhas.
Quando subo o AD uma vez que já provisionei e inclui as novas configurações os 3 processos acima geram falha e somente o processo samba-ad-dc sobe corretamente.
Isso é normal ?

Percebi que nas consfigurações do smb.cof em server roles estiver com a configuração active directory domain controller, somente o processo samba-ad-dc sobe.
Se eu decomentar o standalone e comentar o active directory os 3 processos sobem e o samba-ad-dc falha.

# Global parameters
[global]
dns forwarder = 10.255.255.254
netbios name = SAMBA
realm = INTRA.PMSJ
server role = active directory domain controller
# server role = standalone server
workgroup = PMSJ
idmap_ldb:use rfc2307 = yes

Esses processo smbd,nmdb e windind uma vez que smb.conf ficar como server role = active directory domain controller, obrigatoriamente o têm que subir sem erro ou realmente eles não devem subir ?

root@samba:/# systemctl status smbd
○ smbd.service - Samba SMB Daemon
Loaded: loaded (/lib/systemd/system/smbd.service; enabled; preset: enabled)
Active: inactive (dead) (Result: exec-condition) since Wed 2023-12-20 16:04:43 -03; 1h 9min ago
Condition: start condition failed at Wed 2023-12-20 16:04:43 -03; 1h 9min ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 423 ExecCondition=/usr/share/samba/is-configured smb (code=exited, status=1/FAILURE)
CPU: 36ms

dez 20 16:04:43 samba systemd[1]: Starting smbd.service - Samba SMB Daemon...
dez 20 16:04:43 samba systemd[1]: smbd.service: Skipped due to 'exec-condition'.
dez 20 16:04:43 samba systemd[1]: Condition check resulted in smbd.service - Samba SMB Daemon being skipped.
root@samba:/# systemctl status nmbd
○ nmbd.service - Samba NMB Daemon
Loaded: loaded (/lib/systemd/system/nmbd.service; enabled; preset: enabled)
Active: inactive (dead) (Result: exec-condition) since Wed 2023-12-20 16:04:43 -03; 1h 9min ago
Condition: start condition failed at Wed 2023-12-20 16:04:40 -03; 1h 9min ago
Docs: man:nmbd(8)
man:samba(7)
man:smb.conf(5)
Process: 391 ExecCondition=/usr/share/samba/is-configured nmb (code=exited, status=1/FAILURE)
CPU: 161ms

dez 20 16:04:40 samba systemd[1]: Starting nmbd.service - Samba NMB Daemon...
dez 20 16:04:43 samba systemd[1]: nmbd.service: Skipped due to 'exec-condition'.
dez 20 16:04:43 samba systemd[1]: Condition check resulted in nmbd.service - Samba NMB Daemon being skipped.
root@samba:/# systemctl status winbind
○ winbind.service - Samba Winbind Daemon
Loaded: loaded (/lib/systemd/system/winbind.service; enabled; preset: enabled)
Active: inactive (dead) (Result: exec-condition) since Wed 2023-12-20 16:04:43 -03; 1h 9min ago
Condition: start condition failed at Wed 2023-12-20 16:04:43 -03; 1h 9min ago
Docs: man:winbindd(8)
man:samba(7)
man:smb.conf(5)
Process: 421 ExecCondition=/usr/share/samba/is-configured winbind (code=exited, status=1/FAILURE)
CPU: 69ms

dez 20 16:04:43 samba systemd[1]: Starting winbind.service - Samba Winbind Daemon...
dez 20 16:04:43 samba systemd[1]: winbind.service: Skipped due to 'exec-condition'.
dez 20 16:04:43 samba systemd[1]: Condition check resulted in winbind.service - Samba Winbind Daemon being skipped.
root@samba:/# systemctl status samba
● samba-ad-dc.service - Samba AD Daemon
Loaded: loaded (/lib/systemd/system/samba-ad-dc.service; enabled; preset: enabled)
Active: active (running) since Wed 2023-12-20 16:04:44 -03; 1h 9min ago
Docs: man:samba(8)
man:samba(7)
man:smb.conf(5)
Process: 394 ExecCondition=/usr/share/samba/is-configured samba (code=exited, status=0/SUCCESS)
Main PID: 420 (samba)
Status: "samba: ready to serve connections..."
Tasks: 60 (limit: 4272)
Memory: 296.1M
CPU: 39.108s
CGroup: /system.slice/samba-ad-dc.service
├─420 "samba: root process"
├─427 "samba: tfork waiter process(428)"
├─428 "samba: task[s3fs] pre-fork master"
├─429 "samba: tfork waiter process(431)"
├─430 "samba: tfork waiter process(433)"
├─431 "samba: task[rpc] pre-fork master"
├─432 "samba: tfork waiter process(434)"
├─433 /usr/sbin/smbd -D "--option=server role check:inhibit=yes" --foreground
├─434 "samba: task[nbt] pre-fork master"
├─435 "samba: tfork waiter process(436)"
├─436 "samba: task[wrepl] pre-fork master"
├─437 "samba: tfork waiter process(438)"
├─438 "samba: task[ldap] pre-fork master"
├─439 "samba: tfork waiter process(440)"
├─440 "samba: task[cldap] pre-fork master"
├─441 "samba: tfork waiter process(442)"
├─442 "samba: task[kdc] pre-fork master"
├─443 "samba: tfork waiter process(445)"
├─444 "samba: tfork waiter process(446)"
├─445 "samba: task[drepl] pre-fork master"
├─446 "samba: task[kdc] pre-forked worker(0)"
├─447 "samba: tfork waiter process(449)"
├─448 "samba: tfork waiter process(450)"
├─449 "samba: task[winbindd] pre-fork master"
├─450 "samba: task[kdc] pre-forked worker(1)"
├─451 "samba: tfork waiter process(452)"
├─452 "samba: task[ntp_signd] pre-fork master"
├─453 "samba: tfork waiter process(455)"
├─454 "samba: tfork waiter process(457)"
├─455 /usr/sbin/winbindd -D "--option=server role check:inhibit=yes" --foreground
├─456 "samba: tfork waiter process(458)"
├─457 "samba: task[kdc] pre-forked worker(2)"
├─458 "samba: task[kcc] pre-fork master"
├─459 "samba: tfork waiter process(461)"
├─460 "samba: tfork waiter process(462)"
├─461 "samba: task[kdc] pre-forked worker(3)"
├─462 "samba: task[dnsupdate] pre-fork master"
├─463 "samba: tfork waiter process(464)"
├─464 "samba: task[dns] pre-fork master"
├─471 "samba: tfork waiter process(472)"
├─472 "samba: task[rpc] pre-forked worker(0)"
├─473 "samba: tfork waiter process(474)"
├─474 "samba: task[rpc] pre-forked worker(1)"
├─475 "samba: tfork waiter process(476)"
├─476 "samba: task[rpc] pre-forked worker(2)"
├─477 "samba: tfork waiter process(478)"
├─478 "samba: task[rpc] pre-forked worker(3)"
├─482 "samba: tfork waiter process(483)"
├─483 "samba: task[ldap] pre-forked worker(0)"
├─484 "samba: tfork waiter process(485)"
├─485 "samba: task[ldap] pre-forked worker(1)"
├─486 "samba: tfork waiter process(487)"
├─487 "samba: task[ldap] pre-forked worker(2)"
├─488 "samba: tfork waiter process(489)"
├─489 "samba: task[ldap] pre-forked worker(3)"
├─490 /usr/sbin/smbd -D "--option=server role check:inhibit=yes" --foreground
├─491 /usr/sbin/smbd -D "--option=server role check:inhibit=yes" --foreground
├─492 "winbindd: domain child [PMSJ]"
├─493 "winbindd: idmap child"
└─532 /usr/sbin/smbd -D "--option=server role check:inhibit=yes" --foreground

dez 20 16:04:44 samba samba[420]: binary_smbd_main: samba: using 'prefork' process model
dez 20 16:04:44 samba systemd[1]: Started samba-ad-dc.service - Samba AD Daemon.
dez 20 16:04:45 samba winbindd[455]: [2023/12/20 16:04:45.336805, 0] ../../source3/winbindd/winbindd.c:1440(main)
dez 20 16:04:45 samba winbindd[455]: winbindd version 4.17.12-Debian started.
dez 20 16:04:45 samba winbindd[455]: Copyright Andrew Tridgell and the Samba Team 1992-2022
dez 20 16:04:45 samba smbd[433]: [2023/12/20 16:04:45.401946, 0] ../../source3/smbd/server.c:1741(main)
dez 20 16:04:45 samba smbd[433]: smbd version 4.17.12-Debian started.
dez 20 16:04:45 samba smbd[433]: Copyright Andrew Tridgell and the Samba Team 1992-2022
dez 20 16:04:45 samba winbindd[455]: [2023/12/20 16:04:45.741586, 0] ../../source3/winbindd/winbindd_cache.c:3117(initialize_winbindd_cache)
dez 20 16:04:45 samba winbindd[455]: initialize_winbindd_cache: clearing cache and re-creating with version number 2


Obrigado por quem puder ajudar.






  


2. Re: smbd,nmdb, windind X samba-ad-dc.

Daniel Lara Souza
danniel-lara

(usa Fedora)

Enviado em 21/12/2023 - 11:46h


Qual distro tu esta usando ?


3. Re: smbd,nmdb, windind X samba-ad-dc.

Marcus Guedes
marcusguedes

(usa Outra)

Enviado em 25/01/2024 - 09:57h


Bom dia.

No caso estava usando o Debian versão 11.








Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts