diff options
author | Dominik Schmidt <dev@dominik-schmidt.de> | 2011-06-23 23:17:10 +0200 |
---|---|---|
committer | Dominik Schmidt <dev@dominik-schmidt.de> | 2011-06-23 23:57:17 +0200 |
commit | 612f8cb9546a0607defe7a0ff5fd8048bbfdf92c (patch) | |
tree | 69e9e4c0d0b0aed95ea6e44fd2269a4d06d642ec /apps/user_ldap/user_ldap.php | |
parent | c8e57d5460e9b6b94f5730bcc5ca8197c42188ab (diff) | |
download | nextcloud-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.php | 5 |
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; |