From: Samuel Cabrero Date: Thu, 23 Oct 2014 14:47:07 +0000 (+0200) Subject: dsdb: Define syntax access point oid string as a macro X-Git-Url: http://git.samba.org/?p=obnox%2Fsamba%2Fsamba-obnox.git;a=commitdiff_plain;h=913cd47875eabefc9090c05066b6b2a5acbe9977 dsdb: Define syntax access point oid string as a macro Signed-off-by: Samuel Cabrero Reviewed-by: Garming Sam Reviewed-by: Andrew Bartlett --- diff --git a/source4/dsdb/common/dsdb_dn.h b/source4/dsdb/common/dsdb_dn.h index b455c7f64e3..8aadac7f2df 100644 --- a/source4/dsdb/common/dsdb_dn.h +++ b/source4/dsdb/common/dsdb_dn.h @@ -8,6 +8,7 @@ struct dsdb_dn { #define DSDB_SYNTAX_BINARY_DN "1.2.840.113556.1.4.903" #define DSDB_SYNTAX_STRING_DN "1.2.840.113556.1.4.904" #define DSDB_SYNTAX_OR_NAME "1.2.840.113556.1.4.1221" +#define DSDB_SYNTAX_ACCESS_POINT "1.3.6.1.4.1.1466.115.121.1.2" /* RMD_FLAGS component in a DN */ diff --git a/source4/dsdb/schema/schema_syntax.c b/source4/dsdb/schema/schema_syntax.c index c9ff588880b..2f48b25437b 100644 --- a/source4/dsdb/schema/schema_syntax.c +++ b/source4/dsdb/schema/schema_syntax.c @@ -2605,7 +2605,7 @@ static const struct dsdb_syntax dsdb_syntaxes[] = { },{ /* not used in w2k3 schema */ .name = "Object(Access-Point)", - .ldap_oid = "1.3.6.1.4.1.1466.115.121.1.2", + .ldap_oid = DSDB_SYNTAX_ACCESS_POINT, .oMSyntax = 127, .oMObjectClass = OMOBJECTCLASS("\x2b\x0c\x02\x87\x73\x1c\x00\x85\x3e"), .attributeSyntax_oid = "2.5.5.14",