Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
TetraWiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
GSTN - Smaba PDC document
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
= Setup a Samba Active Directory Domain Controller = == Configure yum repository for Packages installation. == <div style="color:#00000a;">Edit /etc/yum.repos.d/local.repo </div> <div style="color:#00000a;"><nowiki># vi /etc/yum.repos.d/local.repo </nowiki></div> [[Image:Picture.png]] <div style="color:#00000a;">Make below entries. Save file and exit.</div> <div style="color:#00000a;">[local]</div> <div style="color:#00000a;">name=local</div> <div style="color:#00000a;">baseurl=file:///mnt</div> <div style="color:#00000a;">gpgcheck=0</div> <div style="color:#00000a;">enabled=1</div> [[Image:Image1.png]] == Assign the Ipv4 address and restart the network services. == <div style="color:#00000a;"><nowiki># nmcli connection modify eth0 ipv4.addresses 172.18.101.14/24 ipv4.method manual ipv4.gateway 172.18.101.1 connection.autoconnect yes ipv4.dns 172.18.101.14</nowiki></div> <div style="color:#00000a;"><nowiki># systemctl restart network.service</nowiki></div> [[Image:Image2.png]] == Assign the Ipv6 address and restart the network services. And set hostname. == <div style="color:#00000a;"><nowiki># nmcli connection modify eth0 ipv6.addresses 2404:a800:1000:d:7800::e/69 ipv6.method manual ipv6.gateway 2404:a800:1000:d:7800::1 connection.autoconnect yes ipv6.dns 2404:a800:1000:d:7800::e</nowiki></div> <div style="color:#00000a;"><nowiki># hostnamectl set-hostname gd9103.gstn.local</nowiki></div> [[Image:Image3.png]]== Edit /etc/hosts file and make below entries. == <div style="color:#00000a;"><nowiki># vi /etc/hosts</nowiki></div> <div style="color:#00000a;">172.18.101.14gd9103.gstn.localgd9103</div> <div style="color:#00000a;"></div> <div style="color:#00000a;">2404:a800:1000:d:7800::egd9103.gstn.localgd9103</div> [[Image:Image4.png]] == Restart network service. == <div style="color:#00000a;"><nowiki># systemctl restart network.service</nowiki></div> [[Image:Image5.png]] == Reboot server. == <div style="color:#00000a;"><nowiki># init 6</nowiki></div> [[Image:Image6.png]]== Install Dependencies for samba installation. == <div style="color:#00000a;"><nowiki># yum install perl gcc attr libacl-devel libblkid-devel gnutls-devel readline-devel python-devel gdb pkgconfig krb5-workstation zlib-devel setroubleshoot-server libaio-devel setroubleshoot-plugins policycoreutils-python libsemanage-python perl-ExtUtils-MakeMaker perl-Parse-Yapp perl-Test-Base popt-devel libxml2-devel libattr-devel keyutils-libs-devel cups-devel bind-utils libxslt docbook-style-xsl openldap-devel autoconf python-crypto pam-devel</nowiki></div> [[Image:Image7.png]]== Dependencies Installation is completed. == [[Image:Image8.png]] <div style="color:#00000a;"></div>= Samba Installation = == Download samba file from [https://www.samba.org/ https://www.samba.org/] and extract it. == <div style="color:#00000a;"><nowiki># tar xvzf samba-4.4.4.tar.gz</nowiki></div> [[Image:Image9.png]]== Enter in samba-4.4.4 directory and run configure command. == <div style="color:#00000a;"><nowiki># cd samba-4.4.4/</nowiki></div> <div style="color:#00000a;"><nowiki># ./configure</nowiki></div> [[Image:Image10.png]] <div style="color:#00000a;">Now configure done successfully.</div> [[Image:Image11.png]] == Run make command. == <div style="color:#00000a;"><nowiki># make</nowiki></div> [[Image:Image12.png]] <div style="color:#00000a;">Make command finished successfully.</div> [[Image:Image13.png]]== Run make install command. == <div style="color:#00000a;"><nowiki># make install</nowiki></div> [[Image:Image14.png]]== Provision a new domain: == <div style="color:#00000a;"><nowiki># /usr/local/samba/bin/samba-tool domain provision --use-rfc2307 --interactive</nowiki></div> [[Image:Image15.png]]== Provisioning completed successfully. == [[Image:Image16.png]]
Summary:
Please note that all contributions to TetraWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
TetraWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)