Re: need help creating an LDAP Query from a netbios name
- From: Tomasz Onyszko <T.Onyszko_nospam_@xxxxxx>
- Date: Thu, 14 Sep 2006 22:16:23 +0200
thatsastounding@xxxxxxxxx wrote:
Here is my issue. I have a netbios name: SERVER1. It's FQDN isAre You sure that this name "SERVER1" is a name of a domain, not a domain controller?
DOMAIN1.COM.
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)
.
- Follow-Ups:
- Re: need help creating an LDAP Query from a netbios name
- From: Richard Mueller
- Re: need help creating an LDAP Query from a netbios name
- References:
- need help creating an LDAP Query from a netbios name
- From: thatsastounding
- need help creating an LDAP Query from a netbios name
- Prev by Date: Re: Auditing changes in AD objects?
- Next by Date: Re: Minimum Password Age
- Previous by thread: need help creating an LDAP Query from a netbios name
- Next by thread: Re: need help creating an LDAP Query from a netbios name
- Index(es):
Relevant Pages
|