git.samba.org
/
metze
/
samba
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
debug it...
[metze/samba/wip.git]
/
source4
/
dsdb
/
schema
/
schema_syntax.c
diff --git
a/source4/dsdb/schema/schema_syntax.c
b/source4/dsdb/schema/schema_syntax.c
index 6f8d3c1d44998d62326f878c2fd534f887a325a0..e82b350d2004de5eb0030480b60ffd542ccefc6f 100644
(file)
--- a/
source4/dsdb/schema/schema_syntax.c
+++ b/
source4/dsdb/schema/schema_syntax.c
@@
-391,6
+391,8
@@
static WERROR dsdb_syntax_INT32_validate_ldb(const struct dsdb_syntax_ctx *ctx,
n = v & UINT32_MAX;
if (n != v) {
n = v & UINT32_MAX;
if (n != v) {
+ DEBUG(0,("invalid[%s] n[%ld] v[%ld]\n",
+ buf, n, v));
return WERR_DS_INVALID_ATTRIBUTE_SYNTAX;
}
return WERR_DS_INVALID_ATTRIBUTE_SYNTAX;
}
@@
-403,6
+405,8
@@
static WERROR dsdb_syntax_INT32_validate_ldb(const struct dsdb_syntax_ctx *ctx,
* We need to accept '-2147483647', but reject
* '2147483649', both represent 0x80000001.
*/
* We need to accept '-2147483647', but reject
* '2147483649', both represent 0x80000001.
*/
+ DEBUG(0,("invalid[%s] n[%ld] v[%ld]\n",
+ buf, n, v));
return WERR_DS_INVALID_ATTRIBUTE_SYNTAX;
}
return WERR_DS_INVALID_ATTRIBUTE_SYNTAX;
}
@@
-535,6
+539,8
@@
static WERROR dsdb_syntax_INT64_validate_ldb(const struct dsdb_syntax_ctx *ctx,
n = v & UINT64_MAX;
if (n != v) {
n = v & UINT64_MAX;
if (n != v) {
+ DEBUG(0,("invalid[%s] n[%lld] v[%lld]\n",
+ buf, n, v));
return WERR_DS_INVALID_ATTRIBUTE_SYNTAX;
}
return WERR_DS_INVALID_ATTRIBUTE_SYNTAX;
}
@@
-549,6
+555,8
@@
static WERROR dsdb_syntax_INT64_validate_ldb(const struct dsdb_syntax_ctx *ctx,
* but reject '9223372036854775809',
* both represent 0x8000000000000001.
*/
* but reject '9223372036854775809',
* both represent 0x8000000000000001.
*/
+ DEBUG(0,("invalid[%s] n[%lld] v[%lld]\n",
+ buf, n, v));
return WERR_DS_INVALID_ATTRIBUTE_SYNTAX;
}
return WERR_DS_INVALID_ATTRIBUTE_SYNTAX;
}