Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Connecting to Active Directory with PHP or ASP

  • 24-01-2006 05:36PM
    #1
    Registered Users, Registered Users 2 Posts: 995 ✭✭✭


    I want to connect to Active Directory to query with a select statement using either PHP or ASP.

    I cannot seem to get the AD parameters correct when trying to connect.

    LDAP://dc=BMK-US3K002/dc=IRCO10/dc=com/ou=Bobcat/ou=Users/ou=BMK/ou=BCT-BMK-IT-OU

    This is the LDAP connection string, I have tried all sorts of combinations. Any suggestions.

    Regards


Comments

  • Registered Users, Registered Users 2 Posts: 68,173 ✭✭✭✭seamus


    For PHP, you'll have to enable the php_ldap module in php.ini. Then check out the LDAP reference on php.net: http://ie2.php.net/manual/en/ref.ldap.php

    I only tinkered about with this briefly, but it looked to be a doddle with PHP


  • Registered Users, Registered Users 2 Posts: 995 ✭✭✭cousin_borat


    Thanks Seamus. Well I went with the ASP solution. The problem was with syntax never used ASP before, its very finnicky but I can get it to work.


Advertisement
Advertisement