Any one out there who can post tutorials on LDAP , how to use it , Especially in visual basic 2005.
Would be appreicted.
Thanks
Any one out there who can post tutorials on LDAP , how to use it , Especially in visual basic 2005.
Would be appreicted.
Thanks
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 :-)
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.
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
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![]()
Should be interesting to see what you come up with...
Paul
What would you like to know, i've written a web based infterface to AD using vb 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
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.Originally Posted by gecko
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)
There are currently 1 users browsing this thread. (0 members and 1 guests)