苦水中的甜
2012年9月25日 星期二
AD 帳戶 到期日 寫入方式(for php)
首先寫入AD 帳戶到期日的欄位是:accountExpires
accountExpires 是以
100 nanosecond increment為單位寫入
換算方式如下:
$
account_expires_string
= (現在的
timestamp
+ 11644560000) * 10000000;
echo "<br>".$account_expires_string."\n";
$info["
accountExpires
"] =
account_expires_string
;
$info["
accountExpires
"] = 0; =>表示帳號永不到期
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言