@@ -13,7 +13,7 @@ |
||
13 | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
14 | 14 | */ |
15 | 15 | global $LANG; |
16 | -$LANG = array ( |
|
16 | +$LANG = array( |
|
17 | 17 | 'report_a_bug' => 'Report a Bug', |
18 | 18 | 'user_profile_api_key' => 'Your API key', |
19 | 19 | 'settings_ldap_and_local_authentication' => 'Local and LDAP users', |
@@ -13,7 +13,7 @@ |
||
13 | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
14 | 14 | */ |
15 | 15 | global $LANG; |
16 | -$LANG = array ( |
|
16 | +$LANG = array( |
|
17 | 17 | 'report_a_bug' => 'Report a Bug', |
18 | 18 | 'user_profile_api_key' => 'Your API key', |
19 | 19 | 'settings_ldap_and_local_authentication' => 'Local and LDAP users', |
@@ -13,7 +13,7 @@ |
||
13 | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
14 | 14 | */ |
15 | 15 | global $LANG; |
16 | -$LANG = array ( |
|
16 | +$LANG = array( |
|
17 | 17 | 'report_a_bug' => 'Report a Bug', |
18 | 18 | 'user_profile_api_key' => 'Your API key', |
19 | 19 | 'settings_ldap_and_local_authentication' => 'Local and LDAP users', |
@@ -13,7 +13,7 @@ |
||
13 | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
14 | 14 | */ |
15 | 15 | global $LANG; |
16 | -$LANG = array ( |
|
16 | +$LANG = array( |
|
17 | 17 | 'report_a_bug' => 'Report a Bug', |
18 | 18 | 'user_profile_api_key' => 'Your API key', |
19 | 19 | 'settings_ldap_and_local_authentication' => 'Local and LDAP users', |
@@ -13,7 +13,7 @@ |
||
13 | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
14 | 14 | */ |
15 | 15 | global $LANG; |
16 | -$LANG = array ( |
|
16 | +$LANG = array( |
|
17 | 17 | 'report_a_bug' => 'Report a Bug', |
18 | 18 | 'user_profile_api_key' => 'Your API key', |
19 | 19 | 'settings_ldap_and_local_authentication' => 'Local and LDAP users', |
@@ -13,7 +13,7 @@ |
||
13 | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
14 | 14 | */ |
15 | 15 | global $LANG; |
16 | -$LANG = array ( |
|
16 | +$LANG = array( |
|
17 | 17 | 'report_a_bug' => 'Report a Bug', |
18 | 18 | 'user_profile_api_key' => 'Your API key', |
19 | 19 | 'settings_ldap_and_local_authentication' => 'Local and LDAP users', |
@@ -446,10 +446,10 @@ discard block |
||
446 | 446 | if (($SETTINGS['ldap_bind_dn'] === "" && $SETTINGS['ldap_bind_passwd'] === "") || $ldapbind === true) { |
447 | 447 | $filter = "(&(".$SETTINGS['ldap_user_attribute']."=".$username.")(objectClass=".$SETTINGS['ldap_object_class']."))"; |
448 | 448 | $result = ldap_search( |
449 | - $ldapconn, |
|
450 | - $SETTINGS['ldap_search_base'], |
|
451 | - $filter, |
|
452 | - array('dn', 'mail', 'givenname', 'sn') |
|
449 | + $ldapconn, |
|
450 | + $SETTINGS['ldap_search_base'], |
|
451 | + $filter, |
|
452 | + array('dn', 'mail', 'givenname', 'sn') |
|
453 | 453 | ); |
454 | 454 | if ($debugLdap == 1) { |
455 | 455 | fputs( |
@@ -496,11 +496,11 @@ discard block |
||
496 | 496 | if ($entries['count'] > 0) { |
497 | 497 | // Now check if group fits |
498 | 498 | for ($i=0; $i<$entries['count']; $i++) { |
499 | - $parsr=ldap_explode_dn($entries[$i]['dn'], 0); |
|
500 | - if (str_replace(array('CN=','cn='), '', $parsr[0]) === $SETTINGS['ldap_usergroup']) { |
|
499 | + $parsr=ldap_explode_dn($entries[$i]['dn'], 0); |
|
500 | + if (str_replace(array('CN=','cn='), '', $parsr[0]) === $SETTINGS['ldap_usergroup']) { |
|
501 | 501 | $GroupRestrictionEnabled = true; |
502 | 502 | break; |
503 | - } |
|
503 | + } |
|
504 | 504 | } |
505 | 505 | |
506 | 506 | } |
@@ -495,9 +495,9 @@ |
||
495 | 495 | |
496 | 496 | if ($entries['count'] > 0) { |
497 | 497 | // Now check if group fits |
498 | - for ($i=0; $i<$entries['count']; $i++) { |
|
499 | - $parsr=ldap_explode_dn($entries[$i]['dn'], 0); |
|
500 | - if (str_replace(array('CN=','cn='), '', $parsr[0]) === $SETTINGS['ldap_usergroup']) { |
|
498 | + for ($i = 0; $i < $entries['count']; $i++) { |
|
499 | + $parsr = ldap_explode_dn($entries[$i]['dn'], 0); |
|
500 | + if (str_replace(array('CN=', 'cn='), '', $parsr[0]) === $SETTINGS['ldap_usergroup']) { |
|
501 | 501 | $GroupRestrictionEnabled = true; |
502 | 502 | break; |
503 | 503 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
14 | 14 | */ |
15 | 15 | global $LANG; |
16 | -$LANG = array ( |
|
16 | +$LANG = array( |
|
17 | 17 | 'at_user_updated' => 'User #user_login# was updated', |
18 | 18 | 'report_a_bug' => 'Report a Bug', |
19 | 19 | 'user_profile_api_key' => 'Your API key', |