[Samba] SAMBA killed by the OOM killer

Eric rvwbug at gmail.com
Thu Feb 8 20:17:51 UTC 2024


Greetings,

I have SAMBA4 AD DC running on Debian 11
with samba backports running SAMBA Version 4.17.12-Debian

It seems after 55-65 days uptime I get out of memory error.

Any thoughts on what to check? This is a virtual machine with 3.8G.

After a fresh restart of SAMBA here's the memory usage:
               total        used        free      shared  buff/cache
available
Mem:           3.8Gi       377Mi       3.3Gi       2.0Mi       201Mi
3.2Gi
Swap:             0B          0B          0B

Do I need to add a swap file?

It's not a particularly busy server with less than six active users.

I have a second domain controller in the same domain with only 2G RAM.
After 55 days of uptime memory usage = 708MB, this server however is
not running DHCP server.

I just increased the dhcp lease time on DC01 to 17hrs, where it was
five minutes. The logs were pretty active with DHCP lease info.

Here's some info that might help identify any misconfiguration.

Thanks in advance for taking the time.

Cheers!

Eric

--smb.conf
[global]
AD.MYDOMAIN.COM
dns forwarder = 10.1.211.254
passdb backend = samba_dsdb
realm = AD.MYDOMAIN.COM
server role = active directory domain controller
workgroup = AD
rpc_server:tcpip = no
rpc_daemon:spoolssd = embedded
rpc_server:spoolss = embedded
rpc_server:winreg = embedded
rpc_server:ntsvcs = embedded
rpc_server:eventlog = embedded
rpc_server:srvsvc = embedded
rpc_server:svcctl = embedded
rpc_server:default = external
winbindd:use external pipes = true
idmap_ldb:use rfc2307 = yes
idmap config * : backend = tdb
map archive = No
vfs objects = dfs_samba4 acl_xattr


[sysvol]
path = /var/lib/samba/sysvol
read only = No


[netlogon]
path = /var/lib/samba/sysvol/ad.mydomain.com/scripts
read only = No


--krb5.conf
[libdefaults]
default_realm = AD.MYDOMAIN.COM
dns_lookup_realm = false
dns_lookup_kdc = true

[realms]
AD.MYDOMAIN.COM = {
default_domain = ad.mydomain.com
}

[domain_realm]
DC01 = AD.MYDOMAIN.COM


--syslog portion before samba was killed due to out of memory error.

Feb  8 13:00:56 DC01 kernel: [4770243.542353] samba_spnupdate invoked
oom-killer: gfp_mask=0x100cca(GFP_HIGHUSER_MOVABLE), order=0,
oom_score_adj=0
Feb  8 13:00:56 DC01 kernel: [4770243.542361] CPU: 3 PID: 1403267 Comm:
samba_spnupdate Not tainted 5.10.0-26-amd64 #1 Debian 5.10.197-1
Feb  8 13:00:56 DC01 kernel: [4770243.542362] Hardware name: QEMU Standard
PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014
Feb  8 13:00:56 DC01 kernel: [4770243.542365] Call Trace:
Feb  8 13:00:56 DC01 kernel: [4770243.542388]  dump_stack+0x6b/0x83
Feb  8 13:00:56 DC01 kernel: [4770243.542392]  dump_header+0x4a/0x1f4
Feb  8 13:00:56 DC01 kernel: [4770243.542394]
 oom_kill_process.cold+0xb/0x10
Feb  8 13:00:56 DC01 kernel: [4770243.542399]  out_of_memory+0x1bd/0x4e0
Feb  8 13:00:56 DC01 kernel: [4770243.542403]
 __alloc_pages_slowpath.constprop.0+0xbcc/0xc90
Feb  8 13:00:56 DC01 kernel: [4770243.542407]
 __alloc_pages_nodemask+0x2de/0x310
Feb  8 13:00:56 DC01 kernel: [4770243.542410]
 pagecache_get_page+0x175/0x390
