Yu-Min Space

2025年9月9日 星期二

Debian 13 使用 sssd 加入 domain

›
apt install -y adcli realmd krb5-user samba-common-bin samba-libs samba-dsdb-modules sssd sssd-tools libnss-sss libpam-sss packagekit polkit...
2025年9月2日 星期二

PHP FILETIME UNIX Time 轉換

›
UNIX時間採用世界標準時1970年1月1日00:00:00開始的秒數(不考慮閏秒)。 Windows API使用SYSTEMTIME表示年月日時分秒毫秒; FILETIME表示自世界標準時1601年1月1日00:00:00開始的100奈秒為單位  <?php functi...
2025年9月1日 星期一

Debian 使用 Google Authenticator-based Two-Factor Authentication (2FA)

›
安裝 apt install libpam-google-authenticator 編輯/etc/pam.d/sshd  加入 auth required pam_google_authenticator.so nullok 編輯 /etc/ssh/sshd_config 加入...

Windows AD accountExpires屬性

›
建立帳戶時,帳戶一開始會設定為 永不過期。 accountExpires 屬性預設值 9223372036854775807 ,對應 64 位帶正負號整數的最大值 帳戶設定到期日, accountExpires 設定為到期日的 FILETIME 值 帳戶設定到期時間為永不過期, ...

PHP 查詢 Windows AD objectGUID objectSid (string fromat)

›
 <?php function objectSid($binary_sid) {     if(strlen(decbin(~0)) == 64)  //64bit PHP     {         // Get revision, indentifier, author...

›

›
›
首頁
查看網路版

關於我自己

Yu-Min Space
廉價知識勞工
檢視我的完整簡介
技術提供:Blogger.