We help IT Professionals succeed at work.

Want to Authenticate user group in LDAP

Last Modified: 2012-06-27
i am working vb.net 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.

Watch Question

This one is on us!
(Get your first solution completely free - no credit card required)
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.