Feb  8 13:00:56 DC01 kernel: [4770243.542412]  filemap_fault+0x6a2/0x900
Feb  8 13:00:56 DC01 kernel: [4770243.542416]  ? xas_load+0x5/0x80
Feb  8 13:00:56 DC01 kernel: [4770243.542651]
 __xfs_filemap_fault+0x6a/0x240 [xfs]
Feb  8 13:00:56 DC01 kernel: [4770243.542667]  __do_fault+0x37/0x170
Feb  8 13:00:56 DC01 kernel: [4770243.542669]  handle_mm_fault+0x124d/0x1c00
Feb  8 13:00:56 DC01 kernel: [4770243.542674]
 do_user_addr_fault+0x1b8/0x400
Feb  8 13:00:56 DC01 kernel: [4770243.542678]  exc_page_fault+0x78/0x160
Feb  8 13:00:56 DC01 kernel: [4770243.542683]  ? asm_exc_page_fault+0x8/0x30
Feb  8 13:00:56 DC01 kernel: [4770243.542686]  asm_exc_page_fault+0x1e/0x30
Feb  8 13:00:56 DC01 kernel: [4770243.542694] RIP: 0033:0x7f51cfe3bcf0
Feb  8 13:00:56 DC01 kernel: [4770243.542700] Code: Unable to access opcode
bytes at RIP 0x7f51cfe3bcc6.
Feb  8 13:00:56 DC01 kernel: [4770243.542701] RSP: 002b:00007ffc05bb61a8
EFLAGS: 00010206
Feb  8 13:00:56 DC01 kernel: [4770243.542704] RAX: 0000000000000260 RBX:
00007f51cb8bd0d5 RCX: 0000000002a00090
Feb  8 13:00:56 DC01 kernel: [4770243.542705] RDX: 000000000000003a RSI:
00007f51cb8bd0d5 RDI: 0000000002429000
Feb  8 13:00:56 DC01 kernel: [4770243.542706] RBP: 0000000002428d50 R08:
0000000002a00050 R09: 00007f51cfeb0be0
Feb  8 13:00:56 DC01 kernel: [4770243.542707] R10: 00007f51cfe3cd70 R11:
00000000000000b0 R12: 0000000002428ad0
Feb  8 13:00:56 DC01 kernel: [4770243.542708] R13: 0000000002431820 R14:
0000000002427ba0 R15: 000000000000056f
Feb  8 13:00:56 DC01 kernel: [4770243.542713] Mem-Info:
Feb  8 13:00:56 DC01 kernel: [4770243.542719] active_anon:514
inactive_anon:943246 isolated_anon:0
Feb  8 13:00:56 DC01 kernel: [4770243.542719]  active_file:44
inactive_file:9 isolated_file:0
Feb  8 13:00:56 DC01 kernel: [4770243.542719]  unevictable:0 dirty:0
writeback:0
Feb  8 13:00:56 DC01 kernel: [4770243.542719]  slab_reclaimable:4343
slab_unreclaimable:13296
Feb  8 13:00:56 DC01 kernel: [4770243.542719]  mapped:403 shmem:634
pagetables:5279 bounce:0
Feb  8 13:00:56 DC01 kernel: [4770243.542719]  free:23038 free_pcp:318
free_cma:0
Feb  8 13:00:56 DC01 kernel: [4770243.542724] Node 0 active_anon:2056kB
inactive_anon:3772984kB active_file:176kB inactive_file:36kB
unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:1612kB
dirty:0kB writeback:0kB shmem:2536kB shmem_thp: 0kB shmem_pmdmapped: 0kB
anon_thp: 3375104kB writeback_tmp:0kB kernel_stack:3440kB
all_unreclaimable? no
Feb  8 13:00:56 DC01 kernel: [4770243.542726] Node 0 DMA free:15396kB
min:268kB low:332kB high:396kB reserved_highatomic:0KB active_anon:0kB
inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB
writepending:0kB present:15992kB managed:15908kB mlocked:0kB pagetables:0kB
bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
Feb  8 13:00:56 DC01 kernel: [4770243.542729] lowmem_reserve[]: 0 1939 3868
3868 3868
Feb  8 13:00:56 DC01 kernel: [4770243.542733] Node 0 DMA32 free:41560kB
min:33756kB low:42192kB high:50628kB reserved_highatomic:0KB
active_anon:24kB inactive_anon:1961644kB active_file:604kB
inactive_file:268kB unevictable:0kB writepending:0kB present:2080624kB
managed:2015088kB mlocked:0kB pagetables:4564kB bounce:0kB free_pcp:624kB
local_pcp:348kB free_cma:0kB
Feb  8 13:00:56 DC01 kernel: [4770243.542737] lowmem_reserve[]: 0 0 1928
1928 1928
Feb  8 13:00:56 DC01 kernel: [4770243.542740] Node 0 Normal free:35196kB
min:33556kB low:41944kB high:50332kB reserved_highatomic:0KB
active_anon:2032kB inactive_anon:1811340kB active_file:328kB
inactive_file:180kB unevictable:0kB writepending:0kB present:2097152kB
managed:1982036kB mlocked:0kB pagetables:16552kB bounce:0kB free_pcp:632kB
local_pcp:228kB free_cma:0kB
Feb  8 13:00:56 DC01 kernel: [4770243.542743] lowmem_reserve[]: 0 0 0 0 0
Feb  8 13:00:56 DC01 kernel: [4770243.542747] Node 0 DMA: 1*4kB (U) 0*8kB
0*16kB 1*32kB (U) 2*64kB (U) 1*128kB (U) 1*256kB (U) 1*512kB (U) 0*1024kB
1*2048kB (M) 3*4096kB (M) = 15396kB
Feb  8 13:00:56 DC01 kernel: [4770243.542760] Node 0 DMA32: 292*4kB (UM)
86*8kB (UME) 66*16kB (UME) 47*32kB (UME) 38*64kB (UME) 17*128kB (UME)
69*256kB (UME) 30*512kB (UME) 0*1024kB 0*2048kB 0*4096kB = 42048kB
Feb  8 13:00:56 DC01 kernel: [4770243.542772] Node 0 Normal: 1038*4kB (UME)
639*8kB (UME) 348*16kB (UME) 140*32kB (UME) 60*64kB (UME) 32*128kB (UME)
14*256kB (UME) 3*512kB (ME) 3*1024kB (ME) 0*2048kB 0*4096kB = 35440kB
Feb  8 13:00:56 DC01 kernel: [4770243.542791] Node 0 hugepages_total=0
hugepages_free=0 hugepages_surp=0 hugepages_size=1048576kB
Feb  8 13:00:56 DC01 kernel: [4770243.542792] Node 0 hugepages_total=0
hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB
Feb  8 13:00:56 DC01 kernel: [4770243.542793] 702 total pagecache pages
Feb  8 13:00:56 DC01 kernel: [4770243.542794] 0 pages in swap cache
Feb  8 13:00:56 DC01 kernel: [4770243.542795] Swap cache stats: add 0,
delete 0, find 0/0
Feb  8 13:00:56 DC01 kernel: [4770243.542796] Free swap  = 0kB
Feb  8 13:00:56 DC01 kernel: [4770243.542797] Total swap = 0kB
Feb  8 13:00:56 DC01 kernel: [4770243.542798] 1048442 pages RAM
Feb  8 13:00:56 DC01 kernel: [4770243.542798] 0 pages HighMem/MovableOnly
Feb  8 13:00:56 DC01 kernel: [4770243.542799] 45184 pages reserved
Feb  8 13:00:56 DC01 kernel: [4770243.542800] 0 pages hwpoisoned
Feb  8 13:00:56 DC01 kernel: [4770243.542801] Tasks state (memory values in
pages):
Feb  8 13:00:56 DC01 kernel: [4770243.542801] [  pid  ]   uid  tgid
total_vm      rss pgtables_bytes swapents oom_score_adj name
Feb  8 13:00:56 DC01 kernel: [4770243.542808] [    245]     0   245
 14154      247   122880        0          -250 systemd-journal
