git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7fe190c
)
debug it...
author
Stefan Metzmacher
<metze@samba.org>
Tue, 15 Feb 2011 12:54:37 +0000
(13:54 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Thu, 17 May 2018 08:33:04 +0000
(10:33 +0200)
source4/dsdb/schema/schema_syntax.c
patch
|
blob
|
history
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;
}