You are here

function ldap_authentication_ldap_integration6_to_ldap7 in Lightweight Directory Access Protocol (LDAP) 7

Same name and namespace in other branches
  1. 8.2 ldap_authentication/ldap_authentication.install \ldap_authentication_ldap_integration6_to_ldap7()

File

ldap_authentication/ldap_authentication.install, line 67
Install, update and uninstall functions for the LDAP authentication module.

Code

function ldap_authentication_ldap_integration6_to_ldap7() {

  // fix authmaps
  // UPDATE {authmap} SET module = 'ldap_authentication' WHERE module = 'ldapauth'
  // load all users and setup user data array

  /**
  * CREATE TABLE `ldapauth` (
  	`sid` TINYINT(4) NOT NULL AUTO_INCREMENT,
  	`name` VARCHAR(255) NOT NULL,
  	`status` TINYINT(4) NOT NULL DEFAULT '0',
  	`server` VARCHAR(255) NOT NULL,
  	`port` INT(11) NOT NULL DEFAULT '389',
  	`tls` TINYINT(4) NOT NULL DEFAULT '0',
  	`encrypted` TINYINT(4) NOT NULL DEFAULT '0',
  	`basedn` TEXT NULL,
  	`user_attr` VARCHAR(255) NULL DEFAULT NULL,
  	`mail_attr` VARCHAR(255) NULL DEFAULT NULL,
  	`binddn` VARCHAR(255) NULL DEFAULT NULL,
  	`bindpw` VARCHAR(255) NULL DEFAULT NULL,
  	`login_php` TEXT NULL,
  	`filter_php` TEXT NULL,
  	`weight` INT(11) NOT NULL DEFAULT '0',
  	`ldapgroups_in_dn` TINYINT(4) NOT NULL DEFAULT '0',
  	`ldapgroups_dn_attribute` VARCHAR(255) NULL DEFAULT NULL,
  	`ldapgroups_attr` VARCHAR(255) NULL DEFAULT NULL,
  	`ldapgroups_in_attr` TINYINT(4) NOT NULL DEFAULT '0',
  	`ldapgroups_as_entries` TINYINT(4) NOT NULL DEFAULT '0',
  	`ldapgroups_entries` TEXT NULL,
  	`ldapgroups_entries_attribute` VARCHAR(255) NULL DEFAULT NULL,
  	`ldapgroups_mappings` TEXT NULL,
  	`ldapgroups_mappings_filter` TINYINT(4) NOT NULL DEFAULT '0',
  	`ldapgroups_filter_php` TEXT NULL,
  	`ldapgroups_groups` TEXT NULL,
  	PRIMARY KEY (`name`),
  	INDEX `sid` (`sid`)
  )
  COLLATE='utf8_general_ci'
  ENGINE=InnoDB
  ROW_FORMAT=DEFAULT
  AUTO_INCREMENT=2
  */
}