Visual Basic .NET Forums    

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

VB.NET Forums Newsletter Signup:
Email address:


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

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-12-2008, 11:37 PM
VB.NET Forum Enthusiast
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Feb 2006
Posts: 95
Reputation: 39
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.
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 8:12 PM.




Click to advertise here

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
For advertising opportunities click here.