mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-27 03:20:22 +08:00
e90ef57645
including: - fixes according to new API changes - closing db connection in connection_destroy callback, not unbind - support of new schema code, samples changed accordingly - support for multiple objectclasses (to distinguish from unique objectclass-to-tables mapping) - auto 'ref' attribute support - samples now include illustrations of using these 2 features to make named referrals as described in ldapext-namedref draft more to come: - documentation update - different improvements to be more close to native directory (after beta?)
65 lines
1.5 KiB
SQL
65 lines
1.5 KiB
SQL
drop table if exists ldap_oc_mappings;
|
|
create table ldap_oc_mappings
|
|
(
|
|
id integer unsigned not null primary key auto_increment,
|
|
name varchar(64) not null,
|
|
keytbl varchar(64) not null,
|
|
keycol varchar(64) not null,
|
|
create_proc varchar(255),
|
|
delete_proc varchar(255),
|
|
expect_return tinyint not null
|
|
);
|
|
|
|
drop table if exists ldap_attr_mappings;
|
|
create table ldap_attr_mappings
|
|
(
|
|
id integer unsigned not null primary key auto_increment,
|
|
oc_map_id integer unsigned not null references ldap_oc_mappings(id),
|
|
name varchar(255) not null,
|
|
sel_expr varchar(255) not null,
|
|
from_tbls varchar(255) not null,
|
|
join_where varchar(255),
|
|
add_proc varchar(255),
|
|
delete_proc varchar(255),
|
|
param_order tinyint not null,
|
|
expect_return tinyint not null
|
|
);
|
|
|
|
drop table if exists ldap_entries;
|
|
create table ldap_entries
|
|
(
|
|
id integer unsigned not null primary key auto_increment,
|
|
dn varchar(255) not null,
|
|
oc_map_id integer unsigned not null references ldap_oc_mappings(id),
|
|
parent int NOT NULL ,
|
|
keyval int NOT NULL
|
|
);
|
|
|
|
alter table ldap_entries add
|
|
constraint unq1_ldap_entries unique
|
|
(
|
|
oc_map_id,
|
|
keyval
|
|
);
|
|
|
|
alter table ldap_entries add
|
|
constraint unq2_ldap_entries unique
|
|
(
|
|
dn
|
|
);
|
|
|
|
drop table if exists ldap_referrals;
|
|
create table ldap_referrals
|
|
(
|
|
entry_id integer not null references ldap_entries(id),
|
|
url text not null
|
|
);
|
|
|
|
drop table if exists ldap_entry_objclasses;
|
|
create table ldap_entry_objclasses
|
|
(
|
|
entry_id integer not null references ldap_entries(id),
|
|
oc_name varchar(64)
|
|
);
|
|
|