Test centos6.8 using Samba to install Windows AD

Source: Internet
Author: User
Tags xsl administrator password install perl openldap

An Environment introduction:

1. Prepare the installation environment:
System: centos6.8 x64

2. Dependent # 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



# yum Install autoconf automake gdb krb5-devel \
Openldap-devel make Pam-devel python-devel docbook-style-xsl \
Libacl-devel Libattr-devel libxslt

3-File system requirements:
To change the shared directory:

EXT4 System:
Vim/etc/fstab
 

/dev//srv/samba/demo ext4 defaults,barrier=1 1 1


4. Installation directory:/usr/local/samba
IP range:10.0.0.1-10.0.0.254
IP network:10.0.0.0/24
Subnet mask:255.255.255.0
Default gateway:10.0.0.254

5.AD Information:
AD Domain name:dcone.example.com
NetBIOS Domain Name:dcone
AD DNS name:dcone.example.com
AD Kerberos Realm:dcone. example.com
LDAP Domain dn:dc=dcone,dc=example,dc=com
Domain Administrator:dcone\administrator
Domain Administrator Password:456456aaab
DNS servers:10.0.0.1

6.AD Domain Control
Important Catalogue:

System binaries ("Samba", etc):/usr/local/samba/sbin/
Other binaries ("smbclient", etc):/usr/local/samba/bin/
Private dir (AD database, etc):/usr/local/samba/private/
Cache Directory:/usr/local/samba/var/cache/
SysVol Share:/usr/local/samba/var/locks/sysvol/
Netlogon Share:/usr/local/samba/var/locks/sysvol/samdom.example.com/scripts/

7. Domain Control Data:
Primary Domain Controller (PDC)
AD DC HOSTNAME:PDC
IP address:10.0.0.1

AD DC HOSTNAME:DC1
IP address:10.0.0.1
Server role:domain Controller (DC)
Act as DNS Server:yes


8. Establish the domain and check the/etc/hosts file configuration:

127.0.0.1 Localhost.localdomain localhost10.0.0.1 dcone.example.com dcone


Two. Installation process:

1. Download: https://www.samba.org/
Samba-4.4.5.tar.gz

$ tar-zxf samba-4.4.5.tar.gz$ CD samba-4.4.5$./configuremakemake Install

2.vim/etc/profile

Export path=/usr/local/samba/bin/:/usr/local/samba/sbin/: $PATHsource/etc/profile

3. #samba-tool Domain provision--use-rfc2307--interactive
Error prompt password too simple: password does not meet the complexity criteria

4. Start
# Samba

5. Test:
$ smbclient-l localhost-u%
$ smbclient//localhost/netlogon-uadministrator-c ' ls '
Enter Administrator ' s password:
Domain=[example] os=[windows 6.1] Server=[samba 4.4.5]
. D 0 Sun Jul 17 14:26:43 2016
.. D 0 Sun Jul 17 14:28:58 2016

6795192 blocks of size 1024. 3240860 blocks Available

6. Configuration: DNS
Vim/etc/resolv.conf
Domain dcone.example.com
NameServer 10.0.0.1
7. Test DNS
~]# host-t SRV _ldap._tcp.example.com
_ldap._tcp.example.com has SRV record 0 389 dcone.example.com.

~]# host-t SRV _kerberos._udp.example.com
_kerberos._udp.example.com has SRV record 0 dcone.example.com.

~]# host-t A dcone.example.com.
Dcone.example.com has address 10.0.0.1
8. Configuring Kerberos Authentication
# ls-sf/usr/local/samba/private/krb5.conf/etc/krb5.conf

The above can find a Windows machine to add domain!!!
-----------------------------------------------------------------
Three. Sharing settings:

#mkdir-P/srv/samba/demo/
#vim/usr/local/samba/etc/smb.conf
[Demo]
Path =/srv/samba/demo/
Read Only = no
# Smbcontrol All Reload-config
Four. domain user management and sharing management (via Windows client, install Adminpak.msi)

This article is from the "Starseven" blog, make sure to keep this source http://lcpljc.blog.51cto.com/200989/1829312

Test centos6.8 using Samba to install Windows AD

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.