X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fback-sql%2Fconfig.c;h=02c4b4aa55aaec2ef448cdfc9c2ec1f7cf053a7b;hb=9b5972dc9e14e1f7a7bef755bfd0dc61bcf1ffb3;hp=320dbba9c9efea779d5aa1de4ac417e16b8453e4;hpb=5c7d39486bc3296fac9a919e99ff0bf00f891cd2;p=openldap diff --git a/servers/slapd/back-sql/config.c b/servers/slapd/back-sql/config.c index 320dbba9c9..02c4b4aa55 100644 --- a/servers/slapd/back-sql/config.c +++ b/servers/slapd/back-sql/config.c @@ -1,7 +1,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 1999-2015 The OpenLDAP Foundation. + * Copyright 1999-2016 The OpenLDAP Foundation. * Portions Copyright 1999 Dmitry Kovalev. * Portions Copyright 2002 Pierangelo Masarati. * Portions Copyright 2004 Mark Adamson. @@ -213,6 +213,11 @@ static ConfigTable sqlcfg[] = { ARG_ON_OFF|ARG_MAGIC|BSQL_AUTOCOMMIT, (void *)sql_cf_gen, "( OLcfgDbAt:6.45 NAME 'olcSqlAutocommit' " "SYNTAX OMsBoolean SINGLE-VALUE )", NULL, NULL }, + { "id_query", "SQL expression", 2, 0, 0, ARG_STRING|ARG_QUOTE|ARG_OFFSET, + (void *)offsetof(struct backsql_info, sql_id_query), + "( OLcfgDbAt:6.46 NAME 'olcSqlIdQuery' " + "DESC 'Query used to collect entryID mapping data' " + "SYNTAX OMsDirectoryString SINGLE-VALUE )", NULL, NULL }, { NULL, NULL, 0, 0, 0, ARG_IGNORED, NULL, NULL, NULL, NULL } }; @@ -233,7 +238,7 @@ static ConfigOCs sqlocs[] = { "olcSqlFailIfNoMapping $ olcSqlAllowOrphans $ olcSqlBaseObject $ " "olcSqlLayer $ olcSqlUseSubtreeShortcut $ olcSqlFetchAllAttrs $ " "olcSqlFetchAttrs $ olcSqlCheckSchema $ olcSqlAliasingKeyword $ " - "olcSqlAliasingQuote $ olcSqlAutocommit ) )", + "olcSqlAliasingQuote $ olcSqlAutocommit $ olcSqlIdQuery ) )", Cft_Database, sqlcfg }, { NULL, Cft_Abstract, NULL } };