simonmlewis Posted March 23, 2009 Share Posted March 23, 2009 Hello I am a first time user on this site, and first time and getting an Intranet to connect with Active Directory (AD) via LDAP in PHP. I have tried various methods, but I keep getting this error: Call to undefined function ldap_connect() It's on the line: $conn = ldap_connect("ldap.roydomain") or die ("Could not connect to server"); I am suspicious that something in my Apache 2.2.1 is not enabled or I would at least get the "could not connect...." error. Can someone please guide me as I am utterly lost with this. Many thanks Simon Link to comment https://forums.phpfreaks.com/topic/150738-first-time-user-trying-to-connect-php-to-ldap-for-ad-authentication/ Share on other sites More sharing options...
rhodesa Posted March 23, 2009 Share Posted March 23, 2009 ldap module is not enabled by default. instructions here: http://us3.php.net/manual/en/ldap.setup.php what OS is the webserver running? Link to comment https://forums.phpfreaks.com/topic/150738-first-time-user-trying-to-connect-php-to-ldap-for-ad-authentication/#findComment-791933 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.