PHP ldap_add function to escape ldap special characters in DN syntax

前端 未结 4 848
Happy的楠姐
Happy的楠姐 2020-12-30 05:20

I\'m trying to add some users to my Ldap DB but I get some errors (invalid dn syntax) when I use some special characters like \",.\". I need a function that escape all chara

4条回答
  •  时光说笑
    2020-12-30 06:16

    PHP 5.6 Beta released ldap_escape() function recently and it is in effect, However, this version is not production ready at present, you can very use it for your development purposes as of now.

提交回复
热议问题