[Samba] 3rd problem when starting samba-4.13.17

深圳_极速e栈
2022-09-08T15:09:49Z

Hello,
Compile and install samba-4.13.17 from the source code. After the installation
and configuration are completed, three problems are found:

3.ntlm_auth authentication failed
What am I doing wrong? Would appreciate your answer.


[root at myradius e_zhangiso]# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
[root at myradius e_zhangiso]# /usr/local/samba/sbin/smbd -V
Version 4.13.17

[root at myradius e_zhangiso]# cat /etc/nsswitch.conf
passwd:&nbsp; &nbsp; &nbsp;files sss winbind
shadow:&nbsp; &nbsp; &nbsp;files sss
group:&nbsp; &nbsp; &nbsp; files sss winbind

[root at myradius e_zhangiso]# cat /etc/krb5.conf
# Configuration snippets may be placed in this directory as well
#includedir /etc/krb5.conf.d/


[logging]
&nbsp;default = FILE:/var/log/krb5libs.log
&nbsp;kdc = FILE:/var/log/krb5kdc.log
&nbsp;admin_server = FILE:/var/log/kadmind.log


[libdefaults]
&nbsp;dns_lookup_realm = false
&nbsp;ticket_lifetime = 24h
&nbsp;renew_lifetime = 7d
&nbsp;forwardable = true
&nbsp;rdns = false
&nbsp;pkinit_anchors = FILE:/etc/pki/tls/certs/ca-bundle.crt
&nbsp;default_realm = TESTENTERPRISE.NET
&nbsp;default_ccache_name = KEYRING:persistent:%{uid}


[realms]
&nbsp;TESTENTERPRISE.NET = {
&nbsp; kdc = ad.testenterprise.net
&nbsp; admin_server = ad.testenterprise.net
&nbsp;}


[domain_realm]
&nbsp;.testenterprise.net = TESTENTERPRISE.NET
&nbsp;testenterprise.net = TESTENTERPRISE.NET

[root at myradius samba]# cat smbd.log
[2022/09/08&nbsp;17:34:53.249399,&nbsp; 0]
../../source3/printing/nt_printing.c:252(nt_printing_init)
&nbsp; nt_printing_init: error checking published printers:
WERR_ACCESS_DENIED
[2022/09/08&nbsp;17:34:53.252411,&nbsp; 1]
../../source3/printing/printer_list.c:234(printer_list_get_last_refresh)
&nbsp; Failed to fetch record!



[root at myradius samba]# cat winbindd.log
[2022/09/07&nbsp;22:07:49.731308,&nbsp; 1]
../../lib/ldb-samba/ldb_wrap.c:79(ldb_wrap_debug)
&nbsp; ldb: Failed to connect to
'/usr/local/samba/private/secrets.ldb' with backend 'tdb':
Unable to open tdb '/usr/local/samba/private/secrets.ldb': No such file
or directory

[root at myradius samba]# wbinfo -t
checking the trust secret for domain TESTENTERPRISE via RPC calls succeeded
[root at myradius samba]# wbinfo -a vtest1%Zsl123789
plaintext password authentication failed
Could not authenticate user vtest1%Zsl123789 with plaintext password
challenge/response password authentication succeeded
[root at myradius samba]# ntlm_auth --request-nt-key --domain =
TESTENTERPRISE.NET --username = vtest1 --password = Zsl123789
NT_STATUS_NO_SUCH_USER: The specified account does not exist. (0xc0000064)