DART /FlutterでLDAPに接続する方法
Sun Dec 12 2021 12:09:20 GMT+0000 (Coordinated Universal Time)
Saved by
@Rafeie
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();
}
}
content_copyCOPY
https://www.fixes.pub/program/554653.html
Comments