I've only briefly read the post Garg but remember that not everything that can be done with WINNT can be done with LDAP and vice-versa.

I would search the board some more as it could be one of those long 64bit integer issues or something like that.

I know the code has been done a couple of times here, but maybe as you've found they all use WinNT for it - not sure, just something more to ponder and research.