WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

NetwareX Extender

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

NetWare User Creation Problem


Question:

I need to create a user object and populate some fields. So far, so good. However, I also need to create a new attribute/value and add that to the user object.

I assume that I follow the creation of the user object (nwAddObject) with the modification of that object (nwModifyObject). What I have tried is the following:

TreeSpec = "\\test_tree" ObjectSpec = '.MyUser.MyOU.MyO' ;user I just created OperSpec = "ADD_ATTRIBUTE" AttrName = "ShoeSize" AttrValue = "12" Result = nwModifyObject(TreeSpec,OperSpec,AttrName,AttrValue,0,0,0)

Result value returns "301 Error getting syntax information".

What am I missing?

Answer:

The attribute "ShoeSize" is not defined in the schema of your NDS/eDirectory tree. The extender is trying to get the attributes syntax type and that's where the error occurs. You can post a copy of WWWBATCH.INI here to verify this for certain. Is the "ShoeSize" attribute supposed to have been part of an application that extends your tree's schema? If not, then it will be necessary to extend the schema by defining the attribute itself and by defining an auxiliary object class that allows the attribute to be attached to a user object. If it is supposed to be defined in your tree already, then perhaps you are misspelling the attribute name.

User Reply:

I think you nailed it here. The schema has not been extended for the object. I guess I assumed this function would do that.

Answer:

No, schema extensions are an entirely separate set of tasks as compared to manipulating objects and their attributes in the tree. Currently, the NetWareX extender does is not capable of making schema extensions. I'm in the process of adding that functionality, but I'm being very careful to make sure that the documentation for those new functions calls attention to the dangers of improperly extending the schema of your tree. One improperly written script could trash a NDS/eDirectory tree to the point where a very expensive engagement with Novell's Consulting Services group would be required to undo the damage.
Article ID:   W16541
File Created: 2005:02:18:12:21:22
Last Updated: 2005:02:18:12:21:22