문제

How can I encrypt/hide my hard coded password in my PHP script to connect with the Active Directory over LDAP.

Here's my script:

$adminUsername = "administrator";
$adminPassword = "Admin123";
도움이 되었습니까?

해결책

ON the LDAP create a new user/group with specific rights and use that account in your php script. You cannot hash/encrypt your password or LDAP would not accept it. Don't set your administrator passwords in a script on a server that is accessible to multiple persons.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top