Creating custom attributes in LDAP

The attributes BirthDate and Gender are not stored by default in LDAP and must be added manually as custom attributes.

  1. Start the command prompt in administrative mode and type: Regsvr32 SchmMgmt.dll. The following message should appear:

  2. Start -> Run -> mmc
  3. Choose Active Directory Schema from left side and Add

  4. Click Ok
  5. Expand the Active Directory Schema from left panel, right click on Attribute node and tap on Create Attribute…
  6. A small warning windows will appear, but tap Continue
  7. Fill the fields in the following way:

  8. Fill the Unique X500 Object ID with the OID generated by OID.vbs script, like in the following example:

  9. Click Ok
  10. Expand the Classes node from Active Directory Schema from left panel, scroll down and right click on the user A person (member) that is using a registered client (application) to access resources (API). class, tap Properties, choose Attributes tab

  11. Add the birthdate attribute

  12. Click Apply
  13. Follow the same steps for Gender attribute.
  14. Restart the Active Directory Domain Services windows service.
  15. Go to Server Manager and choose Tools -> Active Directory Users and Computers
  16. Choose View -> Advanced Features from the new window
  17. Choose an account or group, right click and then Properties
  18. Choose Attribute Editor tab and select birthdate attribute

  19. Edit the value in the format dd/MM/yyyy

  20. Click Ok and Apply.
  21. Follow the same steps for the Gender attribute and fill it with Male or Female value.