Active Directory/Connect: Difference between revisions

Content added Content deleted
No edit summary
(Added PicoLisp)
Line 17: Line 17:
$ldap = ldap_connect($hostname, $port);
$ldap = ldap_connect($hostname, $port);
$success = ldap_bind($ldap, $username, $password);</lang>
$success = ldap_bind($ldap, $username, $password);</lang>

=={{header|PicoLisp}}==
<lang PicoLisp>(unless (=0 (setq Ldap (native "libldap.so" "ldap_open" 'N "example.com" 389)))
(quit "Can't open LDAP") )

(native "libldap.so" "ldap_simple_bind_s" 'I Ldap "user" "password")</lang>


=={{header|Python}}==
=={{header|Python}}==