Visual Basic .NET Forums  

Go Back   Visual Basic .NET Forums > VB.NET > Security

Security Discussion on securing VB.NET applications, end-user configuration, application activation, etc.

VB.NET Forums Newsletter Signup:
Email address:


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-12-2008, 10:37 PM
VB.NET Forum Enthusiast
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Feb 2006
Posts: 95
Reputation: 45
hadinatayp is on a distinguished programming path ahead
Default Connect to Oracle Hyperion's LDAP using Vb.NET

Hi all,
for the past 3 days i have been trying to connect to Oracle Hyperion's LDAP but untill today what i get is error message (Invalid DN syntax).

I've tried to connect to Oracle Hyperion LDAP using free sofware "LDAP Browser" it succeed, but i failed using .NET (although i'm using the same DN)

here is my code

Code:
            Dim LdapConnection As LdapConnection

            LdapConnection = New LdapConnection("localhost:58089")
            LdapConnection.Credential = New System.Net.NetworkCredential("911", "password")

            Dim request As SearchRequest = New SearchRequest("DC=css,DC=hyperion,DC=com", "cn=911", Protocols.SearchScope.Subtree, "description")
            Dim response As DirectoryResponse = Nothing

            response = LdapConnection.SendRequest(request)

            MessageBox.Show(response.ResultCode)
As my reference whether my code is right or not, i tried to connect to Microsoft Active Directory using the same code (few changes) and it succeed below is the code
Code:
   Dim LdapConnection As LdapConnection

            LdapConnection = New LdapConnection("localhost:389")
            LdapConnection.Credential = New System.Net.NetworkCredential("hadi-ds", "password")

            Dim request As SearchRequest = New SearchRequest("DC=hadinata,DC=com", "cn=hadi-ds", Protocols.SearchScope.Subtree, "name")
            Dim response As DirectoryResponse = Nothing

            response = LdapConnection.SendRequest(request)

            MessageBox.Show(response.ResultCode)
Does anybody know how to solve the problem?
Thanks.
Hadi.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





All times are GMT -4. The time now is 9:07 PM.

Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0


For advertising opportunities click here.