summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib
diff options
context:
space:
mode:
authorVicDeo <victor.dubiniuk@gmail.com>2013-11-01 12:19:44 +0300
committerVicDeo <victor.dubiniuk@gmail.com>2013-11-01 12:19:44 +0300
commit4e9a23dffe6fcb7473a9632747359bf94d7f7d67 (patch)
treec4187a64e16d0b6aa9d0202bfd3f48f5dea2fcb9 /apps/user_ldap/lib
parentfad2149e3f7ec89874a759f7c31c93dd3d1e8083 (diff)
downloadnextcloud-server-4e9a23dffe6fcb7473a9632747359bf94d7f7d67.tar.gz
nextcloud-server-4e9a23dffe6fcb7473a9632747359bf94d7f7d67.zip
Excpetion->Exception
Diffstat (limited to 'apps/user_ldap/lib')
-rw-r--r--apps/user_ldap/lib/wizard.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/apps/user_ldap/lib/wizard.php b/apps/user_ldap/lib/wizard.php
index 9b84c3d5a44..9428a98e29c 100644
--- a/apps/user_ldap/lib/wizard.php
+++ b/apps/user_ldap/lib/wizard.php
@@ -81,7 +81,7 @@ class Wizard extends LDAPUtility {
}
$cr = $this->getConnection();
if(!$cr) {
- throw new \Excpetion('Could not connect to LDAP');
+ throw new \Exception('Could not connect to LDAP');
}
$rr = $this->ldap->search($cr, $base, $filter, array('dn'));
if(!$this->ldap->isResource($rr)) {
@@ -108,7 +108,7 @@ class Wizard extends LDAPUtility {
$cr = $this->getConnection();
if(!$cr) {
- throw new \Excpetion('Could not connect to LDAP');
+ throw new \Exception('Could not connect to LDAP');
}
$base = $this->configuration->ldapBase[0];
@@ -169,7 +169,7 @@ class Wizard extends LDAPUtility {
}
$cr = $this->getConnection();
if(!$cr) {
- throw new \Excpetion('Could not connect to LDAP');
+ throw new \Exception('Could not connect to LDAP');
}
$base = $this->configuration->ldapBase[0];
@@ -222,7 +222,7 @@ class Wizard extends LDAPUtility {
}
$cr = $this->getConnection();
if(!$cr) {
- throw new \Excpetion('Could not connect to LDAP');
+ throw new \Exception('Could not connect to LDAP');
}
$obclasses = array('posixGroup', 'group', '*');
@@ -274,7 +274,7 @@ class Wizard extends LDAPUtility {
}
$cr = $this->getConnection();
if(!$cr) {
- throw new \Excpetion('Could not connect to LDAP');
+ throw new \Exception('Could not connect to LDAP');
}
$obclasses = array('group', 'posixGroup', '*');
@@ -302,7 +302,7 @@ class Wizard extends LDAPUtility {
}
$cr = $this->getConnection();
if(!$cr) {
- throw new \Excpetion('Could not connect to LDAP');
+ throw new \Exception('Could not connect to LDAP');
}
$obclasses = array('inetOrgPerson', 'person', 'organizationalPerson',
@@ -498,7 +498,7 @@ class Wizard extends LDAPUtility {
}
$cr = $this->getConnection();
if(!$cr) {
- throw new \Excpetion('Could not connect to LDAP');
+ throw new \Exception('Could not connect to LDAP');
}
$base = $this->configuration->ldapBase[0];
$rr = $this->ldap->search($cr, $base, $filter, $possibleAttrs);
@@ -534,7 +534,7 @@ class Wizard extends LDAPUtility {
private function testBaseDN($base) {
$cr = $this->getConnection();
if(!$cr) {
- throw new \Excpetion('Could not connect to LDAP');
+ throw new \Exception('Could not connect to LDAP');
}
//base is there, let's validate it. If we search for anything, we should
@@ -556,7 +556,7 @@ class Wizard extends LDAPUtility {
private function testMemberOf() {
$cr = $this->getConnection();
if(!$cr) {
- throw new \Excpetion('Could not connect to LDAP');
+ throw new \Exception('Could not connect to LDAP');
}
if(!is_array($this->configuration->ldapBase)
|| !isset($this->configuration->ldapBase[0])) {
@@ -616,7 +616,7 @@ class Wizard extends LDAPUtility {
$filter .= '(|';
$cr = $this->getConnection();
if(!$cr) {
- throw new \Excpetion('Could not connect to LDAP');
+ throw new \Exception('Could not connect to LDAP');
}
$base = $this->configuration->ldapBase[0];
foreach($cns as $cn) {
@@ -890,7 +890,7 @@ class Wizard extends LDAPUtility {
private function determineFeature($objectclasses, $attr, $dbkey, $confkey, $po = false) {
$cr = $this->getConnection();
if(!$cr) {
- throw new \Excpetion('Could not connect to LDAP');
+ throw new \Exception('Could not connect to LDAP');
}
$p = 'objectclass=';
foreach($objectclasses as $key => $value) {