Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ldap ext problems #4570

Closed
ghost opened this issue Jan 4, 2015 · 0 comments
Closed

ldap ext problems #4570

ghost opened this issue Jan 4, 2015 · 0 comments

Comments

@ghost
Copy link

ghost commented Jan 4, 2015

HHVM version:

HipHop VM 3.4.2 (rel)
Compiler: tags/HHVM-3.4.2-0-g40d85d7386b3342ab848fc45c6892433c89ef5b2
Repo schema: 13cba877c4300d1d0481b3f40eb128a5115d4e08
Extension API: 20140829

1. LDAP_OPT_NETWORK_TIMEOUT undefined

http://docs.hhvm.com/manual/en/function.ldap-set-option.php

root@300d0c415acd:/# echo '<?php var_dump(LDAP_OPT_NETWORK_TIMEOUT);' | hhvm --php

Notice: Use of undefined constant LDAP_OPT_NETWORK_TIMEOUT - assumed 'LDAP_OPT_NETWORK_TIMEOUT' in /tmp/php-wrap-lzBRdU on line 1
string(24) "LDAP_OPT_NETWORK_TIMEOUT"

2. ldap_get_entries don't lower attribute name as expected

$dn = 'dc=example,dc=com';
$filter = '(&(objectClass=user)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))';
$attr = array('userPrincipalName');
$conn = ldap_connect('1.2.3.4', 389) or die('Connection Error.');
ldap_set_option($conn, LDAP_OPT_PROTOCOL_VERSION, 3);
ldap_set_option($conn, LDAP_OPT_REFERRALS, 0);
$bind = ldap_bind($conn, 'ldap@example.com', 'password');
if ($bind) {
    $search = ldap_search($conn, $dn, $filter, $attr);
    if ($search) {
        $ret = ldap_get_entries($conn, $search);
        print_r($ret);
    }
}

hhvmphp

@ghost ghost changed the title LDAP_OPT_NETWORK_TIMEOUT undefined ldap ext problems Jan 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant