June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
|
|
@ -0,0 +1,18 @@
|
|||
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()
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue