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.

Finding a wild carded id in Novell

Keywords:   wild carded id

Question:

I would like to create a utility for Novell 4.x that finds wild-carded Novell ids like: a*jones - (like Andrew ? Jones.) This would be help full in finding id's that we don't know the middle initial. Can this be done?

Answer:

Take a look at the help file for the existing NetWare extender (n3/n4 functions). Specifically, the n4ObjSearch() and n4ObjectList() functions should be able to do what you want. I took a peek at the low level NDS functions that the extender makes use of in these extender functions and all of the low level NDS functions accept wildcard names for objects. There should be no problems with writing a script to perform the task that you want performed.

Be sure that you have the proper rights to the different parts of your NDS tree that you will be searching/listing objects in. Insufficient rights in one part of a tree can cause a script that works OK with one or more containers to fail when it hits the part of the tree to which you have insufficient rights.

Try the following:

AddExtender("wwn4x34I.dll")
Context = AskLine("Find A Wild Carded User ID", "Enter Contex to find user", "")
WildId = AskLine("Find A Wild Carded User ID", "Enter formated ID (a*jones)", "")
Tree = AskLine("Find a Wild Carded user ID", "Enter your NDS tree name", "")
n4SetContext(context,tree)
UsrObjects = n4ObjectList("", "", "User", wildid)
Askitemlist( "List of users",usrobjects, @tab, @sorted, @single) 

Article ID:   W14652
Filename:   Finding a wild carded id in Novell.txt
File Created: 2001:03:01:13:45:04
Last Updated: 2001:03:01:13:45:04