Feb  8 13:00:56 DC01 kernel: [4770243.542810] [    267]     0   267
5397      268    73728        0         -1000 systemd-udevd
Feb  8 13:00:56 DC01 kernel: [4770243.542813] [    486]     0   486
1686       65    53248        0             0 cron
Feb  8 13:00:56 DC01 kernel: [4770243.542814] [    487]   103   487
2057      145    53248        0          -900 dbus-daemon
Feb  8 13:00:56 DC01 kernel: [4770243.542816] [    490]     0   490
 20013       63    65536        0             0 qemu-ga
Feb  8 13:00:56 DC01 kernel: [4770243.542817] [    492]     0   492
 55199      827    77824        0             0 rsyslogd
Feb  8 13:00:56 DC01 kernel: [4770243.542819] [    497]     0   497
3461      206    65536        0             0 systemd-logind
Feb  8 13:00:56 DC01 kernel: [4770243.542821] [    504]     0   504
1461       28    49152        0             0 agetty
Feb  8 13:00:56 DC01 kernel: [4770243.542822] [    514]     0   514
3338      224    65536        0         -1000 sshd
Feb  8 13:00:56 DC01 kernel: [4770243.542824] [    516]   106   516
4758      184    65536        0             0 chronyd
Feb  8 13:00:56 DC01 kernel: [4770243.542826] [    520]   106   520
2727      152    65536        0             0 chronyd
Feb  8 13:00:56 DC01 kernel: [4770243.542827] [    524]     0   524
 25950     1631    81920        0             0 dhcpd
