First (1203920 AND 2) == 2, not 1. To test if your account is
disabled, the correct test is (1203920 AND 2) > 0
If you want 1 for disabled and 0 for enabled, you can run the
following test:
(1203920 \ 2) % 2 == 1 indicates that the account is disabled where \
is the entire division, and % is the modulo
Jean-Louis Halleux
ARSmarts sa
www.arsmarts.com
On 04 May 2009, at 19:45, Mark Lev wrote:
The AD Attribute "userAccountControl" stores multiple bit values for
AD user accounts.
The formula to determine if the user is disabled is :
userAccountControl AND 2
For example; userAccountControl = 1203920
1203920 AND 2 = 1 then the account is disabled.
Any know how we can calculate this in Remedy?
The bottom line is we want to know if they are disabled, so if
anyone has another way of doing it, that would work for us.
Thanks,
Mark
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor:rmisoluti...@verizon.net ARSlist: "Where the
Answers Are"
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor:rmisoluti...@verizon.net ARSlist: "Where the Answers Are"