Kim Luther M Fonte
Newbie
Hello everyone! Has anyone here do know some APIs or libraries packages for LDAP integration for Android app? I will be using it for AD authentication for the app. Thanks and cheers! 

Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.



A'right
I'm testing it through my smartphone (Nougat, not working) and my friend's smartphone (lollipop, marshmallow, working). Also, I'm testing it in Bluestacks 3 (it's working here). I already connected my phone in my pc and turn it into debug mode but it doesn't prompt me any error.
String uname = _usernameText.getText().toString();
String password = _passwordText.getText().toString();
try {
LDAPConnection ldapConnection = new LDAPConnection(URL_AD_SERVER, 389);
SimpleBindRequest bindRequest = new SimpleBindRequest(uname, password);
final BindResult bindResult = ldapConnection.bind(bindRequest);
if(bindResult.getResultCode().isConnectionUsable())
{
loggedIn();
final ProgressDialog progressDialog = new ProgressDialog(LoginActivity.this,
R.style.AppTheme_Dark_Dialog);
progressDialog.setIndeterminate(true);
progressDialog.setMessage("Authenticating...");
progressDialog.show();
new android.os.Handler().postDelayed(
new Runnable() {
public void run() {
// On complete call either onLoginSuccess
onLoginSuccess();
progressDialog.dismiss();
}
}, 3000);
}
} catch (LDAPException le) {
// e.printStackTrace();
String message = le.getMessage();
if (!message.startsWith("Unable to bind as user ")) {
// onLoginFailed();
Toast.makeText(getBaseContext(), message, Toast.LENGTH_LONG).show();
_loginButton.setEnabled(true);
}
Sorry, I'm still newbie in mobile development 
