天天看點

Windows AD域使用者屬性對照表(綜合整理)

 “正常”标簽 

姓 Sn 

名 Givename 

英文縮寫 Initials 

顯示名稱 displayName 

描述 Description 

辦公室 physicalDeliveryOfficeName  

電話号碼 telephoneNumber 

電話号碼:其它 otherTelephone 多個以英文分号分隔 

電子郵件 Mail 

網頁 wWWHomePage 

網頁:其它 url 多個以英文分号分隔

“位址”标簽 

國家/地區 C 如:中國CN,英國GB 

省/自治區 St  

市/縣 L 

街道 streetAddress 

郵政信箱 postOfficeBox 

郵政編碼 postalCode 

  

“帳戶”标簽 

使用者登入名 userPrincipalName 形如:

使用者登入名(以前版本) sAMAccountName 形如:S1 

登入時間 logonHours  

登入到 userWorkstations 多個以英文逗号分隔 

使用者帳戶控制 userAccountControl (啟用:512,禁用:514 -- 512 + 2, 密碼永不過期:66048 -- 65536 + 512 ,使用者禁用:66050 -- 65536 + 512 + 2) microsoft Msdn

帳戶過期 accountExpires 

  

“配置檔案”标簽 

配置檔案路徑 profilePath 

登入腳本 scriptPath 

主檔案夾:本地路徑 homeDirectory 

連接配接 homeDrive 

到 homeDirectory 

“電話”标簽 

家庭電話 homePhone (若是其它,在前面加other。) 

尋呼機 Pager 如:otherhomePhone。 

行動電話 mobile 若多個以英文分号分隔。 

傳真 FacsimileTelephoneNumber  

IP電話 ipPhone 

注釋 Info 

“機關”标簽 

職務 Title 

部門 Department 

公司 Company 

“隸屬于”标簽 

隸屬于  memberOf  使用者組的DN不需使用引号, 多個用分号分隔  

“撥入”标簽 遠端通路權限(撥入或VPN) msNPAllowDialin 

允許通路 值:TRUE 

拒絕通路 值:FALSE 

回撥選項 msRADIUSServiceType 

由呼叫方設定或回撥到 值:4 

總是回撥到 msRADIUSCallbackNumber  

“環境”、“會話”、“遠端控制”、“終端服務配置檔案”、“COM+”标簽 

屬性

顯示名稱 屬性名稱
First Name givenName
Last Name sn
Initials initials
Description description
Office physicalDeliveryOfficeName
Telephone Number telephoneNumber
Telephone: Other otherTelephone
E-Mail mail
Web Page wwwHomePage
Web Page: Other url

帳号屬性:

顯示名稱 屬性名稱
UserLogon Name userPrincipalName
User logon name (pre-Windows 2000) sAMAccountname
Logon Hours logonHours
Log On To logonWorkstation
Account is locked out userAccountControl
User must change password at next logon pwdLastSet
User cannot change password N/A
Other Account Options userAccountControl
Account Expires accountExpires

位址屬性

顯示名稱 屬性名稱
Street streetAddress
P.O.Box postOfficeBox
City l
State/Province st
Zip/Postal Code postalCode
Country/Region c, co, and countryCode

成員屬性

顯示名稱 屬性名稱
Member of memberOf
Set Primary Group primaryGroupID

組織屬性

顯示名稱 屬性名稱
Title title
Department department
Company company
Manager:Name manager
Direct Reports directReports

外型屬性

顯示名稱 屬性名稱
Profile Path profilePath
Logon Script scriptPath
Home Folder: Local Path homeDirectory
Home Folder: Connect homeDrive
Home Folder: To homeDirectory

電話相關屬性

顯示名稱 屬性名稱
Home telephoneNumber
Home: Other otherTelephone
Pager pager
Pager: Other pagerOther
Mobile mobile
Mobile: Other otherMobile
Fax facsimileTelephoneNumber
Fax: Other otherFacsimileTelephoneNumber
IP phone ipPhone
IP phone: Other otherIpPhone
Notes info

最近項目中需要對大批量AD使用者屬性進行修改,如電話、手機等不唯一屬性。順便整理了個使用者屬性對應AD字段資訊,友善檢視。

1.正常屬性

AD字段 執行個體
sn
givenName
顯示名 displayname 李四
英文縮寫 initials LS
描述 description 描述資訊
辦公室 physicalDeliveryOfficeName 7樓Office
電話号碼 telephoneNumber 01056789999
電子郵件 mail [email protected]
網頁 wWWHomePage http://Lis.contoso.com

2.位址屬性

AD字段 執行個體
國家 c CN
省/自治區 st 北京
市/縣 l 北京
街道 streetAddress 酒店橋路
郵政信箱 postOfficeBox 44信箱
郵政編碼 postalCode 100000

3.電話屬性

AD字段 執行個體
家庭電話 homePhone 01098765432
尋呼機 pager 400000
行動電話 mobile 13800138000
傳真 facsimileTelephoneNumber 01098765433
IP電話 ipPhone 01098765431

4.組織屬性

AD字段 執行個體
公司 company Contoso
部門 department 資訊部
職務 title IT管理者
經理 manager 張三

繼續閱讀