顯示具有 Active Directory 標籤的文章。 顯示所有文章
顯示具有 Active Directory 標籤的文章。 顯示所有文章

2020年7月5日 星期日

AD server和DB透過DNS SRV達成高可用性

※本文章只是網路找到的解決方案,尚未實測或導入 ※

https://serverfault.com/questions/374154/how-to-make-ad-highly-available-for-applications-that-use-it-as-an-ldap-service

The correct way to do this is to use the DNS SRV records to look up the domain controller names and ports, as well as ascertain which servers to use in what order. Unfortunately, not many LDAP applications seem to support SRV record lookups.
The SRV record for Active Directory domain controllers is _ldap._tcp.domain.tld. This will return a list of hosts and ports, as well as a priority and weight for each (these values can be set using Group Policy) that together indicate which server to use.


也意外發現資料庫也開始支援DNS SRV的方式達成高可用性
MySQL 8.0.19
https://mp.weixin.qq.com/s/G3dW_GPDd1l1MJ86c7iFTA
我还在想这事儿就应该由 MySQL Connector 来实现访问链路的 Failover 和 Loadbalance, 现在有了 DNS SRV 的支持,router 不必和应用端绑定部署,也可以省了 VIP 和负载均衡,MySQL InnoDB Cluster 方案更加完善,配合 consul 等服务发现组件,更容易适配 service mesh 架构。

PostgreSQL 12.0
https://mp.weixin.qq.com/s/hGeGiqm3D52aQJsS61QoGg

2013年9月27日 星期五

查詢群組原則套用狀況

gpresult /h gpreport GPReport.html

ref:
RSOP

2012年12月2日 星期日

User UPN logon和User SamAccountName logon

UPN並不會隨著帳戶被搬移到其他網域而改變,比如原本是rex@AAA.COM,之後這個使用者被搬移到樹系中的另一個網域BBB.COM內,其UPN仍然是rex@AAA.COM,仍然可以使用rex@AAA.COM登入


http://technet.microsoft.com/en-us/library/dd861342.aspx
User UPN logon
User SamAccountName logon

http://technet.microsoft.com/zh-tw/library/dd861342.aspx
使用者 UPN 登入
使用者 UPN 登入

http://technet.microsoft.com/zh-cn/library/dd861342.aspx
用户 UPN 登录
用户 SamAccountName 登录


ping本機出現unable to contact ip driver general failure

加入網域後,用domain admin帳號登入,ping 127.0.0.1出現已下訊息 (用本機登入不會)
unable to contact ip driver general failure
因為虛擬機複製不變更SID(安全性識別碼)在網域環境下會有問題

解決方式 :
cd到C:\Windows\System32\Sysprep
執行Sysprep
選擇OOBE,勾選Generalize (一般化)

※執行後電腦名稱Hostname會被改掉,需重新加入domain,Windows需重新啟用※

ref:
http://rexitblog.blogspot.tw/2012/11/differencing-virtual-disk.html
http://technet.microsoft.com/zh-tw/library/cc721940(v=ws.10).aspx
http://mrynlin.blogspot.tw/2011/01/windows-7-sysprep.html

nltest /dsgetdc: /force

http://technet.microsoft.com/en-us/library/ee624051(WS.10).aspx

nltest /dsgetdc: /force

           DC: \\DC1.corp.contoso.com
      Address: \\2002:836b:2:1:0:5efe:10.0.0.1
     Dom Guid: e8bae90e-02c4-4489-8abd-e63353fed05a
     Dom Name: corp.contoso.com
  Forest Name: corp.contoso.com
 Dc Site Name: Default-First-Site-Name
        Flags: PDC GC DS LDAP KDC TIMESERV GTIMESERV WRITABLE DNS_DC DNS_DOMAIN
DNS_FOREST FULL_SECRET WS
The command completed successfully

windows cannot access the specified device path or file

加入domain後
用domain admin帳號登入開啟Server Manager出現此問題 (本機admin不會)

解決方式:關閉windows的UAC (User Account Control 使用者帳戶控制)
                 重新開機後,UAC 就會被關閉


【windows 2008 R2英文版關閉UAC】

2012年11月28日 星期三

2012年11月17日 星期六

WSUS伺服器

建置WSUS伺服器不需要AD環境,但是為了利用群組原則來控管Client的自動更新設定
建議使用AD環境

differencing virtual disk

http://technet.microsoft.com/en-us/library/cc720381(v=ws.10).aspx

先新增差異虛擬硬碟
在新增一個虛擬機器,該VM使用現有的虛擬硬碟(剛剛建立的差異虛擬硬碟)
因兩個硬碟的安全性識別碼(SID)一樣,必須使用SYSPREP.EXE變更SID
執行SYSPREP.EXE需勾選一般化(G)才會變更SID
SYSPREP.EXE位於%Systemroot%\System32\sysprep資料夾內
如:c:\windows\system32
不變更SID在網域環境下會有問題

ref:
http://www.dotblogs.com.tw/dotjason/archive/2009/09/29/10823.aspx

2012年10月13日 星期六

使用dcpromo開啟網域服務精靈

dcprpmo /adv

註:adv表示進階模式安裝,未加此參數也可在GUI勾選