AD属性对照表

上传人:pu****.1 文档编号:504220332 上传时间:2023-07-21 格式:DOCX 页数:7 大小:34.45KB
返回 下载 相关 举报
AD属性对照表_第1页
第1页 / 共7页
AD属性对照表_第2页
第2页 / 共7页
AD属性对照表_第3页
第3页 / 共7页
AD属性对照表_第4页
第4页 / 共7页
AD属性对照表_第5页
第5页 / 共7页
点击查看更多>>
资源描述

《AD属性对照表》由会员分享,可在线阅读,更多相关《AD属性对照表(7页珍藏版)》请在金锄头文库上搜索。

1、“常规”标签姓Sn名Givename英文缩写Initials显示名称displayName描述Description办公室physicalDeliveryOfficeName电话号码telephoneNumber电话号码:其它otherTelephone多个以英文分号分隔电子邮件Mail网页wWWHomePage网页:其它url多个以英文分号分隔“地址”标签国家/地区C如:中国CN,英国GB省/自治区St市/县L街道streetAddress邮政信箱postOfficeBox邮政编码postalCode“帐户”标签用户登录名userPrincipalName形如:用户登录名(以前版本)sAMA

2、ccountName形如:S1登录时间logonHours登录到userWorkstations多个以英文逗号分隔用户帐户控制userAccountControl(启用:512,禁用:514,密码永不过期:66048)帐户过期accountExpires“配置文件”标签酉已置文件路径profilePath登录脚本scriptPath主文件夹:本地路径homeDirectory连接homeDrive到i|homeDirectory“电话”标签家庭电话homePhone(若是其它,在前面加other。)寻呼和,Pager如:otherhomePhone。移动电话mobile若多个以英文分号分隔。传

3、直FacsimileTelephoneNumherIP电话ipPhoney注释Info单位标签职务Title部门Department公司Company“隶属于”标签隶属干memberOf用户组的DN不需使用引号,多个用分号分隔拨入标签远程访问权限(拨入或VPN)msNPAllowDialin允许访问值:TRUE拒绝访问值:FALSE冋拨选项msRADIUSServiceType由呼叫方设置或回拨到值:4总是回拨到ImsRADIUSCallbackNumber名:GivenName属性显示名称属性名称FirstNamegivenNameLastNamesnInitialsinitialsDesc

4、riptiondescriptionOfficephysicalDeliveryOfficeNameTelephoneNumbertelephoneNumberE-MailmailWebPagewwwHomePageWebPage:OtherurlTelephone:OtherotherTelephone帐号属性显示名称属性名称UserLogonNameuserPrincipalNameUserlogonname(pre-Windows2000)sAMAccountnameLogonHourslogonHoursLogOnTologonworkstationAccountislockedout

5、userAccountControlUsermustchangepasswordatnextlogonpwdLastSetUsercannotchangepasswordN/AOtherAccountOptionsuserAccountControlAccountExpiresaccountExpires地址属性显示名称属性名称StreetstreetAddressP.O.BoxpostOfficeBoxCitylState/ProvincestZip/PostalCodepostalCodeCountry/Regionc,co,andcountryCode成员属性显示名称属性名称Member

6、ofmemberOfprimaryGroupIDSetPrimaryGroup组织属性显示名称属性名称TitletitleDepartmentdepartmentCompanycompanyManager:NamemanagerDirectReportsdirectReports外型属性显示名称属性名称ProfilePathprofilePathLogonScriptscriptPathHomeFolder:LocalPathhomeDirectoryHomeFolder:ConnecthomeDriveHomeFolder:TohomeDirectory电话相关属性显示名称属性名称Homet

7、elephoneNumberHome:OtherotherTelephonePagerpagerPager:OtherpagerOtherMobilemobileMobile:OtherotherMobileFaxfacsimileTelephoneNumberFax:OtherotherFacsimileTelephoneNumberIPphoneipPhoneotherlpPhoneinfoIPphone:OtherNotesC#操作AD例子:GetlJserFntrypuhlicstaticDirectoryEntryGetUserEntryByAccount(DirectoryEntr

8、yentry,stringaccount)DirectorySearchersearcher=newDirectorySearcher(entry);searcherFilter=(&(ohjectClass=user)(SAMAccountName=+account+SearchResultresult三searcher.FindOne();entry.Close();if(result1=null)returnresult.GetDirectoryFntry();returnnull;SetPropertypublicstaticvoidSetProperty(DirectoryFntry

9、entry,stringpropertyName,stringpropertyValue)if(entry.Properties.Contains(propertyName)if(string.lsNullOrFmpty(propertyValue)objecto=entry.PropertiespropertyName.Value;entry.PropertiespropertyName.Remove(o);elseentry.PropertiespropertyName0=propertyValue;if(string.lsNullOrFmpty(propertyValue)entry.PropertiespropertyName.Add(propertyValue);GetPropertypublicstaticstringGetProperty(DirectoryEntryentry:stringpropertyName)if(entryPropertiesContains(propertyName)returnentry.PropertiespropertyName.Value.ToString();else

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 商业/管理/HR > 商业计划书

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号