473,395 Members | 1,474 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Retrieve a users groups from AD

I run a sample for authenticating a user from a asp.net page using Active Directory (http://msdn.microsoft.com/library/de...SecNetHT02.asp

I manage to authenticate the user, but when I try to list the users groups I get the following error
"The specified domain either does not exist or could not be contacted

I get the error on the last row in this code snippet (I've converted the code to VB.net)
--------------------------
If True = adAuth.IsAuthenticated(txtDomainName.Text, txtUserName.Text, txtPassword.Text) The
' Retrieve the user's group
Dim groups As String = adAuth.GetGroups(
---------------------------

How come I can authenticate the user but not get his groups?? Any tips would be appreciated!
Nov 18 '05 #1
0 1012

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jeff Johnson [MVP: VB] | last post by:
Is there any way to retrieve the name of a capture group from the classes provided in the RegularExpressions namespace? GroupCollection implements ICollection and IEnumerable, not IDictionary, so...
0
by: James | last post by:
Hello All, I am working in a Windows NT domain environment, working with C#. What I want to be able to do is view all the groups a user belongs to, and also be able to add the users to groups. ...
2
by: Brad | last post by:
I'm extracting info for users and group in our domain using directoryservices. This is working well except I have one more piece I need to finish which I'm stuck on. I need to (a) query the info...
1
by: Jeppe Dige Jespersen | last post by:
I have a webserver that is not in the domain, residing in the DMZ, from which I need to retrieve groups and names from the A.D. Any ideas on that? Thanks, Jeppe Jespersen jeppe.jespersen ...
4
by: Mamatha | last post by:
Hi I need to know..how to retrieve values of Microsoft Outlook in VB,i want to retrieve how many emails contains in my inbox,outbox,sentitems etc. Please give me the solution for retrieving...
4
by: sara | last post by:
Hi - I can't seem to choose the keywords to find an answer to this query - or maybe it's not in the posts. I have a database where the Buyers enter their Orders and then Accounts Payable posts...
9
by: =?Utf-8?B?THVpcyBBbnRvbmlvIFJvc2VsbG8gR2FyY2lh?= | last post by:
Hi, I have a big problem with a Visual C++ 6.0 function that retrives the logical drives and types in the local system. This function works perfectly on Windows 98, NT, 2000, XP and 2003, but I...
4
by: LetMeDoIt | last post by:
Greetings, I'm using ASP to retrieve from MSSQL and I then populate a table. After several months of successfull retrieves, this same code now bombs out. It turns out that if I clear out from...
4
by: kang jia | last post by:
hi i am doing mailinglist currently. the code in my first page is like this : : <html> <head> <link rel="stylesheet" type="text/css" href="gallery.css" /> <script language="JavaScript"> ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.