martin
(usa Slackware)
Enviado em 03/10/2016 - 17:40h
root@bdc:~# host -t SRV _ldap._tcp.MEUDOMINIO.NET
_ldap._tcp.MEUDOMINIO.NET has SRV record 0 100 389 bdc.MEUDOMINIO.NET.
_ldap._tcp.MEUDOMINIO.NET has SRV record 0 100 389 dc.MEUDOMINIO.NET.
root@bdc:~# host -t SRV _kerberos._udp.MEUDOMINIO.NET
_kerberos._udp.MEUDOMINIO.NET has SRV record 0 100 88 dc.MEUDOMINIO.NET.
_kerberos._udp.MEUDOMINIO.NET has SRV record 0 100 88 bdc.MEUDOMINIO.NET.
root@bdc:~# host -t A dc.MEUDOMINIO.NET
dc.MEUDOMINIO.NET has address 192.168.1.4
root@bdc:~# host -t A bdc.MEUDOMINIO.NET
bdc.MEUDOMINIO.NET has address 192.168.10.4
root@bdc:~# smbclient -L localhost -U%
Domain=[MEUDOMINIO] OS=[Windows 6.1] Server=[Samba 4.3.4-Zentyal]
Sharename Type Comment
--------- ---- -------
sysvol Disk
IPC$ IPC IPC Service (BDC Itapevi)
Domain=[MEUDOMINIO] OS=[Windows 6.1] Server=[Samba 4.3.4-Zentyal]
Server Comment
--------- -------
Workgroup Master
--------- -------
WORKGROUP BDC
root@bdc:~# smbclient //localhost/netlogon -Umwinfo 'MINHASENHA' -c 'ls'
Domain=[MEUDOMINIO] OS=[Windows 6.1] Server=[Samba 4.3.4-Zentyal]
. D 0 Tue Sep 27 12:11:57 2016
.. D 0 Tue Sep 27 12:11:57 2016
6069532 blocks of size 1024. 3558312 blocks available
root@bdc:~# smbclient //dc/netlogon -Umwinfo 'MINHASENHA' -c 'ls'
Domain=[MEUDOMINIO] OS=[Windows Server 2008 R2 Standard 7601 Service Pack 1] Server=[Windows Server 2008 R2 Standard 6.1]
. D 0 Thu Mar 17 14:09:39 2016
.. D 0 Thu Mar 17 14:09:39 2016
BGInfo-adalove.vbs A 203 Thu Aug 27 10:45:59 2015
61010597 blocks of size 4096. 39924801 blocks available
root@bdc:~# smbclient -L dc -U%
Domain=[MEUDOMINIO] OS=[Windows Server 2008 R2 Standard 7601 Service Pack 1] Server=[Windows Server 2008 R2 Standard 6.1]
Sharename Type Comment
--------- ---- -------
Error returning browse list: NT_STATUS_ACCESS_DENIED
Domain=[MEUDOMINIO] OS=[Windows Server 2008 R2 Standard 7601 Service Pack 1] Server=[Windows Server 2008 R2 Standard 6.1]
Server Comment
--------- -------
Workgroup Master
--------- -------
root@bdc:~#
root@bdc:~# kinit administrator
administrator@MEUDOMINIO.NET's Password:
root@bdc:~# klist
Credentials cache: FILE:/tmp/krb5cc_0
Principal: administrator@MEUDOMINIO.NET
Issued Expires Principal
Oct 3 17:37:08 2016 Oct 4 03:36:38 2016 krbtgt/MEUDOMINIO.NET@MEUDOMINIO.NET
root@bdc:~#
root@bdc:~# samba-tool drs showrepl
ldb_wrap open of secrets.ldb
GENSEC backend 'gssapi_spnego' registered
GENSEC backend 'gssapi_krb5' registered
GENSEC backend 'gssapi_krb5_sasl' registered
GENSEC backend 'spnego' registered
GENSEC backend 'schannel' registered
GENSEC backend 'naclrpc_as_system' registered
GENSEC backend 'sasl-EXTERNAL' registered
GENSEC backend 'ntlmssp' registered
GENSEC backend 'http_basic' registered
GENSEC backend 'http_ntlm' registered
GENSEC backend 'krb5' registered
GENSEC backend 'fake_gssapi_krb5' registered
Using binding ncacn_ip_tcp:bdc.MEUDOMINIO.NET[,seal]
resolve_lmhosts: Attempting lmhosts lookup for name bdc.MEUDOMINIO.NET<0x20>
resolve_lmhosts: Attempting lmhosts lookup for name bdc.MEUDOMINIO.NET<0x20>
resolve_lmhosts: Attempting lmhosts lookup for name bdc.MEUDOMINIO.NET<0x20>
Default-First-Site-Name\BDC
DSA Options: 0x00000001
DSA object GUID: 85ff735b-ee12-478a-8ed6-ee694e1ba14f
DSA invocationId: 855a191a-7bfb-428e-a7e9-4bb6edcdcbd9
==== INBOUND NEIGHBORS ====
DC=MEUDOMINIO,DC=NET
Default-First-Site-Name\DC via RPC
DSA object GUID: bafa94d7-996e-4898-83ff-89fb8e1774f5
Last attempt @ Mon Oct 3 17:34:25 2016 BRT was successful
0 consecutive failure(s).
Last success @ Mon Oct 3 17:34:25 2016 BRT
CN=Configuration,DC=MEUDOMINIO,DC=NET
Default-First-Site-Name\DC via RPC
DSA object GUID: bafa94d7-996e-4898-83ff-89fb8e1774f5
Last attempt @ Mon Oct 3 17:31:37 2016 BRT was successful
0 consecutive failure(s).
Last success @ Mon Oct 3 17:31:37 2016 BRT
DC=ForestDnsZones,DC=MEUDOMINIO,DC=NET
Default-First-Site-Name\DC via RPC
DSA object GUID: bafa94d7-996e-4898-83ff-89fb8e1774f5
Last attempt @ Mon Oct 3 17:31:37 2016 BRT was successful
0 consecutive failure(s).
Last success @ Mon Oct 3 17:31:37 2016 BRT
DC=DomainDnsZones,DC=MEUDOMINIO,DC=NET
Default-First-Site-Name\DC via RPC
DSA object GUID: bafa94d7-996e-4898-83ff-89fb8e1774f5
Last attempt @ Mon Oct 3 17:32:08 2016 BRT was successful
0 consecutive failure(s).
Last success @ Mon Oct 3 17:32:08 2016 BRT
CN=Schema,CN=Configuration,DC=MEUDOMINIO,DC=NET
Default-First-Site-Name\DC via RPC
DSA object GUID: bafa94d7-996e-4898-83ff-89fb8e1774f5
Last attempt @ Mon Oct 3 17:31:37 2016 BRT was successful
0 consecutive failure(s).
Last success @ Mon Oct 3 17:31:37 2016 BRT
==== OUTBOUND NEIGHBORS ====
DC=MEUDOMINIO,DC=NET
Default-First-Site-Name\DC via RPC
DSA object GUID: bafa94d7-996e-4898-83ff-89fb8e1774f5
Last attempt @ Mon Oct 3 17:16:34 2016 BRT was successful
0 consecutive failure(s).
Last success @ Mon Oct 3 17:16:34 2016 BRT
CN=Configuration,DC=MEUDOMINIO,DC=NET
Default-First-Site-Name\DC via RPC
DSA object GUID: bafa94d7-996e-4898-83ff-89fb8e1774f5
Last attempt @ Mon Oct 3 17:16:29 2016 BRT was successful
0 consecutive failure(s).
Last success @ Mon Oct 3 17:16:29 2016 BRT
DC=ForestDnsZones,DC=MEUDOMINIO,DC=NET
Default-First-Site-Name\DC via RPC
DSA object GUID: bafa94d7-996e-4898-83ff-89fb8e1774f5
Last attempt @ Mon Oct 3 17:16:34 2016 BRT was successful
0 consecutive failure(s).
Last success @ Mon Oct 3 17:16:34 2016 BRT
DC=DomainDnsZones,DC=MEUDOMINIO,DC=NET
Default-First-Site-Name\DC via RPC
DSA object GUID: bafa94d7-996e-4898-83ff-89fb8e1774f5
Last attempt @ Mon Oct 3 17:31:50 2016 BRT was successful
0 consecutive failure(s).
Last success @ Mon Oct 3 17:31:50 2016 BRT
CN=Schema,CN=Configuration,DC=MEUDOMINIO,DC=NET
Default-First-Site-Name\DC via RPC
DSA object GUID: bafa94d7-996e-4898-83ff-89fb8e1774f5
Last attempt @ Mon Oct 3 17:16:34 2016 BRT was successful
0 consecutive failure(s).
Last success @ Mon Oct 3 17:16:34 2016 BRT
==== KCC CONNECTION OBJECTS ====
Connection --
Connection name: 8dbe8cab-48c1-4de5-9481-04a13a85b7b3
Enabled : TRUE
Server DNS name : DC.MEUDOMINIO.NET
Server DN name : CN=NTDS Settings,CN=DC,CN=Servers,CN=Default-First-Sit e-Name,CN=Sites,CN=Configuration,DC=MEUDOMINIO,DC=NET
TransportType: RPC
options: 0x00000001
Warning: No NC replicated for Connection!