**NOTE: This will only work in Portal Framework 6.1+!**
This article is to add custom AD fields, however we have another article for all portals that covering integrating AD, as well as Auto-creation of users from AD, and the fields it pulls in by default: Portal Authentication Options & Setting up Active Directory Profile Providers
Please see this article for information on how to add custom attributes to AD that may be used in the portal.
To add additional fields, in the web.config file add a fieldNames attribute to the provider and set the value to a comma delineated list of strings (field name in AD). Example:
Original AD profile string in web.config:
<add name="ActiveDirectoryUserProfile" description="Active Directory" connectionStringName="LDAP" attributeMapUserName="sAMAccountName" type="Passageways.Portal.Web.UserProfiles.ActiveDirectoryUserProfileProvider, Passageways.Portal.Web" />
AD profile string in web.config with fieldNames added in:
<add name="ActiveDirectoryUserProfile" description="Active Directory" connectionStringName="LDAP" fieldNames="fieldNameA,fieldNameB" attributeMapUserName="sAMAccountName" type="Passageways.Portal.Web.UserProfiles.ActiveDirectoryUserProfileProvider, Passageways.Portal.Web" />
This would add fieldnames called fieldNameA and fieldNameB from Active Directory to the portal to allow them to be used for Profile Field providers.
All available AD fields-
The Field Name on the right column will be what you can add to your Web.config.
General Tab
![]() |
|
Address Tab
|
|
Account Tab
|
|
Profile Tab
|
|
Telephone Tab
|
|
Organization Tab
|
|
Live Communications Tab
|
Here is also a full list:
Attr LDAP Name | Attr Display Name | ADUC Field |
accountExpires | Account expires | |
accountNameHistory | ||
aCSPolicyName | ||
adminCount | ||
adminDescription | ||
adminDisplayName | ||
allowedAttributes | ||
allowedAttributesEffective | ||
allowedChildClasses | ||
allowedChildClassesEffective | ||
altSecurityIdentities | ||
assistant | Assistant | |
badPasswordTime | ||
badPwdCount | ||
bridgeheadServerListBL | ||
c | Country Abbreviation | Country/region |
canonicalName | Fully qualified domain name of object | |
cn | Name | |
co | Country | Country/region |
codePage | ||
comment | Comment | |
company | Company | Company |
controlAccessRights | ||
countryCode | Country/region | |
createTimeStamp | ||
dBCSPwd | ||
defaultClassStore | ||
department | Department | Department |
description | Description | Description |
desktopProfile | ||
destinationIndicator | ||
directReports | Direct Reports | Direct reports |
displayName | Display Name | Display name |
displayNamePrintable | ||
distinguishedName | X500 Distinguished Name | |
division | Division | |
dSASignature | ||
dSCorePropagationData | ||
dynamicLDAPServer | ||
employeeID | Employee ID | |
extensionName | ||
facsimileTelephoneNumber | Fax Number | Fax |
flags | ||
fromEntry | ||
frsComputerReferenceBL | ||
fRSMemberReferenceBL | ||
fSMORoleOwner | ||
garbageCollPeriod | ||
generationQualifier | Generational Suffix | |
givenName | First Name | First name |
groupMembershipSAM | ||
groupPriority | ||
groupsToIgnore | ||
homeDirectory | Home Folder | Home folder: Local path/To |
homeDrive | Home Drive | Home folder: Connect |
homePhone | Home Phone | Home |
homePostalAddress | Home Address | |
info | Notes | Notes |
initials | Initials | Initials |
instanceType | ||
internationalISDNNumber | International ISDN Number (Others) | |
ipPhone | IP Phone Number | IP phone |
isCriticalSystemObject | ||
isDeleted | ||
isPrivilegeHolder | ||
l | City | City |
lastKnownParent | ||
lastLogoff | ||
lastLogon | ||
legacyExchangeDN | ||
lmPwdHistory | ||
localeID | ||
lockoutTime | Account is locked out | |
logonCount | ||
logonHours | Logon Hours | |
logonWorkstation | ||
E-Mail Address | ||
managedObjects | ||
manager | Manager | Manager |
masteredBy | ||
maxStorage | ||
memberOf | Group Membership | Member of |
mhsORAddress | ||
middleName | Middle Name | |
mobile | Mobile Number | Mobile |
modifyTimeStamp | ||
mS-DS-ConsistencyChildCount | ||
mS-DS-ConsistencyGuid | ||
mS-DS-CreatorSID | ||
mSMQDigests | ||
mSMQDigestsMig | ||
mSMQSignCertificates | ||
mSMQSignCertificatesMig | ||
msNPAllowDialin | ||
msNPCallingStationID | ||
msNPSavedCallingStationID | ||
msRADIUSCallbackNumber | ||
msRADIUSFramedIPAddress | ||
msRADIUSFramedRoute | ||
msRADIUSServiceType | ||
msRASSavedCallbackNumber | ||
msRASSavedFramedIPAddress | ||
msRASSavedFramedRoute | ||
name | ||
netbootSCPBL | ||
networkAddress | ||
nonSecurityMemberBL | ||
ntPwdHistory | ||
nTSecurityDescriptor | N/A | |
o | ||
objectCategory | ||
objectClass | Object class | |
objectGUID | ||
objectSid | ||
objectVersion | ||
operatorCount | ||
otherFacsimileTelephoneNumber | Fax Number (Others) | Fax Number (Others) |
otherHomePhone | Home Phone (Others) | Home Phone (Others) |
otherIpPhone | IP Phone Number (Others) | IP Phone Number (Others) |
otherLoginWorkstations | ||
otherMailbox | E-Mail Address (Others) | |
otherMobile | Mobile Number (Others) | Mobile Number (Others) |
otherPager | Pager Number (Others) | Pager Number (Others) |
otherTelephone | Phone Number (Others) | Phone Number (Others) |
otherWellKnownObjects | ||
ou | ||
pager | Pager Number | Pager |
partialAttributeDeletionList | ||
partialAttributeSet | ||
personalTitle | Title | |
physicalDeliveryOfficeName | Office Location | Office |
possibleInferiors | ||
postalAddress | ||
postalCode | ZIP/Postal Code | Zip/Postal Code |
postOfficeBox | Post Office Box | P.O. Box |
preferredDeliveryMethod | ||
preferredOU | ||
primaryGroupID | Primary group | |
primaryInternationalISDNNumber | International ISDN Number | |
primaryTelexNumber | Telex Number | |
profilePath | Profile path | |
proxiedObjectName | ||
proxyAddresses | ||
pwdLastSet | ||
queryPolicyBL | ||
registeredAddress | ||
replPropertyMetaData | ||
replUpToDateVector | ||
repsFrom | ||
repsTo | ||
revision | ||
rid | ||
sAMAccountName | Logon Name (pre-Windows 2000) | User logon name (pre-Windows 2000) |
sAMAccountType | ||
scriptPath | Logon script | |
sDRightsEffective | ||
securityIdentifier | ||
seeAlso | ||
serverReferenceBL | ||
servicePrincipalName | ||
showInAddressBook | ||
showInAdvancedViewOnly | ||
sIDHistory | ||
siteObjectBL | ||
sn | Last Name | Last name |
st | State/Province | State/province |
street | ||
streetAddress | Street Address | Street |
subRefs | ||
subSchemaSubEntry | ||
supplementalCredentials | ||
systemFlags | ||
telephoneNumber | Telephone Number | Telephone number |
teletexTerminalIdentifier | ||
telexNumber | Telex Number (Others) | |
terminalServer | ||
textEncodedORAddress | ||
thumbnailLogo | ||
thumbnailPhoto | ||
title | Job Title | Title |
tokenGroups | ||
tokenGroupsGlobalAndUniversal | ||
tokenGroupsNoGCAcceptable | ||
unicodePwd | ||
url | Web Page Address (Others) | Web Page Address (Others) |
userAccountControl | Account options | |
userCert | ||
userCertificate | ||
userParameters | ||
userPassword | ||
userPrincipalName | Logon Name | User logon name |
userSharedFolder | ||
userSharedFolderOther | ||
userSMIMECertificate | ||
userWorkstations | Logon Workstations | Log On To/Logon Workstations |
uSNChanged | Current USN | |
uSNCreated | Original USN | |
uSNDSALastObjRemoved | ||
USNIntersite | ||
uSNLastObjRem | ||
uSNSource | ||
wbemPath | ||
wellKnownObjects | ||
whenChanged | Modified | |
whenCreated | Created | |
wWWHomePage | Web Page Address | Web page |
Comments
0 comments
Please sign in to leave a comment.