s4 dsdb: fix sign problem on PPC and x86
authorMatthieu Patou <mat@matws.net>
Thu, 14 Oct 2010 13:56:23 +0000 (17:56 +0400)
committerMatthieu Patou <mat@matws.net>
Fri, 15 Oct 2010 07:34:24 +0000 (11:34 +0400)
commit34f12d541b0bb2e7d931968b2079dfb7ba84d692
tree0e38ece15ffd97a74c33106ccef8e0fbe34a69a8
parentf794563267ca26b62d844d87b5a4fa3668fb803c
s4 dsdb: fix sign problem on PPC and x86

In LDAP we used signed intege and groups have the highest bit set (ie.
0x80000002). So it will result with values that are > 2^31 when these
value are used on some plateforms (x86 and PPC 64bits in this case) it
causes problem with strtol.
source4/dsdb/samdb/ldb_modules/samldb.c