Hi,
I cannot test LDAP server configuration with this error message:

Fatal error: Call to a member function connect() on a non-object in ../modules/ldap/ldap_servers/ldap_servers.test_form.inc on line 144

I don't know what is wrong. (php5-ldap package is installed on my system...)

Best regards and many thanks for your work.

Comments

johnbarclay’s picture

Status: Active » Postponed (maintainer needs more info)

Can you give me a little more info about your setup and the steps you took to get to the form. This error is not related to the php ldap extension; it has to do with the ldap_server module ldap server object.

Are the urls of this form?
http://blah.com/admin/config/people/ldap/servers/list (servers listing)
http://blah.com/admin/config/people/ldap/servers/test/[server_id] (form to submit)
http://blah.com/admin/config/people/ldap/servers/test/[server_id] (form response page)

If you enable the ldap help module and go to the url:
http://blah.com/admin/config/people/ldap/help/issues
there is a cut and paste section to submit your configuration to the issue queue. Take out anything you feel is not public info.

johnbarclay’s picture

Assigned: Unassigned » johnbarclay
spectrum1’s picture

admin/config/people/ldap/servers/list

Name	Type	Enabled	Server Address	Actions
skola 	openldap	Yes	192.168.1.250	| update | delete | test | enable | 

admin/config/people/ldap/servers/test/[server_id]

It shows blank configuration

Server Properties

    * sid =
    * name =
    * status =
    * type =
    * address =
    * port =
    * tls =
    * basedn =
    * binddn =
    * user_attr =
    * mail_attr =
    * ldap_to_drupal_user =
    * testing_drupal_username =

After click on test button it display:

Fatal error: Call to a member function connect() on a non-object in /var/www/drupal2011/modules/ldap/ldap_servers/ldap_servers.test_form.inc on line 144

More information:

Server and LDAP Module

OK
Apache Apache/2.2.16 (Debian)
OK
PHP version 5.3.3-7
OK
PHP ldap extension data
LDAP Support: enabled
RCS Version: $Id: ldap.c 299434 2010-05-17 20:09:42Z pajoye $
Total Links: 0/unlimited
API Version: 3001
Vendor Name: OpenLDAP
Vendor Version: 20423
SASL Support: Enabled
Directive: Array
ldap.max_links: Array
OK
mcrypt extension loaded yes
OK
open ssl extension loaded yes
OK
Drupal 7.0
OK
ldap_servers status: 1, schema_version: 0, v: 7.x-1.0-unstable5
OK
ldap_authentication status: 1, schema_version: 0, v: 7.x-1.0-unstable5
OK
ldap_authorization status: 0, schema_version: -1, v: 7.x-1.0-unstable5

User Settings

OK
Who can register accounts? Pouze administrátoři

General Settings

OK
ssl required 0
OK
encryption

Server: skola

OK
sid
OK
name skola
OK
status 1
OK
type openldap
OK
port 389
OK
tls 0
OK
user_attr uid
OK
mail_attr mail
OK
ldaps in address n
OK
binddn present no
OK
basedn count 1

LDAP Authentication Settings

OK
authenticationMode Mixed mode. Drupal authentication is tried first. On failure, LDAP authentication is performed.
OK
allowOnlyIfTextInDn empty
OK
excludeIfTextInDn empty
OK
allowTestPhp empty
OK
loginConflictResolve Associate local account with the LDAP entry. This option
johnbarclay’s picture

It looks like the server sid is missing. can you configure a new server and see if its a bug in the configuration save? The sid should be some alphanumeric tag and never empty.

johnbarclay’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

I suspect this is #1101422: Does not do any LDAP query when a user tries to log in since its an anonymous bind. I'm closing this as no has got back to me in 2 weeks.