Daniel Cristian Cruz wrote: > > Is there any way to do that with PHP or Python? Yes, with Python. > Didn't found any -M option in these languages... If -M is sending the Manage DSA IT control and what is called "Smart Referral" are simply referral entries then use this: http://python-ldap.sourceforge.net/doc/html/ldap.html#ldap.LDAPObject.manage_dsa_it You can do this interactively with web2ldap: Choose [ConnInfo] -> Set Manage DSA IT to "enabled". It uses the python-ldap method above. Ciao, Michael.