I have to write LDAP editor in PHP. LDAP is used for store network devices (switch,AP,..). So, it is not normal functionality and I found lot of problems. The biggest problem is
Perhaps you should have a look at Zend_Ldap
, the LDAP component in the Zend Framework. It allows schema introspection for OpenLDAP servers and those compatible with OpenLDAP. The code may provide you with some hints on how to do this.
Please note that this procedure is not possible with an Active Directory server as they store the schema information in a form that cannot be retrieved by ext/php
due to the lack of paging support.