var host= '10.1.1.5';
var login= 'myLogin'; //loginController.text;
var password= 'myPassword'; //passController.text;
var port= 389;
var connection= new LdapConnection(host: host, ssl: false, port: port, bindDN: login, password: password);
try {
await connection.open();
await connection.bind();
print('Bind OK');
} catch (e, stacktrace) {
print('********* Exception: $e, Stacktrace: $stacktrace');
} finally {
print('Closing');
await connection.close();
}
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter