Skip to content

Commit

Permalink
Port assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
manuparra committed Dec 16, 2016
1 parent c87a7c6 commit c7dfce5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions extras/authentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c7dfce5

Please sign in to comment.