473,390 Members | 1,294 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,390 software developers and data experts.

OpenDSObject failed

When I used GetObject to authenticate LDAP, it returns "authentication
success" when my client enter the following values for sPath. :

sPath = "LDAP://ldap.univirtual.com"

sPath = "LDAP://ldap.univirtual.com/jsmith"

sPath = "LDAP://ldap.univirtual.com:389/O=PORTAL"

It also returns "authentication success" when my client enter a user name
that does not exist (for ex: UserNotExist)

sPath = LDAP://ldap.univirtual.com/UserNotExist" --> returns
"authentication success"

(LDAP://ldap.unibanvirtual.com:389/O=PORTAL)

But, when my client enters the following values for sPath, they got an error
"error type: (0x80072032)", even though this organization (o=uniba,ou=medel)
exists, and they are needed by some users to be able to work with IBM
Portal.
Set openDS = GetObject("LDAP://ldap.univirtual.com:389/O=UNIBA/jsmith")
Set openDS =
GetObject("LDAP://ldap.univirtual.com:389/OU=MEDEL,O=UNIBA/jsmith")
Set openDS = GetObject("LDAP://ldap.univirtual.com:389/O=UNIBA")
Set openDS = GetObject("LDAP://ldap.univirtual.com:389/OU=MEDEL,O=UNIBA")

These are the codes for the GetObject:
On Error Resume Next

Set openDS = GetObject(sPath)

if err.number = 0 then

Response.Write "authentication success"

Response.Write "Object Name: " & x.Name

Response.Write "Object Path: " & x.ADsPath

else

response.write err.number & ":" & err.description

end if

When I use the OpenDSObject method, with flags (4th parameter in
OpenDSObject set to 0), no matter what values my client enter for strADsPath
and strUserName, they got an error

"Failed to bound to object LDAP://Portal

Error number is -2147016646" -->> this error is "the server is not
operational"

They tried the following values for strADsPath and strUserName:

strADsPath = "LDAP://ldap.univirtual.com"

strADsPath = "LDAP://portal"

strUserName = "ldap.univirtual.com\jsmith"

strUserName = "cn=jsmith,ou=medel,o=uniba,dc=ldap.univirtual.com ,dc=com"

strUserName = "cn=jsmith,o=portal,dc=ldap.univirtual.com,dc= com"

strUserName = "cn=jsmith,o=portal"

iFlags = 0

Why can I connect using GetObject but not OpenDSObject in this case ? What
can I do to fix this problem ?

Thank you very much.

These are the codes for the OpenDSObject:
Dim oADsObject

Set oADsObject = GetObject(strADsPath)

strADsNamespace = left(strADsPath, instr(strADsPath, ":"))

set oADsNamespace = GetObject(strADsNamespace)

Set oADsObject = oADsNamespace.OpenDSObject(strADsPath, strUserName,
strPassword, cint(iFlags))

if not (Err.number = 0) then

Response.Write "Failed to bind to object " & strADsPath
response.write err.description & " Error number is " & err.number
else

Response.Write "USER AUTHENTICATED!"

Response.Write "Currently viewing object at " & oADsObject.ADsPath

end if

The following is my client's configuration:
Windows 2000 Server (SP4).
Lotus Domino v6.5.1 (using the LDAP Service of this product, this
is compatible with version 3.0).
Port 389.
Our LDAP manages unique Users and Groups.
In this moments the LDAP is used by three servers of IBM
Websphere. Each one have configured one conection to the LDAP through the
settings of this products (is native in the Websphere program).
In the Lotus Domino server has two Domino Directory databases, one
is the directory of the company and the other is the directory of producers.
Each one has a different OU and O.

For example:
For the company directory the OU and O is: OU=MEDEL,O=UNIBA /
OU=URA,O=UNIBA / OU=SANTA,O=UNIBA
For the producers directory, has not OU. The O is: O=PORTAL


Jul 19 '05 #1
0 6932

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: mo | last post by:
The code I've pasted below is taken directly from Microsoft's site at http://support.microsoft.com/default.aspx?scid=kb;EN-US;308157 As far as I can tell the error is raised on this line: conn...
0
by: Jeff Reed | last post by:
I am experiencing the the problem outlined the below. Unfortunately, I am using WinXP and I not sure if I can apply the solution due to lack of security control Any feed back would be apreciated ...
9
by: Tim D | last post by:
Hi, I originally posted this as a reply to a rather old thread in dotnet.framework.general and didn't get any response. I thought it might be more relevant here; anyone got any ideas? My...
9
by: Bijoy Naick | last post by:
I've implemented forms authentication and authorization on my application. In my Web.Config, my authorization section looks like this.. <authorization> <allow roles="admin" /> <deny users="*"...
13
by: Adam | last post by:
Trying to get an asp.net 2.0 app running and am receiving this error. I see a bunch of people with this error on the net, but no solution: Works fine on my local machine, deployed to a server it...
6
by: ruben | last post by:
Hi: I'm running a large database on PostgreSQL 7.1.3. 20 days ago the database failed with a threatening and not too descriptive error like: pg_exec() query failed: server closed the...
2
by: news | last post by:
I just upgraded to PHP 4.4.2 on my Slackware 10.2 system. And Apache/mySQL/PHP all work great through a browser. No errors. But when I try to run a PHP script through the command line, which I...
2
by: Dennis | last post by:
I'm getting the following problem occasionally...the application will work perfectly well for a period of time and then this pops up. I have tried turning off the default proxy in the...
1
by: kencana | last post by:
Hi all, I was wondering why I always get "failed to open stream: HTTP request failed!" error in either loading a normal or xml file. i don't understand why i can't get the whole result. the result...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.