[root@f32 ~]# kinit administrator Password for administrator@TEST.JP: [root@f32 ~]# net ads info LDAP server: 192.168.1.2 LDAP server name: f32.test.jp Realm: TEST.JP Bind Path: dc=TEST,dc=JP LDAP port: 389 Server time: 水, 04 3月 2020 13:34:50 JST KDC server: 192.168.1.2 Server time offset: 0 Last machine account password change: 水, 04 3月 2020 13:30:43 JST [root@f32 ~]# samba-tool user add chibi Note: samba-tool user add is deprecated. Please use samba-tool user create for the same function. New Password: Retype Password: User 'chibi' created successfully [root@f32 ~]# wbinfo -u TEST\administrator TEST\guest TEST\krbtgt TEST\chibi [root@f32 ~]# wbinfo -n chibi S-1-5-21-327220636-2223179890-4129240002-1103 SID_USER (1) [root@f32 ~]# host -4 f32 f32.test.jp has address 192.168.1.2 f32.test.jp has IPv6 address 2400:4052:46e0:b700:f10b:b47f:c900:66a3 [root@f32 ~]# host -t SRV _ldap._tcp.test.jp _ldap._tcp.test.jp has SRV record 0 100 389 f32.test.jp. [root@f32 ~]# host -t SRV _kerberos._udp.test.jp _kerberos._udp.test.jp has SRV record 0 100 88 f32.test.jp. [root@f32 ~]# host -t A f32.test.jp. f32.test.jp has address 192.168.1.2 [root@f32 ~]# cat /etc/redhat-release Fedora release 32 (Thirty Two) [root@f32 ~]# samba -V Version 4.12.0 [root@f32 ~]# smbclient -L localhost -U% Sharename Type Comment --------- ---- ------- sysvol Disk netlogon Disk IPC$ IPC IPC Service (Samba 4.12.0) SMB1 disabled -- no workgroup available [root@f32 ~]# smbclient //localhost/netlogon -Uadministrator Enter TEST\administrator's password: Try "help" to get a list of possible commands. smb: \> ls . D 0 Wed Mar 4 13:30:39 2020 .. D 0 Wed Mar 4 13:30:43 2020 41921540 blocks of size 1024. 38946444 blocks available smb: \> exit [root@f32 ~]# smbclient //localhost/sysvol -Uadministrator Enter TEST\administrator's password: Try "help" to get a list of possible commands. smb: \> ls . D 0 Wed Mar 4 13:30:43 2020 .. D 0 Wed Mar 4 13:34:30 2020 test.jp D 0 Wed Mar 4 13:30:43 2020 41921540 blocks of size 1024. 38946444 blocks available smb: \> exit [root@f32 ~]# net ads lookup Information for Domain Controller: 192.168.1.2 Response Type: LOGON_SAM_LOGON_RESPONSE_EX GUID: 54113437-072e-4712-8fb6-930911581512 Flags: Is a PDC: yes Is a GC of the forest: yes Is an LDAP server: yes Supports DS: yes Is running a KDC: yes Is running time services: yes Is the closest DC: yes Is writable: yes Has a hardware clock: yes Is a non-domain NC serviced by LDAP server: no Is NT6 DC that has some secrets: no Is NT6 DC that has all secrets: yes Runs Active Directory Web Services: no Runs on Windows 2012 or later: no Forest: test.jp Domain: test.jp Domain Controller: f32.test.jp Pre-Win2k Domain: TEST Pre-Win2k Hostname: F32 Server Site Name: Default-First-Site-Name Client Site Name: Default-First-Site-Name NT Version: 5 LMNT Token: ffff LM20 Token: ffff [root@f32 ~]# dig test.jp ; <<>> DiG 9.11.14-RedHat-9.11.14-5.fc32 <<>> test.jp ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59246 ;; flags: qr aa rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;test.jp. IN A ;; ANSWER SECTION: test.jp. 900 IN A 192.168.1.2 ;; AUTHORITY SECTION: test.jp. 3600 IN SOA f32.test.jp. hostmaster.test.jp. 1 900 600 86400 3600 ;; Query time: 0 msec ;; SERVER: 192.168.1.2#53(192.168.1.2) ;; WHEN: 水 3月 04 13:38:50 JST 2020 ;; MSG SIZE rcvd: 92 [root@f32 ~]# samba-tool domain level show Domain and forest function level for domain 'DC=test,DC=jp' Forest function level: (Windows) 2008 R2 Domain function level: (Windows) 2008 R2 Lowest function level of a DC: (Windows) 2008 R2 [root@f32 ~]# samba-tool fsmo show SchemaMasterRole owner: CN=NTDS Settings,CN=F32,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=test,DC=jp InfrastructureMasterRole owner: CN=NTDS Settings,CN=F32,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=test,DC=jp RidAllocationMasterRole owner: CN=NTDS Settings,CN=F32,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=test,DC=jp PdcEmulationMasterRole owner: CN=NTDS Settings,CN=F32,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=test,DC=jp DomainNamingMasterRole owner: CN=NTDS Settings,CN=F32,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=test,DC=jp DomainDnsZonesMasterRole owner: CN=NTDS Settings,CN=F32,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=test,DC=jp ForestDnsZonesMasterRole owner: CN=NTDS Settings,CN=F32,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=test,DC=jp [root@f32 ~]# samba-tool fsmo transfer --role=all This DC already has the 'rid' FSMO role This DC already has the 'pdc' FSMO role This DC already has the 'naming' FSMO role This DC already has the 'infrastructure' FSMO role This DC already has the 'schema' FSMO role This DC already has the 'domaindns' FSMO role This DC already has the 'forestdns' FSMO role [root@f32 ~]# wbinfo -t checking the trust secret for domain TEST via RPC calls succeeded [root@f32 ~]# wbinfo -g TEST\cert publishers TEST\ras and ias servers TEST\allowed rodc password replication group TEST\denied rodc password replication group TEST\dnsadmins TEST\enterprise read-only domain controllers TEST\domain admins TEST\domain users TEST\domain guests TEST\domain computers TEST\domain controllers TEST\schema admins TEST\enterprise admins TEST\group policy creator owners TEST\read-only domain controllers TEST\dnsupdateproxy [root@f32 ~]# klist Ticket cache: FILE:/tmp/krb5cc_0 Default principal: administrator@TEST.JP Valid starting Expires Service principal 2020-03-04T13:34:44 2020-03-04T23:34:44 krbtgt/TEST.JP@TEST.JP renew until 2020-03-05T13:34:40 [root@f32 ~]# smbclient -L localhost -U% Sharename Type Comment --------- ---- ------- sysvol Disk netlogon Disk IPC$ IPC IPC Service (Samba 4.12.0) SMB1 disabled -- no workgroup available [root@f32 ~]#