そのまんま!
ldap_get_dn
    (PHP 3, PHP 4, PHP 5)
ldap_get_dn -- 結果エントリから DN を得る
説明
string 
ldap_get_dn ( resource link_identifier, resource result_entry_identifier )
   結果における、あるエントリの DN を見つけます。
  
パラメータ
   
- link_identifier
- 
       ldap_connect() が返す LDAP リンク ID。
       
- result_entry_identifier
- 
       
返り値
   結果エントリの DN を返します。エラーの場合、FALSEを返します。