Adaugarea unui Domain Controller Samba intr-un Active Directory

Configurare noua (How To)

Situatie

Pentru a adauga la domeniul subdomeniu.domeniu.com un Domain Controller Samba se pot urma pasii de mai jos:

Solutie

Pasi de urmat

Autentificare cu utilizator si parola:

samba-tool domain join subdomeniu.domeniu.com DC -U"SUBDOMENIU\administrator"

Kerberos, metoda 1:

samba-tool domain join subdomeniu.domeniu.com DC -k yes

Kerberos , metoda 2:

samba-tool domain join subdomeniu.domeniu.com DC --krb5-ccache=/tmp/krb5cc_0

Output-ul oricarei comenzi va fi :

Finding a writeable DC for domain 'subdomeniu.domeniu.com'
Found DC dc1.samdom.example.com
Password for [SAMDOM\administrator]:
workgroup is SAMDOM
realm is samdom.example.com
Adding CN=DC2,OU=Domain Controllers,DC=subdomeniu,DC=domeniu,DC=com
Adding CN=DC2,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=subdomeniu,DC=domeniu,DC=com
Adding CN=NTDS Settings,CN=DC2,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=subdomeniu,DC=domeniu,DC=com
Adding SPNs to CN=DC2,OU=Domain Controllers,DC=subdomeniu,DC=domeniu,DC=com
Setting account password for DC2$
Enabling account
Calling bare provision
Looking up IPv4 addresses
Looking up IPv6 addresses
No IPv6 address will be assigned
Setting up share.ldb
Setting up secrets.ldb
Setting up the registry
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
A Kerberos configuration suitable for Samba 4 has been generated at /usr/local/samba/private/krb5.conf
Provision OK for domain DN DC=subdomeniu,DC=domeniu,DC=com
Starting replication
Schema-DN[CN=Schema,CN=Configuration,DC=subdomeniu,DC=domeniu,DC=com] objects[402/1550] linked_values[0/0]
Schema-DN[CN=Schema,CN=Configuration,DC=subdomeniu,DC=domeniu,DC=com] objects[804/1550] linked_values[0/0]
Schema-DN[CN=Schema,CN=Configuration,DC=subdomeniu,DC=domeniu,DC=com] objects[1206/1550] linked_values[0/0]
Schema-DN[CN=Schema,CN=Configuration,DC=subdomeniu,DC=domeniu,DC=com] objects[1550/1550] linked_values[0/0]
Analyze and apply schema objects
Partition[CN=Configuration,DC=subdomeniu,DC=domeniu,DC=com] objects[402/1618] linked_values[0/0]
Partition[CN=Configuration,DC=subdomeniu,DC=domeniu,DC=com] objects[804/1618] linked_values[0/0]
Partition[CN=Configuration,DC=subdomeniu,DC=domeniu,DC=com] objects[1206/1618] linked_values[0/0]
Partition[CN=Configuration,DC=subdomeniu,DC=domeniu,DC=com] objects[1608/1618] linked_values[0/0]
Partition[CN=Configuration,DC=subdomeniu,DC=domeniu,DC=com] objects[1618/1618] linked_values[42/0]
Replicating critical objects from the base DN of the domain
Partition[DC=subdomeniu,DC=domeniu,DC=com] objects[100/100] linked_values[23/0]
Partition[DC=subdomeniu,DC=domeniu,DC=com] objects[386/286] linked_values[23/0]
Done with always replicated NC (base, config, schema)
Replicating DC=DomainDnsZones,DC=subdomeniu,DC=domeniu,DC=com
Partition[DC=DomainDnsZones,DC=subdomeniu,DC=domeniu,DC=com] objects[44/44] linked_values[0/0]
Replicating DC=ForestDnsZones,DC=subdomeniu,DC=domeniu,DC=com
Partition[DC=ForestDnsZones,DC=subdomeniu,DC=domeniu,DC=com] objects[19/19] linked_values[0/0]
Committing SAM database
Sending DsReplicaUpdateRefs for all the replicated partitions
Setting isSynchronized and dsServiceName
Setting up secrets database
Joined domain DOMENIU (SID S-1-5-21-469703510-2364959079-1506205053) as a DC

Tip solutie

Permanent

Voteaza

(15 din 32 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?