Active Directory/Connect: Difference between revisions
Content added Content deleted
Line 345: | Line 345: | ||
<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|Scala}}== |
|||
<lang scala>import java.io.IOException |
|||
import org.apache.directory.api.ldap.model.exception.LdapException |
|||
import org.apache.directory.ldap.client.api.{LdapConnection, LdapNetworkConnection} |
|||
object LdapConnectionDemo { |
|||
@throws[LdapException] |
|||
@throws[IOException] |
|||
def main(args: Array[String]): Unit = { |
|||
try { |
|||
val connection: LdapConnection = new LdapNetworkConnection("localhost", 10389) |
|||
try { |
|||
connection.bind() |
|||
connection.unBind() |
|||
} finally if (connection != null) connection.close() |
|||
} |
|||
} |
|||
}</lang> |
|||
=={{header|smart BASIC}}== |
=={{header|smart BASIC}}== |
||
-- [http://rosettacode.org/wiki/User:Sarossell Scott A. Rossell, 12-31-16] |
-- [http://rosettacode.org/wiki/User:Sarossell Scott A. Rossell, 12-31-16] |