+ Post New Thread
Results 1 to 10 of 10
Coding Thread, LDAP & Visual basic 2005 ?? in Coding and Web Development; Any one out there who can post tutorials on LDAP , how to use it , Especially in visual basic ...
  1. #1

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,785
    Thank Post
    3,292
    Thanked 1,054 Times in 975 Posts
    Rep Power
    365

    LDAP & Visual basic 2005 ??

    Any one out there who can post tutorials on LDAP , how to use it , Especially in visual basic 2005.

    Would be appreicted.

    Thanks

  2. #2

    Join Date
    Jul 2005
    Location
    Corby
    Posts
    1,056
    Thank Post
    12
    Thanked 20 Times in 18 Posts
    Rep Power
    24

    Re: LDAP & Visual basic 2005 ??

    Shouldn't you learn visual basic first? Aherm, anyway:

    http://support.microsoft.com/kb/q187529/

    http://www.ldapguru.org/

    Lots to read there. Have you noticed any big difference between VB 2003 .NET and 2005 Express yet?

    Paul :-)

  3. #3

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,785
    Thank Post
    3,292
    Thanked 1,054 Times in 975 Posts
    Rep Power
    365

    Re: LDAP & Visual basic 2005 ??

    I only used vb.NET once and after that I didnt really touch it again so I cant really give a decent comparison unfortunatly.

    I will be taking a look into that LDAP and vb 2005 stuff tommorow though.

  4. #4

    Join Date
    Jul 2005
    Location
    Corby
    Posts
    1,056
    Thank Post
    12
    Thanked 20 Times in 18 Posts
    Rep Power
    24

    Re: LDAP & Visual basic 2005 ??

    You might find that because you have concentrated on VB6 and haven't gone much into .NET that the jump straight into VB 2005 Express and LDAP interaction will be a huge leap! Then again, the principles are the same.

    What are you planning on doing with LDAP and VB 2005?

    Paul

  5. #5

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,785
    Thank Post
    3,292
    Thanked 1,054 Times in 975 Posts
    Rep Power
    365

    Re: LDAP & Visual basic 2005 ??

    I will tell you when I look at it tommorow cos I gotta look to see what sorts of things it can do.

    Im sure I could find examples on www.pscode.com and other places if I really come un glued aka stuck

  6. #6

    Join Date
    Jul 2005
    Location
    Corby
    Posts
    1,056
    Thank Post
    12
    Thanked 20 Times in 18 Posts
    Rep Power
    24

    Re: LDAP & Visual basic 2005 ??

    Should be interesting to see what you come up with...

    Paul

  7. #7

    Join Date
    Jan 2006
    Location
    Hertfordshire
    Posts
    151
    Thank Post
    2
    Thanked 8 Times in 8 Posts
    Rep Power
    19

    Re: LDAP & Visual basic 2005 ??

    What would you like to know, i've written a web based infterface to AD using vb 2005?

  8. #8

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,785
    Thank Post
    3,292
    Thanked 1,054 Times in 975 Posts
    Rep Power
    365

    Re: LDAP & Visual basic 2005 ??

    Anything and everything, maybe you can upload it or email me it or something if thats ok.

    Most important things would be how to do a logon for users that would compare what they type in for the logon versus there true logon that they use in AD so in effect the users have one logon to remember ie one username and one password.

    Also how to attain the username so when they are logged in on there session it displays the username and other info.

    We will be doing an intranet as a project soon so any help you could give us would be much appreicated, obviously !!

    Thanks

  9. #9

    Join Date
    Aug 2005
    Location
    Birmingham, UK
    Posts
    490
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: LDAP & Visual basic 2005 ??

    Quote Originally Posted by gecko
    Most important things would be how to do a logon for users that would compare what they type in for the logon versus there true logon that they use in AD so in effect the users have one logon to remember ie one username and one password.
    Use windows authenticated logon if its an intranet... saves coding forms based logons and messing with ad integration + IE will automatically pass authentication from its current windows session so they wont even have to log on to the website.

  10. #10

    Join Date
    Jan 2006
    Location
    Hertfordshire
    Posts
    151
    Thank Post
    2
    Thanked 8 Times in 8 Posts
    Rep Power
    19

    Re: LDAP & Visual basic 2005 ??

    First of all add a referance to system.directory.services. Once this is done add the following to a form:
    Command button
    3 text boxs'

    use this code for the command button:

    ValidateActiveDirectoryLogin(text3.text, text1.text, text2.text)

    add this function

    Dim Success As Boolean = False
    Dim Entry As New System.DirectoryServices.DirectoryEntry("LDAP://" & Domain, Username, Password)
    Dim Searcher As New System.DirectoryServices.DirectorySearcher(Entry)
    Searcher.SearchScope = DirectoryServices.SearchScope.OneLevel
    Try
    Dim Results As System.DirectoryServices.SearchResult = Searcher.FindOne
    Success = Not (Results Is Nothing)
    Catch
    Success = False
    End Try
    MsgBox(Success)

SHARE:
+ Post New Thread

Similar Threads

  1. Visual Basic 6
    By Samson in forum Windows
    Replies: 4
    Last Post: 30th August 2007, 12:41 PM
  2. Visual basic 6
    By Halfmad in forum Windows
    Replies: 9
    Last Post: 11th June 2007, 02:57 PM
  3. visual basic 2005 beta 2 tutorials ?
    By mac_shinobi in forum Coding
    Replies: 4
    Last Post: 14th December 2006, 09:43 PM
  4. Visual Basic 2005 Express
    By Mintsoft in forum Windows
    Replies: 2
    Last Post: 9th June 2006, 08:21 AM
  5. Best manuals for Visual Basic .NET?
    By kingswood in forum Coding
    Replies: 6
    Last Post: 3rd October 2005, 10:41 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •