3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // Eléments d'authentification LDAP $ldaprdn = 'admin'; // DN ou RDN LDAP $ldappass = '%00'; // Mot de passe associé // Connexion au serveur LDAP $ldapconn = ldap_connect("challenge01.root-me.org",54013) or die("Impossible de se connecter au serveur LDAP."); if ($ldapconn) { // Connexion au serveur LDAP $ldapbind = ldap_bind($ldapconn, $ldaprdn, $ldappass); // Vérification de l'authentification if ($ldapbind) { echo "Connexion LDAP réussie..."; } else { echo "Connexion LDAP échouée..."; } } ?>
based on 0A1tF
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function ldap_connect() in /in/FnRcn:7 Stack trace: #0 {main} thrown in /in/FnRcn on line 7
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Fatal error: Call to undefined function ldap_connect() in /in/FnRcn on line 7
Process exited with code 255.