10.3. Generating an OID to Use for a New Class or Attribute
Problem
You want to generate an OID to use with a new class or attribute you intend to add to the schema.
Solution
You have two options for generating an OID. First, you can generate a
base OID off of the Microsoft OID tree. This can be done with the
Oidgen.exe
utility from the Resource Kit:
> oidgen
Attribute Base OID: 1.2.840.113556.1.4.7000.233.28688.28684.8.2849.956347.1967079.334190
Class Base OID: 1.2.840.113556.1.5.7000.111.28688.28684.8.370553.291204.940269.113484
Using Oidgen
is really easy, but if you want to
implement schema extensions for production use, I strongly suggest
you consider using an OID from your company or
organization’s OID branch. To determine if your
company already has an assigned OID, see these sites:
http://www.iana.org/assignments/enterprise-numbers |
http://www.alvestrand.no/objectid/ |
If your organization does not have an assigned OID, go to your country’s national registry to request one. The list of registries can be found at the following site: http://www.iso.ch/iso/en/aboutiso/isomembers/index.html.
Once you have a base OID, you can create branches from that OID however you want. For example, if you had a base OID of 1.2.3.4, you could start new class OIDs under 1.2.3.4.1 and new attributes under 1.2.3.4.2. In that case, the first class OID you would create would be 1.2.3.4.1.1 and the first attribute OID would be 1.2.3.4.2.1.
Discussion
An OID is nothing more than a string of numbers separated ...
Get Active Directory Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.