]> git.sur5r.net Git - openldap/commitdiff
ITS#8329 Add the id_query config item.
authorPaul Terry <p.a.terry@gmail.com>
Thu, 3 Dec 2015 17:44:21 +0000 (17:44 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 3 Dec 2015 19:21:46 +0000 (19:21 +0000)
servers/slapd/back-sql/config.c

index 320dbba9c9efea779d5aa1de4ac417e16b8453e4..92f2af378e796b5dc4eb4360edb91b9fc71cde34 100644 (file)
@@ -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 'Custom ID query' "
+                       "SYNTAX OMsDirectoryString SINGLE-VALUE )", NULL, NULL },
        { NULL, NULL, 0, 0, 0, ARG_IGNORED,
                NULL, NULL, NULL, NULL }
 };