Re: need help creating an LDAP Query from a netbios name

Tech-Archive recommends: Fix windows errors by optimizing your registry



thatsastounding@xxxxxxxxx wrote:
Here is my issue. I have a netbios name: SERVER1. It's FQDN is
DOMAIN1.COM.
Are You sure that this name "SERVER1" is a name of a domain, not a domain controller?

BTW - so You have the domain name which is domain1.com

probably FQDN of this machine is SERVER1.DOMAIN1.COM, am I right?


How do I find an LDAP query for a group within this domain by knowing
only the NETBIOS name? I am using C#. Any help would be appreciated.

use DirectorySearcher with search base set to DC=DOMAIN1,DC=COM and scope Subtree (I know, this is not efficient at all but if you don't have any clues where to look for You have to use it) and search for the group.

Hints how to search for a groups You will find here:
http://blogs.dirteam.com/blogs/tonymurray/archive/2006/08/08/How-to-search-for-groups-of-different-type-and-scope.aspx

You will find examples how to perform searches in a directory here:
http://directoryprogramming.net/files/default.aspx

--
Tomasz Onyszko
http://www.w2k.pl/ - (PL)
http://blogs.dirteam.com/blogs/tomek/ - (EN)
.



Relevant Pages

  • Re: Not able to create user/ group accounts in Exchange server
    ... Server1 is the current domain controller. ... Event String: The attempt to establish a replication link ...
    (microsoft.public.exchange2000.active.directory.integration)
  • Re: Cannot add a second domain controller.
    ... > a second domain controller, by running DCPROMO, I kept ... > I checked DNS on Server1 and found that all services are not ... I have no idea how to go about installing the ... I cannot rebuild Server1 as it is the only domain ...
    (microsoft.public.win2000.dns)
  • Help with Domain Controller Security Policy
    ... Now whenever I go into "Domain Controller Security ... Policy" the only thing I have access to in "Security Settings" is Public Key ... the "Local Polices" which contains User Rights Assignment nor does it shows ... (Server1 or Server2) ...
    (microsoft.public.win2000.active_directory)
  • Domain Controller Policy problem in details
    ... Now whenever I go into "Domain Controller Security ... Policy" the only thing I have access to in "Security Settings" is Public Key ... the "Local Polices" which contains User Rights Assignment nor does it shows ... (Server1 or Server2) ...
    (microsoft.public.windows.server.general)
  • Help with Domain Controller Security Policy
    ... Now whenever I go into "Domain Controller Security ... Policy" the only thing I have access to in "Security Settings" is Public Key ... the "Local Polices" which contains User Rights Assignment nor does it shows ... (Server1 or Server2) ...
    (microsoft.public.windows.server.setup)