active directory - How to get a list of all Distinguished Names (DNs) from AD (LDAP) using PHP? -
i list of dns inside active directory while having base dn.
also list of groups , group members.
the language used php.
if php bad choice task, language recommend?
cheers,
php has ldap extension. long php installation has extension enabled, should able effortlessly connect ad server , perform queries.
after that, it's matter of performing basic function calls: ldap_connect()
, ldap_bind()
, ldap_search()
, ldap_get_entries()
, iterating on result set.
keep in mind if wish perform changes ad (which doesn't seem case here), you'll have connect through ssl, might have few gotchas involving making php see ad's ssl certificate trusted.
Comments
Post a Comment