Active Directory/Search for a user: Difference between revisions

Content added Content deleted
({{omit from|ZX Spectrum Basic|Does not have network access.}})
(Added PicoLisp)
Line 3: Line 3:


Make sure you [[Connect to Active Directory]]
Make sure you [[Connect to Active Directory]]

=={{header|PicoLisp}}==
<lang PicoLisp>(de ldapsearch (Sn)
(in
(list "ldapsearch" "-xH" "ldap://db.debian.org"
"-b" "dc=debian,dc=org"
(pack "sn=" Sn) )
(list
(cons 'cn (prog (from "cn: ") (line T)))
(cons 'uid (prog (from "uid: ") (line T))) ) ) )</lang>
Test:
<pre>: (ldapsearch "Fischer")
-> ((cn . "Mika") (uid . "mf"))</pre>


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