Jump to content

Syntax Error


Recommended Posts

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

Link to comment
Share on other sites

  • Developers

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.

:)

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.
  :)

Link to comment
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

Link to comment
Share on other sites

  • Developers

I use $objUser.AccountDisabled to test if the account was locked by security .

:)

Edited 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.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...