Anonymous_User Absent Member.
Absent Member.
846 views

Enumerating tree(domain) and connecting

Hi
I have problem with eDirectory. I use LDAP Library for c# (from Novell) and
Visual Studio 2003 (but I can use VS2005). Unfortunately I have some
Problem with connecting.
I'd like to get list of domains in my local network (after all can be list
of tree, as in ConsoleOne). I choose domain (tree), next I can choose
Context (something like in NovellClient for Windows).
I can get list of trees (using WinAPI) but i don't know how to get
ServerName (LDAPConnection needs IPAddress or NetBios Name). How can I
resolve TreeName->ServerName?
And next, how can I get list of Context?
Thx for help
Regards
Mike
Labels (1)
0 Likes
17 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Enumerating tree(domain) and connecting

AFAIK
From LDAP this is not an option.

See:
http://www.novell.com/documentation/edir88/index.html?page=/documentation/edir88/edir88/data/amsy6kb.html
-jim

badzio@gmail.com wrote:
> Hi
> I have problem with eDirectory. I use LDAP Library for c# (from Novell) and
> Visual Studio 2003 (but I can use VS2005). Unfortunately I have some
> Problem with connecting.
> I'd like to get list of domains in my local network (after all can be list
> of tree, as in ConsoleOne). I choose domain (tree), next I can choose
> Context (something like in NovellClient for Windows).
> I can get list of trees (using WinAPI) but i don't know how to get
> ServerName (LDAPConnection needs IPAddress or NetBios Name). How can I
> resolve TreeName->ServerName?
> And next, how can I get list of Context?
> Thx for help
> Regards
> Mike

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Enumerating tree(domain) and connecting

> AFAIK
> From LDAP this is not an option.
> See:

http://www.novell.com/documentation/edir88/index.html?page=/documentation/edir88/edir88/data/amsy6kb.html
> -jim

Yes, thx, but...
My computer is in workgroup. Also I have 3 novell-servers (2 with
eDirectory and 1 with old Novell-Netware) in my localnetwork. I use DNS
from my internet-provider (so, i'm sure that my DNS doesn't know about my
novel-servers). File windows\system32\drivers\etc\hosts is empty. But
NovellClient and ConsoleOne works good - I can choose tree from list and I
can connect with server - i don't need give IP (one of servers - with old
netware, has no IP - this server works on ipx, not tcp).
So... how does it work?
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Enumerating tree(domain) and connecting

Your servers are probably being located via SLP then.
http://www.novell.com/documentation/edir88/index.html?page=/documentation/edir88/edir88/data/aksciti.html
-jim

badzio@gmail.com wrote:
>> AFAIK
>> From LDAP this is not an option.
>> See:

> http://www.novell.com/documentation/edir88/index.html?page=/documentation/edir88/edir88/data/amsy6kb.html
>> -jim

> Yes, thx, but...
> My computer is in workgroup. Also I have 3 novell-servers (2 with
> eDirectory and 1 with old Novell-Netware) in my localnetwork. I use DNS
> from my internet-provider (so, i'm sure that my DNS doesn't know about my
> novel-servers). File windows\system32\drivers\etc\hosts is empty. But
> NovellClient and ConsoleOne works good - I can choose tree from list and I
> can connect with server - i don't need give IP (one of servers - with old
> netware, has no IP - this server works on ipx, not tcp).
> So... how does it work?

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Enumerating tree(domain) and connecting

> Your servers are probably being located via SLP then.
>

http://www.novell.com/documentation/edir88/index.html?page=/documentation/edir88/edir88/data/aksciti.html
> -jim

I read this article. But i still don't understand. I have ipx/spx installed
on my computer (property for networkconnection).
I use DNS from my provider (surely he knows nothing about my localnetwork).
I cannot ping novell-server per treename (that's clear for me) but
ConsoleOne and NovellClient are able to connect with tree/domain controler
via treename. So... can I do it (connecting or resolving
treename->servername) using LDAP Library for C#? If yes, how can I do it?
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Enumerating tree(domain) and connecting

And IPX/SPX for the "old" Netware on IPX. -jim

badzio@gmail.com wrote:
>> AFAIK
>> From LDAP this is not an option.
>> See:

> http://www.novell.com/documentation/edir88/index.html?page=/documentation/edir88/edir88/data/amsy6kb.html
>> -jim

> Yes, thx, but...
> My computer is in workgroup. Also I have 3 novell-servers (2 with
> eDirectory and 1 with old Novell-Netware) in my localnetwork. I use DNS
> from my internet-provider (so, i'm sure that my DNS doesn't know about my
> novel-servers). File windows\system32\drivers\etc\hosts is empty. But
> NovellClient and ConsoleOne works good - I can choose tree from list and I
> can connect with server - i don't need give IP (one of servers - with old
> netware, has no IP - this server works on ipx, not tcp).
> So... how does it work?

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Enumerating tree(domain) and connecting

A couple of years ago I wrote a (Delphi) sample that demonstrated how to get
the trees/servers using the Client APIs - search for "dsrvcs"

Wolfgang

<badzio@gmail.com> wrote in message
news:PACwh.13437$Sz4.10060@prv-forum2.provo.novell.com...
>> AFAIK
>> From LDAP this is not an option.
>> See:

> http://www.novell.com/documentation/edir88/index.html?page=/documentation/edir88/edir88/data/amsy6kb.html
>> -jim

