Novell is now a part of Micro Focus

Quick question. What is the recommended method of...

Articles and Tips: qna

01 Nov 2001


Q.

Quick question. What is the recommended method of locating trees or validating a particular tree in a pure IP environment? Under IPX I know I can use NWScanObject, but I suspect that this would be a no-go under IP. Thanks in advance!

A.

The location of any service in a pure IP based environment is best done by using Service Location Protocol (SLP). Novell is using this for many of its services. You can see this by typing the following at the console for a NetWare 5.x server:

DISPLAY SLP SERVICES

A tree name will be listed in the form of:

Service:ndap.novell:///[tree name]

By using the SLP API, you can then access attributes that are assigned to the record. The best API to use, from the SLP based API group, would be NWGetObjectNamesBeginA(). This API sets up an environment so that NWGetObjectNamesNextA() can retrieve the names of trees or servers. This API will work on versions of NetWare as far back as 3.11 and up to and including NetWare 6.x.

FYI, NWGetObjectNamesBeginA() internally calls WinSock2 name space functions to retrieve tree or server names from SAP and SLP name spaces. It also allocates a buffer to store retrieved names as a sorted and ordered list.

* Originally published in Novell AppNotes


Disclaimer

The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.

© Copyright Micro Focus or one of its affiliates