[jcifs] Re: domain suffix
Michael B Allen
mba2000 at ioplex.com
Fri Oct 20 16:13:42 GMT 2006
On Fri, 20 Oct 2006 14:10:00 +0000 (UTC)
Ying <yhe at devonit.com> wrote:
> Eric Glass <eric.glass <at> gmail.com> writes:
>
> thank you for all the replies. the issue i have is : i need to find out all the
> global catalog servers after my Linux machine is plugged into the network
> without knowing any network ips.
>
> So my solution so far is using: jcifs to find all the domains in the network
> neighborhood, then use "dig -t srv _gc._tcp.<domain>" to find any global catalog
> server if any. The issue i have so far is jcifs will find all the domains for me
> but without domain suffix so i cannot know a domain called "domainA" is
> domainA.com or domainA.net or domainA.org, etc. without the domain suffix i
> cannot use dig to detect the global catalog server.
>
> this issue is important to me. I will appreciate all the help if you know any
> workaround. thanks a lot.
You can also use JNDI's service lookup (but I don't know if this helps
you and I've never used it):
http://java.sun.com/j2se/1.4.2/docs/guide/jndi/jndi-ldap.html#URLs
Mike
--
Michael B Allen
PHP Active Directory SSO
http://www.ioplex.com/
More information about the jcifs
mailing list