I have tried to add users through PHP ldap active directory for Microsoft Server 2008 R2 datacenter, but I do not can do. I always get this error:
An error occurred. Error number 64: Naming violation is the code:
I am taking my first steps in this ldap, please explain in detail.
The exact PHP syntax is not definitive, but the following line:
$ dn_aux = "mail =" $ _POST ['mail'] ", ou = usuarios, dc = correo, dc = mx"; The subject of an active directory is not correct. Explanation is that in such a directory, you are not able to select the object that you use for the name of an object. For example, an 'InetOrgPerson' object must have its name in order to use the CN attribute. For more information, read the naming properties of care from Microsoft documentation.
Try:
dn_aux = "CN =" $ _POST ['CN'] "ou = usuarios, dc = correo, dc = mx";
Comments
Post a Comment