AD属性对照表.docx_第1页
AD属性对照表.docx_第2页
AD属性对照表.docx_第3页
AD属性对照表.docx_第4页
AD属性对照表.docx_第5页
已阅读5页,还剩2页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

“常规”标签 姓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,密码永不过期:66048)帐户过期accountExpires“配置文件”标签配置文件路径profilePath登录脚本scriptPath主文件夹:本地路径homeDirectory连接homeDrive到homeDirectory“电话”标签家庭电话homePhone(若是其它,在前面加other。)寻呼机Pager如:otherhomePhone。移动电话mobile若多个以英文分号分隔。传真FacsimileTelephoneNumberIP电话ipPhone注释Info“单位”标签 职务Title部门Department公司Company“隶属于”标签 隶属于memberOf用户组的DN不需使用引号,多个用分号分隔“拨入”标签远程访问权限(拨入或VPN)msNPAllowDialin允许访问值:TRUE拒绝访问值:FALSE回拨选项msRADIUSServiceType由呼叫方设置或回拨到值:4总是回拨到msRADIUSCallbackNumber名:GivenName属性显示名称属性名称First NamegivenNameLast NamesnInitialsinitialsDescriptiondescriptionOfficephysicalDeliveryOfficeNameTelephone NumbertelephoneNumberTelephone: OtherotherTelephoneE-MailmailWeb PagewwwHomePageWeb Page: Otherurl帐号属性:显示名称属性名称UserLogon NameuserPrincipalNameUser logon name (pre-Windows 2000)sAMAccountnameLogon HourslogonHoursLog On TologonWorkstationAccount is locked outuserAccountControlUser must change password at next logonpwdLastSetUser cannot change passwordN/AOther Account OptionsuserAccountControlAccount ExpiresaccountExpires地址属性显示名称属性名称StreetstreetAddressP.O.BoxpostOfficeBoxCitylState/ProvincestZip/Postal CodepostalCodeCountry/Regionc, co, and countryCode成员属性显示名称属性名称Member ofmemberOfSet Primary GroupprimaryGroupID组织属性显示名称属性名称TitletitleDepartmentdepartmentCompanycompanyManager:NamemanagerDirect ReportsdirectReports外型属性显示名称属性名称Profile PathprofilePathLogon ScriptscriptPathHome Folder: Local PathhomeDirectoryHome Folder: ConnecthomeDriveHome Folder: TohomeDirectory电话相关属性显示名称属性名称HometelephoneNumberHome: OtherotherTelephonePagerpagerPager: OtherpagerOtherMobilemobileMobile: OtherotherMobileFaxfacsimileTelephoneNumberFax: OtherotherFacsimileTelephoneNumberIP phoneipPhoneIP phone: OtherotherIpPhoneNotesinfoC#操作AD例子:GetUserEntry public static DirectoryEntry GetUserEntryByAccount(DirectoryEntry entry, string account) DirectorySearcher searcher = new DirectorySearcher(entry); searcher.Filter = (&(objectClass=user)(SAMAccountName= + account + ); SearchResult result = searcher.FindOne(); entry.Close(); if (result != null) return result.GetDirectoryEntry(); return null; Set Property public static void SetProperty(DirectoryEntry entry, string propertyName, string propertyValue) if (entry.Properties.Contains(propertyName) if (string.IsNullOrEmpty(propertyValue) object o = entry.PropertiespropertyName.Value; entry.PropertiespropertyName.Remove(o); else entry.PropertiespropertyName0 = propertyValue; else if (string.IsNullOrEmpty(propertyValue) return; entry.PropertiespropertyName.Add(propertyValue); Get Property public static string GetProperty(DirectoryEnt

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论