Is it a bug or just some lxc error? apk update apk upgrade apk add chrony samba-dc krb5 bind-tools samba-libnss-winbind musl-nscd samba-winbind-clients pam-winbind ldb-tools attr acl #Configurando o PAM #https://wiki.samba.org/index.php/Authenticating_Domain_Users_Using_PAM ln -sf /usr/lib/security/pam_winbind.so /lib/security/ chown root:chrony /var/lib/samba/ntp_signd/ chmod 750 /var/lib//samba/ntp_signd/ #Configurar a rede com ip fixo vi /etc/network/interfaces # /etc/hosts 127.0.0.1 localhost.localdomain localhost 192.168.1.40 samba.xxx.emp samba # /etc/resolv.conf search xxx.emp nameserver 192.168.1.10 samba-tool domain provision --server-role=dc --use-rfc2307 --dns-backend=SAMBA_INTERNAL --realm=AD.XXX.ZZZ --domain=XXX samba:~# samba-tool domain provision --server-role=dc --use-rfc2307 --dns-backend=SAMBA_INTERNAL --realm=AD.xxx.zzz --domain=xxx INFO 2022-06-16 17:38:50,796 pid:398 /usr/lib/python3.10/site-packages/samba/netcmd/domain.py #432: Administrator password will be set randomly! INFO 2022-06-16 17:38:50,798 pid:398 /usr/lib/python3.10/site-packages/samba/provision/__init__.py #2108: Looking up IPv4 addresses INFO 2022-06-16 17:38:50,799 pid:398 /usr/lib/python3.10/site-packages/samba/provision/__init__.py #2125: Looking up IPv6 addresses INFO 2022-06-16 17:38:51,208 pid:398 /usr/lib/python3.10/site-packages/samba/provision/__init__.py #2274: Setting up share.ldb INFO 2022-06-16 17:38:51,241 pid:398 /usr/lib/python3.10/site-packages/samba/provision/__init__.py #2278: Setting up secrets.ldb INFO 2022-06-16 17:38:51,260 pid:398 /usr/lib/python3.10/site-packages/samba/provision/__init__.py #2283: Setting up the registry INFO 2022-06-16 17:38:51,325 pid:398 /usr/lib/python3.10/site-packages/samba/provision/__init__.py #2286: Setting up the privileges database INFO 2022-06-16 17:38:51,357 pid:398 /usr/lib/python3.10/site-packages/samba/provision/__init__.py #2289: Setting up idmap db INFO 2022-06-16 17:38:51,377 pid:398 /usr/lib/python3.10/site-packages/samba/provision/__init__.py #2296: Setting up SAM db INFO 2022-06-16 17:38:51,383 pid:398 /usr/lib/python3.10/site-packages/samba/provision/__init__.py #880: Setting up sam.ldb partitions and settings INFO 2022-06-16 17:38:51,383 pid:398 /usr/lib/python3.10/site-packages/samba/provision/__init__.py #892: Setting up sam.ldb rootDSE INFO 2022-06-16 17:38:51,388 pid:398 /usr/lib/python3.10/site-packages/samba/provision/__init__.py #1305: Pre-loading the Samba 4 and AD schema Unable to determine the DomainSID, can not enforce uniqueness constraint on local domainSIDs INFO 2022-06-16 17:38:51,450 pid:398 /usr/lib/python3.10/site-packages/samba/provision/__init__.py #1383: Adding DomainDN: DC=ad,DC=xxx,DC=zzz INFO 2022-06-16 17:38:51,461 pid:398 /usr/lib/python3.10/site-packages/samba/provision/__init__.py #1415: Adding configuration container INFO 2022-06-16 17:38:51,472 pid:398 /usr/lib/python3.10/site-packages/samba/provision/__init__.py #1430: Setting up sam.ldb schema INFO 2022-06-16 17:38:54,859 pid:398 /usr/lib/python3.10/site-packages/samba/provision/__init__.py #1448: Setting up sam.ldb configuration data INFO 2022-06-16 17:38:55,041 pid:398 /usr/lib/python3.10/site-packages/samba/provision/__init__.py #1489: Setting up display specifiers INFO 2022-06-16 17:38:57,609 pid:398 /usr/lib/python3.10/site-packages/samba/provision/__init__.py #1497: Modifying display specifiers and extended rights INFO 2022-06-16 17:38:57,649 pid:398 /usr/lib/python3.10/site-packages/samba/provision/__init__.py #1504: Adding users container INFO 2022-06-16 17:38:57,651 pid:398 /usr/lib/python3.10/site-packages/samba/provision/__init__.py #1510: Modifying users container INFO 2022-06-16 17:38:57,651 pid:398 /usr/lib/python3.10/site-packages/samba/provision/__init__.py #1513: Adding computers container INFO 2022-06-16 17:38:57,653 pid:398 /usr/lib/python3.10/site-packages/samba/provision/__init__.py #1519: Modifying computers container INFO 2022-06-16 17:38:57,653 pid:398 /usr/lib/python3.10/site-packages/samba/provision/__init__.py #1523: Setting up sam.ldb data INFO 2022-06-16 17:38:57,802 pid:398 /usr/lib/python3.10/site-packages/samba/provision/__init__.py #1553: Setting up well known security principals INFO 2022-06-16 17:38:57,851 pid:398 /usr/lib/python3.10/site-packages/samba/provision/__init__.py #1567: Setting up sam.ldb users and groups INFO 2022-06-16 17:38:57,992 pid:398 /usr/lib/python3.10/site-packages/samba/provision/__init__.py #1575: Setting up self join Repacking database from v1 to v2 format (first record CN=ms-DS-Site-Affinity,CN=Schema,CN=Configuration,DC=ad,DC=xxx,DC=zzz) Repack: re-packed 10000 records so far Repacking database from v1 to v2 format (first record CN=mSMQSiteLink-Display,CN=40E,CN=DisplaySpecifiers,CN=Configuration,DC=ad,DC=xxx,DC=zzz) Repacking database from v1 to v2 format (first record CN=61b34cb0-55ee-4be9-b595-97810b92b017,CN=Operations,CN=DomainUpdates,CN=System,DC=ad,DC=xxx,DC=zzz) Security context active token stack underflow! ==============================================================INTERNAL ERROR: Security context active token stack underflow! in pid 398 (4.15.7) If you are running a recent Samba version, and if you think this problem is not yet fixed in the latest versions, please consider reporting this bug, see https://wiki.samba.org/index.php/Bug_Reporting ==============================================================PANIC (pid 398): Security context active token stack underflow! in 4.15.7 unable to produce a stack trace on this platform Can not dump core: corepath not set up -- A persist?ncia ? o caminho do ?xito. Charles Chaplin