Forum Discussion
Two-Factor Authentication how to AD attribute
Hello,
I am already using APM two factor with google auth, however I am using data group and I was thinking of moving the keys to AD. Question is how do I add a new AD attribute?
I have opened MMC see added the AD Schema (had to register a DLL and has to give schema admin right), I can create new attribute (option is now visible) but what do I select?
Can someone who has setup AD attribute for Two-Factor please give me some indication how this can be done.
Thanks
2 Replies
- Kevin_Stewart
Employee
What type of schematic object are you trying to add?
- Kevin_Stewart
Employee
Okay, now I understand what you're trying to do. The article talks about using an AD, LDAP, or data group to store the user's "key" (defaults to data group). So given that the data group entry is essentially a string value, you'll want to either create a new schema object or use an existing user object. So to create a new schema object:
-
Register the schema manager DLL in Windows
regsvr32 schmmgmt.dll -
Open up the schema manager MMC and navigate to the Attributes node.
-
Right click the node and select "Create Attribute"
-
Give it a name. Example: "OTP Key"
-
Enter an OID value into the "Unique X500 Object ID" field. You can go to the following website to generate a valid OID:
-
Enter a description
-
Select Unicode String from the Syntax drop down. Leave everything else alone and click the Okay button.
-
Now expand the Classes node and go all the way down and select the user class.
-
Right click the user class and select properties.
-
Go to the attributes tab, click the Add button and then select your new oTPKey class.
-
Click Okay a few times to close the various boxes and then refresh the Classes node to make sure your oTPKey attribute is in the user class.
-
Re-open the oTPKey class and make sure the following options are checked:
Attribute is active Index this attribute (as required) Ambiguous Name Resolution (ANR) (as required) Replicate this attribute to the Global Catalog (as required) -
Right click on the top "Active Directory Schema" node and select "Reload the Schema"
-
From there you'll be able to open up ADSIEDIT.msc and add oTPKey attributes for your users (or programmatically).
-
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
