troubleshooting Question

Want to Authenticate user group in LDAP

Avatar of farjack1
farjack1Flag for United States of America asked on
.NET ProgrammingVisual Basic.NET
1 Comment1 Solution580 ViewsLast Modified:
i am working desktop application, i am very new in LDAP so i have a problem to authenticate user group in LDAP, since i have authencated user, for user authentication i write this code

  Dim entry As DirectoryEntry = New DirectoryEntry("LDAP://servername:389/ou=people,dc=ssga,dc=com")
        entry.AuthenticationType = AuthenticationTypes.None
        entry.Username = "uid=" & username & ",ou=people,dc=ssga,dc=com"
        entry.Password = pwd


            Dim search As DirectorySearcher = New DirectorySearcher(entry)
            Dim result As SearchResult = search.FindOne()

            If result Is Nothing Then
                Return False
            End If

            _path = result.Path

            Return True

        Catch ex As Exception
                       Return False
        End Try

this is working correct now need to authenticate user group i know the user group please send me code for this.


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros