Active Directory/Connect: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) m (→{{header|smart BASIC}}: marked incorrect) |
(Add Rust implementation) |
||
Line 387: | Line 387: | ||
{{incorrect|Run BASIC|Active Directory has nothing to do with the local file system}} |
{{incorrect|Run BASIC|Active Directory has nothing to do with the local file system}} |
||
<lang runbasic>print shell$("dir") ' shell out to the os and print it</lang> |
<lang runbasic>print shell$("dir") ' shell out to the os and print it</lang> |
||
=={{header|Rust}}== |
|||
This solution uses the popular [https://crates.io/crates/ldap3 ldap3] crate. |
|||
<lang rust> |
|||
let conn = ldap3::LdapConn::new("ldap://ldap.example.com")?; |
|||
conn.simple_bind("bind_dn", "bind_pass")?.success()?; |
|||
</lang> |
|||
=={{header|Scala}}== |
=={{header|Scala}}== |