Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7792821
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T22:18:10+00:00 2026-06-01T22:18:10+00:00

When attempting to use ldap_connect() , I get this error: Fatal error: Call to

  • 0

When attempting to use ldap_connect(), I get this error:

Fatal error: Call to undefined function ldap_connect()

I’ve recompiled php with the LDAP apache module enabled, and I’ve edited my php.ini file, too and uncommented:

extension=php_ldap.dll

I’m on Red Hat Linux, php 5.3.10, apache 2.2. Any ideas?

Loaded Apache Modules: (contains *util_ldap*)

core mod_authn_file mod_authn_default mod_authz_host mod_authz_groupfile mod_authz_user mod_authz_default mod_auth_basic mod_include mod_filter util_ldap mod_log_config mod_logio mod_env mod_expires mod_headers mod_setenvif mod_version mod_proxy mod_proxy_connect mod_proxy_ftp mod_proxy_http mod_proxy_scgi mod_proxy_ajp mod_proxy_balancer mod_ssl prefork http_core mod_mime mod_status mod_autoindex mod_asis mod_info mod_suexec mod_cgi mod_negotiation mod_dir mod_actions mod_userdir mod_alias mod_rewrite mod_so mod_auth_passthrough mod_bwlimited mod_fpcgid mod_php5 mod_security

Apache Protocols: (contains: ldap)

dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, ldaps, pop3, pop3s, rtsp, smtp, smtps, telnet, tftp

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T22:18:11+00:00Added an answer on June 1, 2026 at 10:18 pm

    You write:

    When attempting to use ldap_connect(), I get this error:

    Fatal error: Call to undefined function ldap_connect()

    You get this error because the function ldap_connect­Docs is not defined. You can not call an undefined function in PHP, that’s why you see the fatal error.

    To get that function defined, you need to load a PHP module/extension called LDAP. It comes with installation intructions. You wrote:

    I’ve recompiled php with the LDAP apache module enabled.

    If you recompile PHP, ensure you enable LDAP, see:

    You will need to use the --with-ldap[=DIR] configuration option when compiling PHP to enable LDAP support. DIR is the LDAP base install directory.

    However, normally it’s enough to just install what you need via the package manager, e.g. try:

    # yum install php-ldap
    

    If it’s not enough and you actually need to edit your PHP configuration (not always necessary), do it:

    $ vi /etc/php.ini
    
    add extension=ldap.so
    
    # service httpd restart
    

    I hope this is helpful. Take care that .dll is windows only.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While attempting to use the CopyFile() function I have encountered a strange error. It
Attempting to use the data series from this example no longer passes the JSONLint
I am attempting to use the function DBMS_AQ.DEQUEUE_ARRAY in Oracle 10.2.0.4.0. to browse the
I am attempting to use the 'tempfile' module for manipulating and creating text files.
I'm attempting to use Assembly.GetType(MyCompany.Class1.Class2) to dynamically get a type from a string. Assembly.GetType(MyCompany.Class1);
When attempting to use the TCPProxy tool included with The Grinder, I get the
I am attempting to use the crypt gem. While I am able to get
I am attempting to use OpenSSL's SHA512 function in a C++ project of mine.
I am attempting to use this method I've constructed to save the layer of
attempting to use this railscast as a guide: http://railscasts.com/episodes/197-nested-model-form-part-2?view=asciicast and running into this error:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.