TACACS+ နဲ့ Windows AD ကိုတွဲပြီး အသုံးပြုနည်း – အပိုင်း (၂)
Windows AD တွင် user group ကို setup လုပ်ပုံ
# adding "enabler" security group to Windows AD domain
PS C:Userstyla.GNU> New-ADGroup -Name "enabler" -SamAccountName enabler -GroupCategory Security -GroupScope Global -DisplayName "enabler" -Path "CN=Users,DC=GNU,DC=NET" -Description "Privilege 15 admins"
# adding "reader" security group to Windows AD domain
PS C:Userstyla.GNU> New-ADGroup -Name "reader" -SamAccountName reader -GroupCategory Security -GroupScope Global -DisplayName "reader" -Path "CN=Users,DC=GNU,DC=NET" -Description "Restricted read-only users"
# adding "temper" security group to Windows AD domain
PS C:Userstyla.GNU> New-ADGroup -Name "temper" -SamAccountName temper -GroupCategory Security -GroupScope Global -DisplayName "temper" -Path "CN=Users,DC=GNU,DC=NET" -Description "Temporary Privilege 15 access to edge devices"# Import Active Directory Module in PowerShell
PS C:Userstyla.GNU> Import-Module ActiveDirectory
# Add new AD user account
PS C:Userstyla.GNU> New-ADUser tyla.lin -UserPrincipalName tyla.lin@gnu.net
# Set newly created AD user account's password
PS C:Userstyla.GNU> Set-ADAccountPassword -Identity tyla.lin
Please enter the current password for "CN=tyla.lin,CN=Users,DC=gnu,DC=net"
Password:
Please enter the desired password for "CN=tyla.lin,CN=Users,DC=gnu,DC=net"
Password: ***********
Repeat Password: ***********
# Enable the new AD user account
PS C:Userstyla.GNU> Enable-ADAccount -Identity tyla.lin
# Verify the new AD user account
PS C:Userstyla.GNU> Get-ADUser tyla.lin
DistinguishedName : CN=tyla.lin,CN=Users,DC=gnu,DC=net
Enabled : True
GivenName :
Name : tyla.lin
ObjectClass : user
ObjectGUID : fa260d1c-3de5-4939-b6b7-052ff5ce0e2f
SamAccountName : tyla.lin
SID : S-1-5-21-3725648376-1897747198-2438019021-1119
Surname :
UserPrincipalName : tyla.lin@gnu.net
# Add the newly created AD user account to enabler AD security users group
PS C:Userstyla.GNU> Add-ADGroupMember -Identity enabler -Member tyla.lin
# Verify the enabler group's membership
PS C:Userstyla.GNU> Get-ADGroupMember enabler
distinguishedName : CN=tyla.lin,CN=Users,DC=gnu,DC=net
name : tyla.lin
objectClass : user
objectGUID : fa260d1c-3de5-4939-b6b7-052ff5ce0e2f
SamAccountName : tyla.lin
SID : S-1-5-21-3725648376-1897747198-2438019021-1119
PreviousTACACS+ နဲ့ Windows AD ကိုတွဲပြီး အသုံးပြုနည်း – အပိုင်း (၁)NextFreeRADIUS နဲ့ PPPoE Authentication အပိုင်း (၁)
Last updated
