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

Novell Netware
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

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

When nwGetObjValue "modifiersName" Last Modified

Keywords: 	 nwGetObjValue	   modifiersName

Question:

I can get "modifiersName" with this function, is there any way to get when the object was modified?

Also as a general question, is there any way to root through the login scripts? say i want to search for a specific word in a login script (like a server name). where is this info kept and is it in plain text?

by the way...

I am VERY VERY impressed with the netware extenders and the support that go's with them. I have been able to build many tools which save us lots of time. keep up the great work!

Answer:

  1. That information is not actually stored in the object's attributes. Instead, there is information about the object that is stored not as a named attribute value but as meta-data that tags along with the object's entry in NDS.

    The modification date and time stamp for an attribute's value is recorded in each each attribute, but that information currently cannot be extracted/obtained via the NetWareX extender.

    Beyond the object modify/create functionality that I'm testing out I've got some plans in place to make all of the rest of this type of information available, too, via some new functions. There is all sorts of schema and partition information that is some times necessary to have access to when manipulating NDS, and I'm going to have to make it possible to retrieve this information for use in WinBatch scripts.

  2. Login scripts are stream objects. They are represented by attribute names that have syntax types of "SYN_STREAM". You have a few things to do when retrieving stream attribute values. First, you need to decide if you want to have the stream value returned in a binary buffer or if you want it decoded into some sort of string [either regular ASCI characters or as hexadecimal digit pairs representing the bytes of data in the stream]. Once you have retrieved the stream value you can then manipulate it however you wish to do so.

    In your case, it would probably be best to use nwGetObjValue() to find out how large a binary buffer is needed, allocate the buffer, retrieve the login script via nwGetObjValue() [stuffing it into the binary buffer] and then interrogate it with the other binary buffer functions that let you search for strings.

    Look at the example code for nwGetObjValue(). It shows how to use a binary buffer to retrieve an attribute value. Run the sample code and see what it does with a login script and then adapt the sample code to suit your needs.

  3. Thanks for the vote of confidence.

Article ID:   W15214
File Created: 2002:09:05:13:50:38
Last Updated: 2002:09:05:13:50:38