From c7dfce538093c36957b25bf7e449bc695d6a04bb Mon Sep 17 00:00:00 2001 From: Manuel Parra Date: Fri, 16 Dec 2016 19:35:28 +0100 Subject: [PATCH] Port assignment --- README.md | 2 +- extras/authentication.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5c1b435..7e08397 100644 --- a/README.md +++ b/README.md @@ -720,7 +720,7 @@ Copy the next piece of code or download full example below, and test it (customi $dn="cn=admin,dc=ugr,dc=es"; //change your DN $pwd_admin="password"; // your admin password - $conn = ldap_connect( "ldap://".$host,14XXX) ; + $conn = ldap_connect( "ldap://".$host,$port) ; ldap_set_option($conn, LDAP_OPT_PROTOCOL_VERSION, 3); diff --git a/extras/authentication.php b/extras/authentication.php index b4270e5..8fba39b 100644 --- a/extras/authentication.php +++ b/extras/authentication.php @@ -8,11 +8,11 @@ //LDAP SETUP CONFIGURATION $host= '192.168.10.30'; - $port= 389; //LDAP port // SSL: 698 + $port= 14XXX; //LDAP port // SSL: 698 $dn="cn=admin,dc=ugr,dc=es"; //change your DN $pwd_admin="password"; // your admin password - $conn = ldap_connect( "ldap://".$host,389) ; + $conn = ldap_connect( "ldap://".$host,$port) ; ldap_set_option($conn, LDAP_OPT_PROTOCOL_VERSION, 3);