fry2k Posted May 31, 2007 Posted May 31, 2007 hi i want to make a querry to an LDAP. but i get an error @ If $UserObj.msDS-User-Account-Control-Computed= 8388608 then MsgBox( 4096, "", "locked") Else EndIf If $UserObj.msDS.- ~~~~~~~~~~~~^ How can i tell him that the "-" here is no Operator. The msDS-User-Account-Control-Computed is one Attribut. Thx for help
Developers Jos Posted May 31, 2007 Developers Posted May 31, 2007 hi i want to make a querry to an LDAP.but i get an error @If $UserObj.msDS-User-Account-Control-Computed= 8388608 thenMsgBox( 4096, "", "locked")ElseEndIfIf $UserObj.msDS.-~~~~~~~~~~~~^How can i tell him that the "-" here is no Operator. The msDS-User-Account-Control-Computed is one Attribut.Thx for helpAutoIt3 doesn't support a minus sign in a variable at this moment.I use "$objUser.IsAccountLocked" to test if a user is locked. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
fry2k Posted May 31, 2007 Author Posted May 31, 2007 thx for repley. but the attribute "islocked" is only for realy locked Accounts, for example the user has 3 wrong pw counts. This attribute is for realy deactivated Accounts (by admin). Can i write it on a other way? mayby $test= "msDS-User-Account-Control-Computed" If $UserObj.&$test= 8388608 then MsgBox( 4096, "", "locked") Else EndIf thx
evilertoaster Posted May 31, 2007 Posted May 31, 2007 what if you enumerate though every subobject with a for loop and try to get the value from each one?
Developers Jos Posted May 31, 2007 Developers Posted May 31, 2007 (edited) I use $objUser.AccountDisabled to test if the account was locked by security . Edited May 31, 2007 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
fry2k Posted June 1, 2007 Author Posted June 1, 2007 thx my friend - i was not knowing this attribut @ msdn tech it is not descriped. thx
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now