> Yes, thx, but...
> My computer is in workgroup. Also I have 3 novell-servers (2 with
> eDirectory and 1 with old Novell-Netware) in my localnetwork. I use DNS
> from my internet-provider (so, i'm sure that my DNS doesn't know about my
> novel-servers). File windows\system32\drivers\etc\hosts is empty. But
> NovellClient and ConsoleOne works good - I can choose tree from list and I
> can connect with server - i don't need give IP (one of servers - with old
> netware, has no IP - this server works on ipx, not tcp).
> So... how does it work?



0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Enumerating tree(domain) and connecting

> A couple of years ago I wrote a (Delphi) sample that demonstrated how to get
> the trees/servers using the Client APIs - search for "dsrvcs"
>
> Wolfgang


Thx... that was this what i searched:)
Mike
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Enumerating tree(domain) and connecting

> A couple of years ago I wrote a (Delphi) sample that demonstrated how to get
> the trees/servers using the Client APIs - search for "dsrvcs"
>
> Wolfgang


Another problem - functions NWGetObjectNameXXX return list of server or
list of trees. But - How can I attribute server for tree - how can I get
server (servers) for specified tree?
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Enumerating tree(domain) and connecting

You can connect to the tree, then search for objects of type "NCP Server"

Wolfgang



<badzio@gmail.com> wrote in message
news:qs0yh.413$QP1.310@prv-forum2.provo.novell.com...
>> A couple of years ago I wrote a (Delphi) sample that demonstrated how to
>> get
>> the trees/servers using the Client APIs - search for "dsrvcs"
>>
>> Wolfgang

>
> Another problem - functions NWGetObjectNameXXX return list of server or
> list of trees. But - How can I attribute server for tree - how can I get
> server (servers) for specified tree?



0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Enumerating tree(domain) and connecting

> You can connect to the tree, then search for objects of type "NCP Server"
> Wolfgang


Yes, i tried. I connect with tree (connected with success) and next, i try
use NWScanObject function - but this function returns code 35294 (0x89FC).
I cannot find what this code means:/
Or maybe, should I use another function to browse object in Tree?
Regards
Mike
PS Can we talk on priv? Per email, icq, jabber?
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Enumerating tree(domain) and connecting

> You can connect to the tree, then search for objects of type "NCP Server"
>
> Wolfgang


Yes, i tried. I connect with tree (connected with success) and next, i try
use NWScanObject function - but this function returns code 35294 (0x89FC).
This code means "no such object".
As a searchObjectName i tried for example: "CN", "Server", "" - what should
I use do searching? (Example from NDK doesn't work - problem with compilation)
Or maybe, should I use another function to browse object in Tree?
Regards
Mike
PS Can we talk on priv? Per email, icq, jabber?
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Enumerating tree(domain) and connecting

Once you have a connection to a tree, you also have a connection to a
server - check the Connection APIs

You can use NWCCScanConnRefs(), then NWCCGetConnRefInfo() to get info about
that server, or NWCCOpenConnByRef() to connect.

You may also get the server's IP address to talk LDAP to it.
There may be better ways to get a server address when you know nothing but
the tree name, but I haven't bothered, yet.

NWScanObject() is a old server-based bindery function, which still works,
but requires a connection to a server.

Wolfgang



<badzio@gmail.com> wrote in message
news:nkkyh.1101$QP1.329@prv-forum2.provo.novell.com...
>> You can connect to the tree, then search for objects of type "NCP Server"
>>
>> Wolfgang

>
> Yes, i tried. I connect with tree (connected with success) and next, i try
> use NWScanObject function - but this function returns code 35294 (0x89FC).
> This code means "no such object".
> As a searchObjectName i tried for example: "CN", "Server", "" - what
> should
> I use do searching? (Example from NDK doesn't work - problem with
> compilation)
> Or maybe, should I use another function to browse object in Tree?
> Regards
> Mike
> PS Can we talk on priv? Per email, icq, jabber?



0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Enumerating tree(domain) and connecting

> Once you have a connection to a tree, you also have a connection to a
> server - check the Connection APIs
> You can use NWCCScanConnRefs(), then NWCCGetConnRefInfo() to get info about
> that server, or NWCCOpenConnByRef() to connect.


OK, I used NWCCScanConnRefs() and NWCCGetConnRefInfo(). I have pair
tree->server. Now, I need list of context for specified tree/server.
Finally I must connect with NDS via OpenLDAP (Novell Library for C#) but
those library needs context (DN). So, how can I get list of context using NDK?

Mike

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Enumerating tree(domain) and connecting

you should be able to connect anonymously with ldap in the root context,
then go ahead and browse.
Knowing the context won't help you without knowing a valid account/pwd

Wolfgang

<badzio@gmail.com> wrote in message
news:ejGyh.1882$QP1.221@prv-forum2.provo.novell.com...
>> Once you have a connection to a tree, you also have a connection to a
>> server - check the Connection APIs
>> You can use NWCCScanConnRefs(), then NWCCGetConnRefInfo() to get info
>> about
>> that server, or NWCCOpenConnByRef() to connect.

>
> OK, I used NWCCScanConnRefs() and NWCCGetConnRefInfo(). I have pair
> tree->server. Now, I need list of context for specified tree/server.
> Finally I must connect with NDS via OpenLDAP (Novell Library for C#) but
> those library needs context (DN). So, how can I get list of context using
> NDK?
>
> Mike
>



0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.