diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-09-29 18:57:01 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-01-13 16:03:53 +0100 |
commit | 61589085c4207ab730654d9f881a2615e483a167 (patch) | |
tree | 7d536f3f9950a1d19ff35e55974eb7528f37bf21 /source4 | |
parent | 24ecd19b30868829a2ffccaed2847e9ff4bb82e3 (diff) | |
download | samba-61589085c4207ab730654d9f881a2615e483a167.tar.gz samba-61589085c4207ab730654d9f881a2615e483a167.tar.bz2 samba-61589085c4207ab730654d9f881a2615e483a167.zip |
s4:dsdb/schema: add dsdb_syntax_DN_STRING_* wrappers
metze
Diffstat (limited to 'source4')
-rw-r--r-- | source4/dsdb/schema/schema_syntax.c | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/source4/dsdb/schema/schema_syntax.c b/source4/dsdb/schema/schema_syntax.c index 48c2031024..5242137d03 100644 --- a/source4/dsdb/schema/schema_syntax.c +++ b/source4/dsdb/schema/schema_syntax.c @@ -1466,7 +1466,35 @@ static WERROR dsdb_syntax_DN_BINARY_ldb_to_drsuapi(struct ldb_context *ldb, return WERR_OK; } +static WERROR dsdb_syntax_DN_STRING_drsuapi_to_ldb(struct ldb_context *ldb, + const struct dsdb_schema *schema, + const struct dsdb_attribute *attr, + const struct drsuapi_DsReplicaAttribute *in, + TALLOC_CTX *mem_ctx, + struct ldb_message_element *out) +{ + return dsdb_syntax_DN_BINARY_drsuapi_to_ldb(ldb, + schema, + attr, + in, + mem_ctx, + out); +} +static WERROR dsdb_syntax_DN_STRING_ldb_to_drsuapi(struct ldb_context *ldb, + const struct dsdb_schema *schema, + const struct dsdb_attribute *attr, + const struct ldb_message_element *in, + TALLOC_CTX *mem_ctx, + struct drsuapi_DsReplicaAttribute *out) +{ + return dsdb_syntax_DN_BINARY_ldb_to_drsuapi(ldb, + schema, + attr, + in, + mem_ctx, + out); +} static WERROR dsdb_syntax_PRESENTATION_ADDRESS_drsuapi_to_ldb(struct ldb_context *ldb, const struct dsdb_schema *schema, @@ -1793,8 +1821,8 @@ static const struct dsdb_syntax dsdb_syntaxes[] = { .oMSyntax = 127, .oMObjectClass = OMOBJECTCLASS("\x2a\x86\x48\x86\xf7\x14\x01\x01\x01\x0c"), .attributeSyntax_oid = "2.5.5.14", - .drsuapi_to_ldb = dsdb_syntax_DN_BINARY_drsuapi_to_ldb, - .ldb_to_drsuapi = dsdb_syntax_DN_BINARY_ldb_to_drsuapi, + .drsuapi_to_ldb = dsdb_syntax_DN_STRING_drsuapi_to_ldb, + .ldb_to_drsuapi = dsdb_syntax_DN_STRING_ldb_to_drsuapi, .equality = "octetStringMatch", .comment = "OctetString: String+DN", } |