From: Howard Chu Date: Sat, 22 Sep 2007 23:58:54 +0000 (+0000) Subject: Use OLcfgCt{Oc|At} arc for contrib modules X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~611 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=75df004a044c98f76b81daf93dab7da7cef2c236;p=openldap Use OLcfgCt{Oc|At} arc for contrib modules --- diff --git a/contrib/ConfigOIDs b/contrib/ConfigOIDs new file mode 100644 index 0000000000..e397f231e5 --- /dev/null +++ b/contrib/ConfigOIDs @@ -0,0 +1,3 @@ +List of OpenLDAP Configuration OIDs allocated to contrib modules + +OLcfgCt{Oc|At}:1 smbk5pwd diff --git a/contrib/slapd-modules/smbk5pwd/smbk5pwd.c b/contrib/slapd-modules/smbk5pwd/smbk5pwd.c index dabf6e782a..2262a44cec 100644 --- a/contrib/slapd-modules/smbk5pwd/smbk5pwd.c +++ b/contrib/slapd-modules/smbk5pwd/smbk5pwd.c @@ -604,23 +604,23 @@ enum { static ConfigDriver smbk5pwd_cf_func; /* - * NOTE: uses OID arcs OLcfgOvAt:6 and OLcfgOvOc:6 + * NOTE: uses OID arcs OLcfgCtAt:1 and OLcfgCtOc:1 */ static ConfigTable smbk5pwd_cfats[] = { { "smbk5pwd-enable", "arg", 2, 0, 0, ARG_MAGIC|PC_SMB_ENABLE, smbk5pwd_cf_func, - "( OLcfgOvAt:6.1 NAME 'olcSmbK5PwdEnable' " + "( OLcfgCtAt:1.1 NAME 'olcSmbK5PwdEnable' " "DESC 'Modules to be enabled' " "SYNTAX OMsDirectoryString )", NULL, NULL }, { "smbk5pwd-must-change", "time", 2, 2, 0, ARG_MAGIC|ARG_INT|PC_SMB_MUST_CHANGE, smbk5pwd_cf_func, - "( OLcfgOvAt:6.2 NAME 'olcSmbK5PwdMustChange' " + "( OLcfgCtAt:1.2 NAME 'olcSmbK5PwdMustChange' " "DESC 'Credentials validity interval' " "SYNTAX OMsInteger SINGLE-VALUE )", NULL, NULL }, { "smbk5pwd-can-change", "time", 2, 2, 0, ARG_MAGIC|ARG_INT|PC_SMB_CAN_CHANGE, smbk5pwd_cf_func, - "( OLcfgOvAt:6.3 NAME 'olcSmbK5PwdCanChange' " + "( OLcfgCtAt:1.3 NAME 'olcSmbK5PwdCanChange' " "DESC 'Credentials minimum validity interval' " "SYNTAX OMsInteger SINGLE-VALUE )", NULL, NULL }, @@ -628,7 +628,7 @@ static ConfigTable smbk5pwd_cfats[] = { }; static ConfigOCs smbk5pwd_cfocs[] = { - { "( OLcfgOvOc:6.1 " + { "( OLcfgCtOc:1.1 " "NAME 'olcSmbK5PwdConfig' " "DESC 'smbk5pwd overlay configuration' " "SUP olcOverlayConfig " diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index d417ae18d7..6a6e56d61f 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -193,11 +193,13 @@ static OidRec OidMacros[] = { { "OLcfgBkAt", "OLcfgAt:1" }, { "OLcfgDbAt", "OLcfgAt:2" }, { "OLcfgOvAt", "OLcfgAt:3" }, + { "OLcfgCtAt", "OLcfgAt:4" }, /* contrib modules */ { "OLcfgOc", "OLcfg:4" }, { "OLcfgGlOc", "OLcfgOc:0" }, { "OLcfgBkOc", "OLcfgOc:1" }, { "OLcfgDbOc", "OLcfgOc:2" }, { "OLcfgOvOc", "OLcfgOc:3" }, + { "OLcfgCtOc", "OLcfgOc:4" }, /* contrib modules */ /* Syntaxes. We should just start using the standard names and * document that they are predefined and available for users @@ -235,8 +237,6 @@ static OidRec OidMacros[] = { * OLcfgOv{Oc|At}:3 -> chain * OLcfgOv{Oc|At}:4 -> accesslog * OLcfgOv{Oc|At}:5 -> valsort - * (FIXME: separate arc for contribware?) - * OLcfgOv{Oc|At}:6 -> smbk5pwd * OLcfgOv{Oc|At}:7 -> distproc * OLcfgOv{Oc|At}:8 -> dynlist * OLcfgOv{Oc|At}:9 -> dds