Sign in to follow this  
Followers 0
fry2k

Syntax Error

6 posts in this topic

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

Share this post


Link to post
Share on other sites



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

AutoIt3 doesn't support a minus sign in a variable at this moment.

I use "$objUser.IsAccountLocked" to test if a user is locked.

:)


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

what if you enumerate though every subobject with a for loop and try to get the value from each one?

Share this post


Link to post
Share on other sites

thx my friend - i was not knowing this attribut @ msdn tech it is not descriped. thx

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0