summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/user_ldap.php
diff options
context:
space:
mode:
authorDominik Schmidt <dev@dominik-schmidt.de>2011-06-23 23:17:10 +0200
committerDominik Schmidt <dev@dominik-schmidt.de>2011-06-23 23:57:17 +0200
commit612f8cb9546a0607defe7a0ff5fd8048bbfdf92c (patch)
tree69e9e4c0d0b0aed95ea6e44fd2269a4d06d642ec /apps/user_ldap/user_ldap.php
parentc8e57d5460e9b6b94f5730bcc5ca8197c42188ab (diff)
downloadnextcloud-server-612f8cb9546a0607defe7a0ff5fd8048bbfdf92c.tar.gz
nextcloud-server-612f8cb9546a0607defe7a0ff5fd8048bbfdf92c.zip
user_ldap: add port setting
Diffstat (limited to 'apps/user_ldap/user_ldap.php')
-rw-r--r--apps/user_ldap/user_ldap.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php
index 52f88064292..cd4a92a7b16 100644
--- a/apps/user_ldap/user_ldap.php
+++ b/apps/user_ldap/user_ldap.php
@@ -25,15 +25,18 @@ require_once('User/backend.php');
class OC_USER_LDAP extends OC_USER_BACKEND {
+
+
public function checkPassword( $uid, $password ) {
$ldap_host = OC_APPCONFIG::getValue('user_ldap', 'ldap_host','');
+ $ldap_port = OC_APPCONFIG::getValue('user_ldap', 'ldap_port', OC_USER_BACKEND_LDAP_DEFAULT_PORT);
$ldap_dn = OC_APPCONFIG::getValue('user_ldap', 'ldap_dn','');
$ldap_password = OC_APPCONFIG::getValue('user_ldap', 'ldap_password','');
$ldap_base = OC_APPCONFIG::getValue('user_ldap', 'ldap_base','');
$ldap_filter = OC_APPCONFIG::getValue('user_ldap', 'ldap_filter','');
// connect to server
- $ds = ldap_connect( $ldap_host );
+ $ds = ldap_connect( $ldap_host, $ldap_port );
if( !$ds )
return false;