Skip to content
This repository has been archived by the owner on May 2, 2018. It is now read-only.

Commit

Permalink
show more errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaifieraru committed Jan 31, 2014
1 parent 73957fa commit 6cadd19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sites/all/modules/ldap_jacobs/LDAP.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

class LdapSearch
{
//var $host = "jacobs.jacobs-university.de";
var $host = "jacobs.jacobs-university.de";
var $ds;
var $errmessage;
Expand Down Expand Up @@ -104,6 +105,7 @@ function connect()

function bind($username = LDAP_USER, $password = '')
{
ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7);

if (!$this->stat_connect) {
if (!$this->connect())
Expand Down
2 changes: 2 additions & 0 deletions sites/all/modules/ldap_jacobs/testmf.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ function msg($prefix, $r) {
echo $prefix." ".$r->errmessage."\n";
}



if(!$r->connect()){
msg("could not connect", $r);
return;
Expand Down

0 comments on commit 6cadd19

Please sign in to comment.