Avatar of farjack1
farjack1
Flag for United States of America asked on

Want to Authenticate user group in LDAP

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

        Try

            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.

Regards
.NET ProgrammingVisual Basic.NET

Avatar of undefined
Last Comment
farjack1

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
farjack1

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23