summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2012-06-25 20:53:31 +0200
committerArthur Schiwon <blizzz@owncloud.com>2012-06-25 20:54:21 +0200
commita72eddeef780fbff10d53478d20672255fb78643 (patch)
tree28a8fc10b51f731b4686d5ec8b3baaef3e535cbd
parentb1f3364eee449a25e55833bea6d716125e0cb8dd (diff)
downloadnextcloud-server-a72eddeef780fbff10d53478d20672255fb78643.tar.gz
nextcloud-server-a72eddeef780fbff10d53478d20672255fb78643.zip
LDAP: compare base trees case insensitively
-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 ffe6b3d2e93..f3b0b993cea 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))) {
+ if(strripos($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))) {
+ if(strripos($dn, self::$ldapBaseUsers) !== (strlen($dn)-strlen(self::$ldapBaseUsers))) {
return false;
}
return self::dn2ocname($dn, $ldapname, true);