Feb  8 13:00:56 DC01 kernel: [4770243.542829] [    529]     0   529
 47241     7633   221184        0             0 samba
Feb  8 13:00:56 DC01 kernel: [4770243.542830] [    530]     0   530
 47242     7631   184320        0             0 tfork(531)
Feb  8 13:00:56 DC01 kernel: [4770243.542832] [    531]     0   531
 47242     7631   184320        0             0 s3fs[master]
Feb  8 13:00:56 DC01 kernel: [4770243.542833] [    532]     0   532
 47242     7631   184320        0             0 tfork(533)
Feb  8 13:00:56 DC01 kernel: [4770243.542835] [    533]     0   533
 47242     7633   188416        0             0 rpc[master]
Feb  8 13:00:56 DC01 kernel: [4770243.542836] [    534]     0   534
 47243     7631   184320        0             0 tfork(536)
Feb  8 13:00:56 DC01 kernel: [4770243.542838] [    535]     0   535
 47242     7631   184320        0             0 tfork(537)
Feb  8 13:00:56 DC01 kernel: [4770243.542839] [    536]     0   536
 49127     7933   299008        0             0 smbd
Feb  8 13:00:56 DC01 kernel: [4770243.542841] [    537]     0   537
 47261     7637   270336        0             0 nbt[master]
Feb  8 13:00:56 DC01 kernel: [4770243.542842] [    538]     0   538
 47242     7631   184320        0             0 tfork(539)
Feb  8 13:00:56 DC01 kernel: [4770243.542844] [    539]     0   539
 47242     7631   180224        0             0 wrepl[master]
Feb  8 13:00:56 DC01 kernel: [4770243.542845] [    540]     0   540
 47242     7631   184320        0             0 tfork(541)
Feb  8 13:00:56 DC01 kernel: [4770243.542847] [    541]     0   541
 47242     7637   266240        0             0 ldap[master]
Feb  8 13:00:56 DC01 kernel: [4770243.542848] [    542]     0   542
 47242     7631   184320        0             0 tfork(545)
Feb  8 13:00:56 DC01 kernel: [4770243.542849] [    543]     0   543
 47243     7631   184320        0             0 tfork(544)
Feb  8 13:00:56 DC01 kernel: [4770243.542851] [    544]     0   544
510278   470521  4038656        0             0 rpc(0)
Feb  8 13:00:56 DC01 kernel: [4770243.542853] [    545]     0   545
 47242     7633   266240        0             0 cldap[master]
