Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Accessing Oracle OID from ASp.NET

Re: Accessing Oracle OID from ASp.NET

From: Niall Litchfield <niall.litchfield_at_gmail.com>
Date: 16 Feb 2006 13:14:46 -0800
Message-ID: <1140124485.958149.214530@g14g2000cwa.googlegroups.com>


are UserName and Password valid? what type of Object is a DirectoryEntry anyway, perhaps it comes from the phonebook object? Does dc=servername identify the correct computer with the correct LDAP service for OID anyway? and so on.

jeremy.r..._at_alkermes.com wrote:
> Hello all,
>
> I need to access OID users in Oracle 10G Portal from an ASP.NET web app
> and I can't connect to the server. It keeps telling me that I have a
> bad logon even though I can connect through .jsp files. Here is the
> code I'm using to access OID:
>
> Dim userDE As New DirectoryEntry("LDAP://dc=servername:389", UserName,
> Password)
> Dim DS As New DirectorySearcher(userDE)
>
> DS.SearchScope = SearchScope.Subtree
> DS.Filter = cLDAPFilter
> DS.PageSize = 1000
> DS.PropertiesToLoad.Add("Name")
>
> For Each SR As SearchResult In DS.FindAll 'It errors on this line
>
> 'Do stuff here
> Next
>
> I'm getting the big ugly "Logon failure: unknown user name or bad
> password" error.
>
> Any help would be greatly appreciated.
>
> Thanks in advance,
> Jeremy
Received on Thu Feb 16 2006 - 15:14:46 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US