OpenDSObject failed

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fie Fie Niles

    OpenDSObject failed

    When I used GetObject to authenticate LDAP, it returns "authentica tion
    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 "authentica tion success" when my client enter a user name
    that does not exist (for ex: UserNotExist)

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

    (LDAP://ldap.unibanvirt ual.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=med el)
    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=UNIB A/jsmith")
    Set openDS = GetObject("LDAP ://ldap.univirtual .com:389/O=UNIBA")
    Set openDS = GetObject("LDAP ://ldap.univirtual .com:389/OU=MEDEL,O=UNIB A")

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

    Set openDS = GetObject(sPath )

    if err.number = 0 then

    Response.Write "authentica tion 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.univirtua l.com\jsmith"

    strUserName = "cn=jsmith,ou=m edel,o=uniba,dc =ldap.univirtua l.com,dc=com"

    strUserName = "cn=jsmith,o=po rtal,dc=ldap.un ivirtual.com,dc =com"

    strUserName = "cn=jsmith,o=po rtal"

    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(strAD sPath)

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

    set oADsNamespace = GetObject(strAD sNamespace)

    Set oADsObject = oADsNamespace.O penDSObject(str ADsPath, 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.ADsP ath

    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=UNIB A /
    OU=URA,O=UNIBA / OU=SANTA,O=UNIB A
    For the producers directory, has not OU. The O is: O=PORTAL




Working...