Feb  8 13:00:56 DC01 kernel: [4770243.542854] [    546]     0   546
 47242     7631   184320        0             0 tfork(548)
Feb  8 13:00:56 DC01 kernel: [4770243.542856] [    547]     0   547
 47243     7631   184320        0             0 tfork(551)
Feb  8 13:00:56 DC01 kernel: [4770243.542857] [    548]     0   548
 47242     7633   184320        0             0 kdc[master]
Feb  8 13:00:56 DC01 kernel: [4770243.542858] [    549]     0   549
 47242     7631   184320        0             0 tfork(552)
Feb  8 13:00:56 DC01 kernel: [4770243.542860] [    550]     0   550
 47243     7631   184320        0             0 tfork(555)
Feb  8 13:00:56 DC01 kernel: [4770243.542861] [    551]     0   551
 25433     7644   196608        0             0 rpc(1)
Feb  8 13:00:56 DC01 kernel: [4770243.542863] [    552]     0   552
 47457     7702   307200        0             0 drepl[master]
Feb  8 13:00:56 DC01 kernel: [4770243.542864] [    553]     0   553
 47242     7631   184320        0             0 tfork(559)
Feb  8 13:00:56 DC01 kernel: [4770243.542866] [    554]     0   554
 47243     7631   184320        0             0 tfork(556)
Feb  8 13:00:56 DC01 kernel: [4770243.542867] [    555]     0   555
 95168    55522   688128        0             0 kdc(0)
Feb  8 13:00:56 DC01 kernel: [4770243.542869] [    556]     0   556
 47075     7644   278528        0             0 rpc(2)
Feb  8 13:00:56 DC01 kernel: [4770243.542870] [    557]     0   557
 47243     7631   184320        0             0 tfork(560)
Feb  8 13:00:56 DC01 kernel: [4770243.542871] [    558]     0   558
 47243     7631   184320        0             0 tfork(564)
