Service Publication with Active Directory
I am attempting to run the RnR sample that microsoft provides but I am having a problem: The rnrsetup application does not seem to register the class data in the registry as it is suppose to. The application assigns a variable the value of SERVICE_ADD_TYPE but this variable never gets used.
[291 byte] By [
rdecoursey] at [2007-11-17 14:26:40]

# 1 Re: Service Publication with Active Directory
How to Set Up the RNR Sample
---------
Run rnrsetup /ADD on each client and on the server to call the SetService
API with SERVICE_ADD_TYPE. This call stores the service name type, its
associated GUID, and relevant addressing information for the specified name
spaces in the registry path:
\HKEY_LOCAL_MACHINE
\CurrentControlSet
\Control
\ServiceProvider
\ServiceTypes
This information is then retrieved by GetTypeByName() and
GetAddressByName() calls respectively to identify the server's address.
How to Operate the RNR Sample
----------
1. Start rnrsrv on one machine. After setting listening ports on the
available protocols, the RNR server executes the SetService() call with
the SERVICE_REGISTER flag to register the network service with the
specified name spaces. For example, it enables advertising the
EchoExample service name on the SAP protocol.
2. On the other machine, start rnrclnt using the following syntax:
rnrclnt /?
Usage: rnrclnt [/name:SVCNAME] [/type:TYPENAME] [/size:N]
[/count:N] [/rcvbuf:N] [/sndbuf:N]
- TYPENAME is initially passed to GetTypeByName() call to return
the GUID value. The GUID value and SVCNAME is then passed to
GetAddressByName() to return the address of the server that
the client can connect to. TYPENAME is defined as EchoExample
for the RNR sample.
- SVCNAME specifies which EchoExample server to connect to. If
SVCNAME is specified as the server name in the Internet domain,
the TCP protocol will be used. If SVCNAME is specified as
EchoServer (the RNR service name advertised on SAP), the SPX
protocol will be used.
- The other parameters to the rnrclnt have appropriate default
values and are self explanatory.