indication / docker-redmine

Contains docker redmine, gitbucket, samba to authentication, adminer
0 stars 0 forks source link

Samba provision is failed #1

Open indication opened 5 years ago

indication commented 5 years ago
/ # samba-tool domain provision --configfile=/share/smb.conf --use-rfc2307 --realm=samba.dom --adminpass=Password1! --serv
er-role=dc --dns-backend=SAMBA_INTERNAL --domain=samba --host-ip=192.168.10.17 --option="bind interfaces only"=yes --debug
level=3
lpcfg_load: refreshing parameters from /share/smb.conf
lpcfg_load: refreshing parameters from /share/smb.conf
Looking up IPv6 addresses
No IPv6 address will be assigned
Setting up secrets.ldb
Setting up the registry
ldb_wrap open of hklm.ldb
Setting up the privileges database
Setting up idmap db
Setting up SAM db
Setting up sam.ldb partitions and settings
Setting up sam.ldb rootDSE
Pre-loading the Samba 4 and AD schema
partition_metadata: Migrating partition metadata: open of metadata.tdb gave: (null)
Unable to determine the DomainSID, can not enforce uniqueness constraint on local domainSIDs

Adding DomainDN: DC=samba,DC=dom
DN: DC=samba,DC=dom is a NC
Adding configuration container
DN: CN=Configuration,DC=samba,DC=dom is a NC
Setting up sam.ldb schema
DN: CN=Schema,CN=Configuration,DC=samba,DC=dom is a NC
Setting up sam.ldb configuration data
Setting up display specifiers
Modifying display specifiers and extended rights
Adding users container
Modifying users container
Adding computers container
Modifying computers container
Setting up sam.ldb data
Setting up well known security principals
Setting up sam.ldb users and groups
Setting up self join
lp_load_ex: refreshing parameters
Initialising global parameters
Processing section "[global]"
Processing section "[netlogon]"
Processing section "[sysvol]"
Processing section "[data]"
Initialising default vfs hooks
Initialising custom vfs hooks from [/[Default VFS]/]
Initialising custom vfs hooks from [full_audit]
load_module_absolute_path: Module '/usr/lib/samba/vfs/full_audit.so' loaded
Initialising custom vfs hooks from [streams_xattr]
load_module_absolute_path: Module '/usr/lib/samba/vfs/streams_xattr.so' loaded
Segmentation fault (core dumped)

This causes following error:

/usr/sbin/samba_kcc: Could not find machine account in secrets database: Failed to fetch machine account password for SAMBA from both secrets.ldb (Could not find entry to match filter: '(&(flatname=SAMBA)(objectclass=primaryDomain))' base: 'cn=Primary Domains': No such object: dsdb_search at ../source4/dsdb/common/util.c:4641) and from /var/lib/samba/private/secrets.tdb: NT_STATUS_CANT_ACCESS_DOMAIN_INFO
indication commented 5 years ago

full_audit may not work on samba-tool domain provision. After removed full_audit , it works.