Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to build primary domain controller in RHEL4 system

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to build the main domain controller in the RHEL4 system, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, let the editor take you to understand it.

The domain controller is responsible for managing the whole windows domain and all the computers in the domain, so it is of great significance to the Windows system. But how to establish the primary domain controller in the RHEL4 system?

We use Samba to build the primary domain controller in the RHEL4 system:

# # #

System environment: RHEL4 [2.6.9-5.EL]

Software version:

Samba-3.0.10-1.4E

Samba-common-3.0.10-1.4E

Samba-client-3.0.10-1.4E

Target function:

Here, only the samba server is used as the PDC primary domain controller, and the host in the network can join the domain and log in using the domain account and roam the user profile. AD and domain account management are not stated here.

Domain controller [RHEL4]:

Netbiosname:SambaPDC

Domainname:redhat.com

Eth2:192.168.1.1/24

Domain member hosts [Win2003]:

Netbiosname:xiyuan

Eth0:192.168.1.100/24

# # #

1. Domain controller

1 > samba configuration [list only major related configurations]

[global]

Domain name corresponding to workgroup=redhat.com//

Netbiosname=SambaPDC serverstring=Samba-PDC-Server security=user socketoptions=TCP_NODELAYSO_RCVBUF=81928192SO_SNDBUF=8192 localmaster=yes oslevel=64 domainmaster=yes preferredmaster=yes domainlogons=yes logonscript=netlogon.bat logonpath=\% L\ Profiles\% U logonhome=\% L\% U\ .profile logondrive=T:; adduserscript=/usr/sbin/useradd-d/dev/null-gmachines-s/bin/falsev%U unixcharset=cp936 [homes] browseable=no writeable=yes [netlogon] path=/etc/samba/netlogon writelist=root readonly=yes browseable=no sharemodes=no [Profiles] path=/etc/samba/Profiles validusers=rootkenthy writeable=yes browseable=no createmask=0765 2 > samba user Settings # useraddkenthy Passwdkenthy # smbpasswd-aroot # smbpasswd-akenthy # groupaddmachines # useradd-d/dev/null-gmachines-s/bin/falsexiyuan$ # passwd-lxiyuan$ # smbpasswd-amxiyuan$

3 > Domain login directory settings

# mkdir-p/etc/samba/netlogon/scripts # mkdir-p/etc/samba/Profiles # chmod1777/etc/samba/Profiles # su-kenthy $cd/etc/samba/Profiles $mkdirkenthy

4 > DNS server configuration to provide name resolution for redhat.com domain [process]

5 > start the service

# servicesmbstart

2. Domain member hosts [WinXP or Win2003]

1 > find the WinXP_PlainPassword.reg and WinXP_SignOrSeal.reg files in the / usr/share/doc/samba-3.0.10/registry/ directory on the samba server, copy them to the windows member host and execute them. Or manually edit the registry file to import the following:

WindowsRegistryEditorVersion5.00 [HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Services\ lanmanworkstation\ parameters] "enableplaintextpassword" = dword:00000001 "enablesecuritysignature" = dword:00000001 "requiresecuritysignature" = dword:00000000 "ServiceDll" = hex (2): 25, 0000, 53pr, 73pr, 73pr, 73pr, 74pr, 6dpl, 6dpl, 6dpl, 6dpl, 6f, 5cpl, 5cpr, 500pr, 300pr, 700pr, 700pr, 700pr, 700pr, 300pr, 300pr, 300pr, 300pr, 300pr, 300pr, 300pr, 600pr, 600pr, 600pr, 600cp, 600cp, 600cp, 6c00e0000, 600c00c0000, 6c00c00c00c00c0000 (7): [HKEY_LOCAL_MACHINE\ SYSTEM CurrentControlSet\ Netlogon\ requiresignorseal]

2 > point the DNS server to PDC, in "my computer"-- > "Properties"-- > "computer name"-- > "change"-- > "belong to"-- > "Domain", fill in "redhat.com", enter the root user name and password according to the prompt, and successfully join the redhat.com domain after verification.

3 > after logging out, log in to the member host using the set domain user, and view and verify the user profile roaming and other functions.

Thank you for reading this article carefully. I hope the article "how to build the main domain controller in the RHEL4 system" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report