dealing with active directory

Last post 06-21-2009 5:02 AM by fedailr. 4 replies.

Sort Posts:

  • dealing with active directory

    06-18-2009, 5:36 AM
    • Member
      22 point Member
    • fedailr
    • Member since 09-13-2007, 4:44 PM
    • Posts 99

    hello

    i want to make a page login check the user info from active directory

    i see alot of article but it is not work with me can i see another way to solve it and i have problem with my domain name

    i have one domain name but it is coning like this

    sas\administratror

    administrator.dns.sas.com

    whitch one should i take

  • Re: dealing with active directory

    06-18-2009, 5:54 AM
    • Participant
      929 point Participant
    • naspinski
    • Member since 04-25-2008, 5:12 PM
    • Posts 170

    This is alreaday built in, just change to ActiveDirectoryMembershipProvider in your web.config:

    http://msdn.microsoft.com/en-us/library/system.web.security.activedirectorymembershipprovider.aspx

    you will also need to change your authentication to 'Forms'

    ...for some reason, most people assume that you can't figure out the incredibly difficult 'Mark as Answer' feature...

    I on the other hand, I have faith in you collective Asp.Net forums!

    naspinski.net
  • Re: dealing with active directory

    06-18-2009, 6:24 AM
    • Member
      22 point Member
    • fedailr
    • Member since 09-13-2007, 4:44 PM
    • Posts 99

    i am just going to read this topics

     

    but can u check what i have

    i am use this function

     

    Private Function GetADGroupUsers() As String

    Try

     

    Dim oroot As DirectoryEntry = New DirectoryEntry("LDAP://sas-syseng", "sas-syseng\administrator", "magic9318", AuthenticationTypes.Secure)

    Using (oroot)

    Dim ds As New DirectorySearcher(oroot)

    ds.PropertiesToLoad.Add("global")

    ' ds.PropertiesToLoad.Add("global")

    Dim sr As SearchResult = ds.FindOne

    ' Dim src As SearchResultCollection

    ' src = ds.FindAll

    'Using (src)

    If Not sr Is Nothing Then

    Dim sd As String = Nothing

    For Each s In sr.Properties.PropertyNames

    For Each propvalue In sr.Properties(s)

    sd += s & "=" & propvalue

    Next

    Next

    Return sd

    Else

    Return "nothing found"

    End If

     

    End Using

    Catch ex As Exception

    Return "error " & ex.Message

    End Try

    End Function

     

    but it is give me this value returned

    adspath=LDAP://sas-syseng/DC=dns,DC=sas-syseng,DC=com

  • Re: dealing with active directory

    06-18-2009, 1:08 PM
    • Member
      22 point Member
    • fedailr
    • Member since 09-13-2007, 4:44 PM
    • Posts 99

    i can't understoand what happen

  • Re: dealing with active directory

    06-21-2009, 5:02 AM
    • Member
      22 point Member
    • fedailr
    • Member since 09-13-2007, 4:44 PM
    • Posts 99

    i am still waiting the solution Embarrassed

Page 1 of 1 (5 items)