Feb  8 13:00:56 DC01 kernel: [4770243.542873] [    559]     0   559
 47242     7631   184320        0             0 winbindd[master
Feb  8 13:00:56 DC01 kernel: [4770243.542874] [    560]     0   560
113913    74252   827392        0             0 kdc(1)
Feb  8 13:00:56 DC01 kernel: [4770243.542876] [    561]     0   561
 47242     7631   184320        0             0 tfork(563)
Feb  8 13:00:56 DC01 kernel: [4770243.542877] [    562]     0   562
 47243     7631   184320        0             0 tfork(566)
Feb  8 13:00:56 DC01 kernel: [4770243.542879] [    563]     0   563
 47242     7631   262144        0             0 ntp_signd[maste
Feb  8 13:00:56 DC01 kernel: [4770243.542880] [    564]     0   564
 25433     7644   196608        0             0 rpc(3)
Feb  8 13:00:56 DC01 kernel: [4770243.542882] [    565]     0   565
 47242     7631   184320        0             0 tfork(567)
Feb  8 13:00:56 DC01 kernel: [4770243.542883] [    566]     0   566
141668   102008  1060864        0             0 kdc(2)
Feb  8 13:00:56 DC01 kernel: [4770243.542885] [    567]     0   567
 47242     7633   299008        0             0 kcc[master]
Feb  8 13:00:56 DC01 kernel: [4770243.542886] [    568]     0   568
 47243     7631   184320        0             0 tfork(575)
Feb  8 13:00:56 DC01 kernel: [4770243.542888] [    569]     0   569
 47242     7631   184320        0             0 tfork(570)
Feb  8 13:00:56 DC01 kernel: [4770243.542889] [    570]     0   570
 47242     7633   266240        0             0 dnsupdate[maste
Feb  8 13:00:56 DC01 kernel: [4770243.542891] [    571]     0   571
 47242     7631   184320        0             0 tfork(578)
Feb  8 13:00:56 DC01 kernel: [4770243.542892] [    572]     0   572
 47243     7631   184320        0             0 tfork(577)
Feb  8 13:00:56 DC01 kernel: [4770243.542894] [    575]     0   575
202716   163064  1548288        0             0 kdc(3)
Feb  8 13:00:56 DC01 kernel: [4770243.542895] [    577]     0   577
 48310     7682   286720        0             0 winbindd
Feb  8 13:00:56 DC01 kernel: [4770243.542897] [    578]     0   578
 47430     7702   245760        0             0 dns[master]
Feb  8 13:00:56 DC01 kernel: [4770243.542898] [    582]     0   582
 48724     7572   266240        0             0 smbd-notifyd
Feb  8 13:00:56 DC01 kernel: [4770243.542900] [    583]     0   583
 48728     7575   266240        0             0 cleanupd
Feb  8 13:00:56 DC01 kernel: [4770243.542901] [    584]     0   584
 48353     7692   278528        0             0 winbindd
Feb  8 13:00:56 DC01 kernel: [4770243.542902] [    585]     0   585
 48310     7681   274432        0             0 winbindd
Feb  8 13:00:56 DC01 kernel: [4770243.542904] [    587]     0   587
 47243     7635   184320        0             0 tfork(588)
Feb  8 13:00:56 DC01 kernel: [4770243.542905] [    588]     0   588
 47054     7643   307200        0             0 ldap(0)
Feb  8 13:00:56 DC01 kernel: [4770243.542907] [    589]     0   589
 47243     7635   184320        0             0 tfork(590)
Feb  8 13:00:56 DC01 kernel: [4770243.542908] [    590]     0   590
 47054     7643   323584        0             0 ldap(1)
Feb  8 13:00:56 DC01 kernel: [4770243.542910] [    591]     0   591
 47243     7635   184320        0             0 tfork(592)
Feb  8 13:00:56 DC01 kernel: [4770243.542911] [    592]     0   592
 47054     7643   323584        0             0 ldap(2)
Feb  8 13:00:56 DC01 kernel: [4770243.542913] [    593]     0   593
 47243     7635   184320        0             0 tfork(594)
Feb  8 13:00:56 DC01 kernel: [4770243.542914] [    594]     0   594
 47054     7643   319488        0             0 ldap(3)
Feb  8 13:00:56 DC01 kernel: [4770243.542916] [1403258]     0 1403258
1724       79    57344        0             0 dhcp-dyndns.sh
Feb  8 13:00:56 DC01 kernel: [4770243.542918] [1403264]     0 1403264
 47243     7631   184320        0             0 tfork(1403265)
Feb  8 13:00:56 DC01 kernel: [4770243.542919] [1403265]     0 1403265
 28512     6226   208896        0             0 samba_dnsupdate
Feb  8 13:00:56 DC01 kernel: [4770243.542921] [1403266]     0 1403266
 47243     7631   184320        0             0 tfork(1403267)
Feb  8 13:00:56 DC01 kernel: [4770243.542922] [1403267]     0 1403267
 52800     9153   315392        0             0 samba_spnupdate
Feb  8 13:00:56 DC01 kernel: [4770243.542924] [1403269]     0 1403269
1724       78    53248        0             0 dhcp-dyndns.sh
Feb  8 13:00:56 DC01 kernel: [4770243.542925] [1403270]     0 1403270
 28085     4608   200704        0             0 samba-tool
Feb  8 13:00:56 DC01 kernel: [4770243.542927] [1403271]     0 1403271
1560       25    49152        0             0 grep
Feb  8 13:00:56 DC01 kernel: [4770243.542929] [1403272]     0 1403272
1346       17    49152        0             0 tr
Feb  8 13:00:56 DC01 kernel: [4770243.542930] [1403273]     0 1403273
1715       21    53248        0             0 awk
Feb  8 13:00:56 DC01 kernel: [4770243.542932]
oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/system.slice/samba-ad-dc.service,task=rpc(0),pid=544,uid=0
Feb  8 13:00:56 DC01 kernel: [4770243.542962] Out of memory: Killed process
544 (rpc(0)) total-vm:2041112kB, anon-rss:1882072kB, file-rss:4kB,
shmem-rss:8kB, UID:0 pgtables:3944kB oom_score_adj:0
Feb  8 13:00:56 DC01 systemd[1]: samba-ad-dc.service: A process of this
unit has been killed by the OOM killer.
Feb  8 13:00:56 DC01 winbindd[585]: [2024/02/08 13:00:56.419435,  0]
../../source3/winbindd/winbindd_dual.c:1950(winbindd_sig_term_handler)
Feb  8 13:00:56 DC01 systemd[1]: samba-ad-dc.service: Main process exited,
code=exited, status=127/n/a
Feb  8 13:00:56 DC01 winbindd[585]:   Got sig[15] terminate (is_parent=0)
Feb  8 13:00:56 DC01 winbindd[584]: [2024/02/08 13:00:56.432282,  0]
../../source3/winbindd/winbindd_dual.c:1950(winbindd_sig_term_handler)
Feb  8 13:00:56 DC01 winbindd[584]:   Got sig[15] terminate (is_parent=0)
Feb  8 13:00:56 DC01 systemd[1]: samba-ad-dc.service: Failed with result
'oom-kill'.
Feb  8 13:00:56 DC01 systemd[1]: samba-ad-dc.service: Consumed 1d 6h 26min
41.746s CPU time.
Feb  8 13:00:56 DC01 root: No AD dhcp user exists, need to create it
first.. exiting.
Feb  8 13:00:56 DC01 root: you can do this by typing the following commands
Feb  8 13:00:56 DC01 root: kinit Administrator at AD.MYDOMAIN.COM
Feb  8 13:00:56 DC01 root: /bin/samba-tool user create dhcpduser
--random-password --description='Unprivileged user for DNS updates via ISC
DHCP server'
Feb  8 13:00:56 DC01 root: /bin/samba-tool user setexpiry dhcpduser
--noexpiry
Feb  8 13:00:56 DC01 root: /bin/samba-tool group addmembers DnsAdmins
dhcpduser
Feb  8 13:00:56 DC01 dhcpd[524]: execute: /usr/local/bin/dhcp-dyndns.sh
exit status 256
Feb  8 13:00:56 DC01 dhcpd[524]: DHCPREQUEST for 10.1.211.171 from
cc:96:e5:2c:53:19 (JMS-Computer) via enp1s0
Feb  8 13:00:56 DC01 dhcpd[524]: DHCPACK on 10.1.211.171 to
cc:96:e5:2c:53:19 (JMS-Computer) via enp1s0
Feb  8 13:00:56 DC01 dhcpd[524]: Commit: IP: 10.1.211.171 DHCID:
cc:96:e5:2c:53:19 Name: JMS-Computer
Feb  8 13:00:56 DC01 dhcpd[524]: execute_statement argv[0] =
/usr/local/bin/dhcp-dyndns.sh
Feb  8 13:00:56 DC01 dhcpd[524]: execute_statement argv[1] = add
Feb  8 13:00:56 DC01 dhcpd[524]: execute_statement argv[2] = 10.1.211.171
Feb  8 13:00:56 DC01 dhcpd[524]: execute_statement argv[3] =
cc:96:e5:2c:53:19
Feb  8 13:00:56 DC01 dhcpd[524]: execute_statement argv[4] = JMS-Computer
Feb  8 13:00:57 DC01 root: No AD dhcp user exists, need to create it
first.. exiting.
Feb  8 13:00:57 DC01 root: you can do this by typing the following commands
Feb  8 13:00:57 DC01 root: kinit Administrator at AD.MYDOMAIN.COM
Feb  8 13:00:57 DC01 root: /bin/samba-tool user create dhcpduser
--random-password --description='Unprivileged user for DNS updates via ISC
DHCP server'
Feb  8 13:00:57 DC01 root: /bin/samba-tool user setexpiry dhcpduser
--noexpiry
Feb  8 13:00:57 DC01 root: /bin/samba-tool group addmembers DnsAdmins
dhcpduser


More information about the samba mailing list