Skip to content

Support LDAP_OPT_DIAGNOSTIC_MESSAGE#142

Open
datatim wants to merge 1 commit intoadldap:masterfrom
datatim:master
Open

Support LDAP_OPT_DIAGNOSTIC_MESSAGE#142
datatim wants to merge 1 commit intoadldap:masterfrom
datatim:master

Conversation

@datatim
Copy link
Copy Markdown

@datatim datatim commented Jul 19, 2018

Add a new piece of functionality to support retrieving extended LDAP diagnostic messages.

$adldap->getConnection()->setExtendedErrors();
$result = $adldap->user()->create($attributes);

if (!$result) {
     $error = $adldap->getLastError();
     echo "There was an error adding a user: " . $error->getDiagnosticMessage();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant