There appears to be a typo that was introduced in a recent dev version in 'ldapauth.install'. I believe the code:

      'login_php',  array(
        'type' => 'text',
        'not null' => FALSE,
        'default' => '',
      ),
      'filter_php',  array(
        'type' => 'text',
        'not null' => FALSE,
        'default' => '',

should be

      'login_php' =>  array(
        'type' => 'text',
        'not null' => FALSE,
        'default' => '',
      ),
      'filter_php' => array(
        'type' => 'text',
        'not null' => FALSE,
        'default' => '',

(comma after 'login_php' and 'filter_php' should be "=>")

Here is the error message that I was receiving.

user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'l(l) unsigned NOT NULL auto_increment DEFAULT ', `1` TEXT DEFAULT '', `2` f(f)' at line 14 query: CREATE TABLE ldapauth ( `sid` TINYINT NOT NULL auto_increment, `name` VARCHAR(255) NOT NULL, `status` TINYINT NOT NULL DEFAULT 0, `server` VARCHAR(255) NOT NULL, `port` INT NOT NULL DEFAULT 389, `tls` TINYINT NOT NULL DEFAULT 0, `encrypted` TINYINT NOT NULL DEFAULT 0, `basedn` TEXT DEFAULT NULL, `user_attr` VARCHAR(255) DEFAULT NULL, `mail_attr` VARCHAR(255) DEFAULT NULL, `binddn` VARCHAR(255) DEFAULT NULL, `bindpw` VARCHAR(255) DEFAULT NULL, `0` l(l) unsigned NOT NULL auto_increment DEFAULT ', `1` TEXT DEFAULT '', `2` f(f) unsigned NOT NULL auto_increment DEFAULT ', `3` TEXT DEFAULT '', PRIMARY KEY (name), INDEX sid (sid) ) /*!40100 DEFAULT CHARACTER SET UTF8 */ in E:\htdocs\drupal\includes\database.inc on line 515.

Comments

miglius’s picture

Assigned: Unassigned » miglius
Status: Active » Fixed

Fixed, thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.