summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 086962f)
raw | patch | inline | side by side (parent: 086962f)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 15 Mar 2010 10:50:19 +0000 (10:50 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 15 Mar 2010 10:50:19 +0000 (10:50 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@16525 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/setup/class_setupStep_Ldap.inc | patch | blob | history |
index a57238e09c2f331ffbff7629865504de008f2720..eca54c38a809806ade702a4075aba2d716336055 100644 (file)
$this->connect_id = FALSE;
$this->bind_id = FALSE;
- ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7);
+ @ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7);
$this->connect_id = ldap_connect($this->connection);
if($this->tls){
- if(ldap_set_option($this->connect_id, LDAP_OPT_REFERRALS, 0))
- if(ldap_start_tls($this->connect_id))
- $this->bind_id = ldap_bind($this->connect_id, $this->admin, $this->password);
- ldap_set_option($this->connect_id, LDAP_OPT_PROTOCOL_VERSION, 3);
+ if(@ldap_set_option($this->connect_id, LDAP_OPT_REFERRALS, 0))
+ if(@ldap_start_tls($this->connect_id))
+ $this->bind_id = @ldap_bind($this->connect_id, $this->admin, $this->password);
+ @ldap_set_option($this->connect_id, LDAP_OPT_PROTOCOL_VERSION, 3);
}else{
- ldap_set_option($this->connect_id, LDAP_OPT_PROTOCOL_VERSION, 3);
+ @ldap_set_option($this->connect_id, LDAP_OPT_PROTOCOL_VERSION, 3);
$this->bind_id = @ldap_bind($this->connect_id, $this->admin, $this->password);
}