Samba4 installation: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
packages needed in debian to make it work: | packages needed in debian to make it work: | ||
aptitude install samba4 krb5-user | aptitude install samba4 krb5-user ntp smbclient winbind | ||
quick line with the command that I use to get an installation working: | quick line with the command that I use to get an installation working: | ||
Line 8: | Line 8: | ||
<pre> | <pre> | ||
root@sdprod:~# samba-tool domain provision --use-rfc2307 --option="interfaces=lo eth0" --option="bind interfaces only=yes" | root@sdprod:~# samba-tool domain provision --use-rfc2307 --option="interfaces=lo eth0" --option="bind interfaces only=yes" --interactive | ||
Realm [SDLAB.HQ.<company>.COM]: | Realm [SDLAB.HQ.<company>.COM]: | ||
Domain [SDLAB]: | Domain [SDLAB]: | ||
Server Role (dc, member, standalone) [dc]: | Server Role (dc, member, standalone) [dc]: | ||
DNS backend (SAMBA_INTERNAL, BIND9_FLATFILE, BIND9_DLZ, NONE) [SAMBA_INTERNAL]: | DNS backend (SAMBA_INTERNAL, BIND9_FLATFILE, BIND9_DLZ, NONE) [SAMBA_INTERNAL]: | ||
DNS forwarder IP address (write 'none' to disable forwarding) [8.8.8.8]: | DNS forwarder IP address (write 'none' to disable forwarding) [8.8.8.8]: 1.1.1.1 | ||
Administrator password: | Administrator password: | ||
Retype password: | Retype password: | ||
Line 28: | Line 28: | ||
Setting up sam.ldb rootDSE | Setting up sam.ldb rootDSE | ||
Pre-loading the Samba 4 and AD schema | Pre-loading the Samba 4 and AD schema | ||
Adding DomainDN: DC=sdlab,DC=hq,DC= | Adding DomainDN: DC=sdlab,DC=hq,DC=<company>,DC=com | ||
Adding configuration container | Adding configuration container | ||
Setting up sam.ldb schema | Setting up sam.ldb schema |
Latest revision as of 22:05, 28 January 2019
packages needed in debian to make it work:
aptitude install samba4 krb5-user ntp smbclient winbind
quick line with the command that I use to get an installation working:
samba-tool domain provision --use-rfc2307 --option="interfaces=lo eth1" --option="bind interfaces only=yes" --use-ntvfs --interactive
root@sdprod:~# samba-tool domain provision --use-rfc2307 --option="interfaces=lo eth0" --option="bind interfaces only=yes" --interactive Realm [SDLAB.HQ.<company>.COM]: Domain [SDLAB]: Server Role (dc, member, standalone) [dc]: DNS backend (SAMBA_INTERNAL, BIND9_FLATFILE, BIND9_DLZ, NONE) [SAMBA_INTERNAL]: DNS forwarder IP address (write 'none' to disable forwarding) [8.8.8.8]: 1.1.1.1 Administrator password: Retype password: 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 Adding DomainDN: DC=sdlab,DC=hq,DC=<company>,DC=com Adding configuration container Setting up sam.ldb schema Setting up sam.ldb configuration data Setting up display specifiers Modifying display specifiers 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 Adding DNS accounts Creating CN=MicrosoftDNS,CN=System,DC=sdlab,DC=hq,DC=<company>,DC=com Creating DomainDnsZones and ForestDnsZones partitions Populating DomainDnsZones and ForestDnsZones partitions Setting up sam.ldb rootDSE marking as synchronized Fixing provision GUIDs A Kerberos configuration suitable for Samba 4 has been generated at /var/lib/samba/private/krb5.conf Setting up fake yp server settings Once the above files are installed, your Samba4 server will be ready to use Server Role: active directory domain controller Hostname: sdprod NetBIOS Domain: SDLAB DNS Domain: sdlab.hq.<company>.com DOMAIN SID: S-1-5-21-2538868568-2342101659-3479953185