Frequently Asked Questions in PHP——ldap_add(): Add: Undefined attribute type in
background
When we develop daily, we will encounter all kinds of strange problems (step on the pit o(╯□╰)o), this FAQ series is a series of record articles about some of the problems I encounter every day, organized here After summarizing, share it with everyone, so that his friends who are still in the deep pit can climb out with a rope.
At the same time, everyone is welcome to leave a message or private message me with the problems you encounter, and I will see if I can solve them for you.
development environment
- System: windows10
- Language: PHP
content
mistake
ldap_add(): Add: Undefined attribute type in...
Cause of:
The attribute added when using ldap_add is inconsistent with the attribute type set in the ldap server.
solution:
1. Use the phpldapadmin tool to view the Attribute Types specifically supported in the current ldap server
. 2. Compare the name, data type, and whether it is required to confirm with the user attributes set in ldap_add.
There is also a saying on the Internet that it is caused by the lack of valid input spaces in the dn, and this problem was not found during the test.
This article declares:
This work is licensed by CN Hua Shao under the Creative Commons Attribution-Noncommercial 4.0 International License.