aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2012-06-20 12:41:30 +0200
committerArthur Schiwon <blizzz@owncloud.com>2012-06-20 12:47:31 +0200
commit5b02217906a44312ffe43a97124a6ad2f0707aef (patch)
tree1d6c27f1f2cc76e0189d5ed0cadf84bcc6c6adc1
parent7c6b8475ebf99ef87543bc77f0d2440c046befcf (diff)
downloadnextcloud-server-5b02217906a44312ffe43a97124a6ad2f0707aef.tar.gz
nextcloud-server-5b02217906a44312ffe43a97124a6ad2f0707aef.zip
forgotten $, incorrect subtract
-rw-r--r--apps/user_ldap/lib_ldap.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_ldap/lib_ldap.php b/apps/user_ldap/lib_ldap.php
index 6feb6d3c659..aa104eb5126 100644
--- a/apps/user_ldap/lib_ldap.php
+++ b/apps/user_ldap/lib_ldap.php
@@ -171,7 +171,7 @@ class OC_LDAP {
* returns the internal ownCloud name for the given LDAP DN of the group
*/
static public function dn2groupname($dn, $ldapname = null) {
- if(strrpos($dn, self::ldapBaseGroups) !== (strlen($dn)-strlen(self::ldapBaseGroups)-1)) {
+ if(strrpos($dn, self::$ldapBaseGroups) !== (strlen($dn)-strlen(self::$ldapBaseGroups))) {
return false;
}
return self::dn2ocname($dn, $ldapname, false);
@@ -186,7 +186,7 @@ class OC_LDAP {
* returns the internal ownCloud name for the given LDAP DN of the user, false on DN outside of search DN
*/
static public function dn2username($dn, $ldapname = null) {
- if(strrpos($dn, self::ldapBaseUsers) !== (strlen($dn)-strlen(self::ldapBaseUsers)-1)) {
+ if(strrpos($dn, self::$ldapBaseUsers) !== (strlen($dn)-strlen(self::$ldapBaseUsers))) {
return false;
}
return self::dn2ocname($dn, $ldapname, true);