User Profile

Collapse

Profile Sidebar

Collapse
websupport
websupport
Last Activity: Oct 12 '06, 07:31 PM
Joined: Oct 11 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • websupport
    replied to LDAP - User's Group Lookup
    in .NET
    Found it:


    Instead of checking cn use SAMAccountName
    Code:
    search.Filter = "(cn=" + _filterAttribute + ")"
    Use This:
    Code:
    'Authenication is working!
    if (HttpContext.Current.User.Identity.IsAuthenticated)
      Dim _authenUser As String = HttpContext.Current.User.Identity.Name.ToString
      Dim _filterAttribute As String = Split(_authenUser, "\")(1)
    ...
    See more | Go to post

    Leave a comment:


  • websupport
    replied to searching for a line in a text file
    in .NET
    Please note that instr returns 0 if the work is there on first spot or not found

    if instr(word,def) >0 xor String.Compare( word, def, False, 0, def.length) =0 then
    listbox.items.a dd(word)
    end if...
    See more | Go to post

    Leave a comment:


  • websupport
    replied to Big problem !!!!
    in .NET
    Scroll down in the error code and see where your file names are and the first one with a line number might help you....
    See more | Go to post

    Leave a comment:


  • websupport
    started a topic LDAP - User's Group Lookup
    in .NET

    LDAP - User's Group Lookup

    My problem is that I can find the user using the CN='Full Name'
    I only have User.Identity.N ame ='username\doma in'

    I need find out what groups the user is in.

    Using:
    ISS 6 on Windows 2003
    VB.NET

    Code:
            'domain\username
            Dim _authenUser As String = HttpContext.Current.User.Identity.Name.ToString
    
    
            Dim _path As String = "LDAP://CN=Users,DC=Domain,DC=com"
    ...
    See more | Go to post
No activity results to display
Show More
Working...