I have been tring to configure Drupal 7.7 to do the LDAP auth. I have filled out the LDAP Server Configuration as much as I could.
But the added server wasn't able to pass the test. When I tried to query an existing user, it either printed out errors like:
Notice: Trying to get property of non-object in ldap_servers_test_form() (line 29 of /mnt/PWBCAdminStore/web/drupal/drupal-7.7-dev/sites/all/modules/ldap/ldap_servers/ldap_servers.test_form.inc).
Notice: Trying to get property of non-object in theme_ldap_servers_server() (line 78 of /mnt/PWBCAdminStore/web/drupal/drupal-7.7-dev/sites/all/modules/ldap/ldap_servers/ldap_servers.theme.inc).
Notice: Trying to get property of non-object in theme_ldap_servers_server() (line 78 of /mnt/PWBCAdminStore/web/drupal/drupal-7.7-dev/sites/all/modules/ldap/ldap_servers/ldap_servers.theme.inc).
Notice: Trying to get property of non-object in theme_ldap_servers_server() (line 78 of /mnt/PWBCAdminStore/web/drupal/drupal-7.7-dev/sites/all/modules/ldap/ldap_servers/ldap_servers.theme.inc).
Notice: Trying to get property of non-object in theme_ldap_servers_server() (line 78 of /mnt/PWBCAdminStore/web/drupal/drupal-7.7-dev/sites/all/modules/ldap/ldap_servers/ldap_servers.theme.inc).
Notice: Trying to get property of non-object in theme_ldap_servers_server() (line 78 of /mnt/PWBCAdminStore/web/drupal/drupal-7.7-dev/sites/all/modules/ldap/ldap_servers/ldap_servers.theme.inc).
Notice: Trying to get property of non-object in theme_ldap_servers_server() (line 78 of /mnt/PWBCAdminStore/web/drupal/drupal-7.7-dev/sites/all/modules/ldap/ldap_servers/ldap_servers.theme.inc).
Notice: Trying to get property of non-object in theme_ldap_servers_server() (line 78 of /mnt/PWBCAdminStore/web/drupal/drupal-7.7-dev/sites/all/modules/ldap/ldap_servers/ldap_servers.theme.inc).
Notice: Trying to get property of non-object in theme_ldap_servers_server() (line 78 of /mnt/PWBCAdminStore/web/drupal/drupal-7.7-dev/sites/all/modules/ldap/ldap_servers/ldap_servers.theme.inc).
Notice: Trying to get property of non-object in theme_ldap_servers_server() (line 78 of /mnt/PWBCAdminStore/web/drupal/drupal-7.7-dev/sites/all/modules/ldap/ldap_servers/ldap_servers.theme.inc).
Notice: Trying to get property of non-object in theme_ldap_servers_server() (line 78 of /mnt/PWBCAdminStore/web/drupal/drupal-7.7-dev/sites/all/modules/ldap/ldap_servers/ldap_servers.theme.inc).
Notice: Trying to get property of non-object in theme_ldap_servers_server() (line 78 of /mnt/PWBCAdminStore/web/drupal/drupal-7.7-dev/sites/all/modules/ldap/ldap_servers/ldap_servers.theme.inc).
Notice: Trying to get property of non-object in theme_ldap_servers_server() (line 78 of /mnt/PWBCAdminStore/web/drupal/drupal-7.7-dev/sites/all/modules/ldap/ldap_servers/ldap_servers.theme.inc).
Notice: Trying to get property of non-object in theme_ldap_servers_server() (line 78 of /mnt/PWBCAdminStore/web/drupal/drupal-7.7-dev/sites/all/modules/ldap/ldap_servers/ldap_servers.theme.inc).
Notice: Trying to get property of non-object in theme_ldap_servers_server() (line 78 of /mnt/PWBCAdminStore/web/drupal/drupal-7.7-dev/sites/all/modules/ldap/ldap_servers/ldap_servers.theme.inc).
Notice: Trying to get property of non-object in theme_ldap_servers_server() (line 78 of /mnt/PWBCAdminStore/web/drupal/drupal-7.7-dev/sites/all/modules/ldap/ldap_servers/ldap_servers.theme.inc).
Notice: Trying to get property of non-object in ldap_servers_test_form() (line 63 of /mnt/PWBCAdminStore/web/drupal/drupal-7.7-dev/sites/all/modules/ldap/ldap_servers/ldap_servers.test_form.inc).
Notice: Trying to get property of non-object in ldap_servers_test_form() (line 70 of /mnt/PWBCAdminStore/web/drupal/drupal-7.7-dev/sites/all/modules/ldap/ldap_servers/ldap_servers.test_form.inc).
or the browser reported error 500 Internal Server Error.
Below is my current config:
Server and LDAP Module
|
OK
|
Apache | Apache/2.2.16 (Ubuntu) |
|
OK
|
PHP version | 5.3.3-1ubuntu9.5 |
|
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 | no |
|
OK
|
open ssl extension loaded | yes |
|
OK
|
Drupal | 7.7 |
|
OK
|
ldap_servers | status: 1, schema_version: 7100, v: 7.x-1.0-beta3 |
|
OK
|
ldap_authentication | status: 1, schema_version: 0, v: 7.x-1.0-beta3 |
|
OK
|
ldap_authorization | status: 0, schema_version: -1, v: 7.x-1.0-beta3 |
User Settings
|
OK
|
Who can register accounts? | Visitors, but administrator approval is required |
General Settings
|
OK
|
ssl required | 0 |
|
OK
|
encryption | Not available. |
Server: LDAP1
|
OK
|
sid | |
|
OK
|
name | LDAP1 |
|
OK
|
status | 1 |
|
OK
|
ldap_type | openldap |
|
OK
|
port | 389 |
|
OK
|
tls | 0 |
|
OK
|
user_attr | cn |
|
OK
|
mail_attr | |
|
OK
|
user_dn_expression | |
|
OK
|
ldap_to_drupal_user | |
|
OK
|
ldaps in address | n |
|
OK
|
binddn present | yes |
|
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 is useful for creating accounts and assigning roles before an ldap user authenticates. |
|
OK
|
acctCreation | Create accounts automatically for ldap authenticated users. Account creation settings at /admin/config/people/accounts/settings will only affect non-ldap authenticated accounts. |
Any help will be appreciated. cheers
Comments
Comment #1
johnbarclay commentedThe error you are getting indicates a problem with the configuration, not any issues with your particular ldap settings.
The sid is missing from the configuration, so it isn't loading. This should be a required field.
Put an sid in your configuration. You get to make that up; its just your made up id for that server.
Comment #2
showmanlkz commentedHi John, grad I have asked in here. And you are right. I missed the SID (it's called Machine name for this server configuration on the form).
But no, this field is not mandatory but it really should be.
And now, I have found that I couldn't deleted the old configuration (the one with no SID). I clicked on delete, but it didn't go away.
Derrick
Comment #3
johnbarclay commentedjust delete all the records in the ldap_servers table and you will be fine to start over. If you uninstall ldap_servers, the table will be removed altogether and you can start with a fresh slate.
Comment #4
johnbarclay commentedComment #5.0
(not verified) commentedn/a