I am working on using Server 2008R2 Forest to house AutoFS maps in the existing schema using NISMap and NisObject class objects. I can manually create them (and it works) with ADSIedit. I have previously scripted creating users(in AutoIT), but this is not a user object and has different default attributes. I know how to edit arbitrary attributes, but not how to create an arbitrary object class.
All the Documentation I've found googling around shows functions to create users via LDAP or AD libraries, but nothing that lets me specify a (admittedly obscure) object class like I can in the ADSI gui.
I am open to any scripting language, but most likely will either be using AutoIT on Windows (which could use powershell) or Bash or Python on RHEL.