Menu

#3 LDAP version not set

V1.1.x
open
Adam
LDAP (3)
5
2004-08-13
2004-08-13
Adam
No

Need to make sure that we have the LDAP version set.

Add

ldap_set_option($aldapConn,
LDAP_OPT_PROTOCOL_VERSION, 3);

ldap_set_option($ldapConn,
LDAP_OPT_PROTOCOL_VERSION, 3);

to the code.

Discussion

  • Adam

    Adam - 2004-08-13

    Logged In: YES
    user_id=1072758

    See http://forums.devshed.com/archive/t-123443 for more
    information.

     
  • Nobody/Anonymous

    Logged In: NO

    Add this:
    >>>
    if (!ldap_set_option($connection,
    LDAP_OPT_PROTOCOL_VERSION, 3)) {
    message_die(GENERAL_ERROR, 'Could
    not set LDAPv3.', '', __LINE__, __FILE__, '');
    }
    <<<
    before
    >>>
    if ($board_config["ldap_proxy_dn"] != "") {
    $bind = ldap_bind($connection,
    $board_config["ldap_proxy_dn"], $board_config
    ["ldap_proxy_dn_pass"]);
    }
    <<<

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.