0

I have a php login form localhost and I want to use the same username/password that I have when I open my computer instead of create new password. While I was searching this, I read that I must use LDAP .But I need your help because is existing a mess and I am confused.

user8190974
  • 23
  • 1
  • 1
  • 6

1 Answers1

0

1st, it call Active Directory (AD). Yes in order to allow communicate PHP to communicate to AD, you will use LDAP lib.

Make sure:

  • AD Domain Controller (DC) allow 3rd party communication; eg server firewall.
  • PHP compiled with LDAP library, enabled.
  • Have details such as Path, DC & Domain Name (DN) string.

Then either use:

Updated:

  • To get the AD IP, try ipconfig -all or ifconfig -all; DC normally listed as one of the DNS server(s).
  • Basic Connection PHP-LDAP https://pastebin.com/GR0gHFXi
    • change values on CONFIG HERE comments.
Ryan Harne
  • 469
  • 3
  • 7