Jump to content

Tim33

Members
  • Posts

    18
  • Joined

  • Last visited

Tim33's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. THX..just tested and it works!
  2. So you have not integrated the results from our test sesssion 3 months ago? '?do=embed' frameborder='0' data-embedContent>>
  3. Hello, again in the new version 1.4.1.1 the function _AD_IsObjectLocked does always return 0 For all who need the function, this code is working: Func _IsObjectLocked($sFQDN) $objuser = ObjGet("LDAP://" & $sFQDN) $objLockout = $objuser.get("lockouttime") If Not IsObj($objLockout) Then Return ;not locked If $objLockout.lowpart = 0 And $objLockout.highpart = 0 Then Return ;not locked Else Return 1 ;locked EndIf EndFunc ;==>_IsObjectLocked
  4. For that you did a very good job! If you need my environment for additional tests, just leave me a message.
  5. Version 1: locked. @error = -1, @extened = 0 Version 2: locked. @error = -1, @extened = 0
  6. Maximum Password Age (days)|31 Minimum Password Age (days)|1 Enforce Password History (# of passwords remembered)|6 Minimum Password Length|6 Account Lockout Duration (minutes)|0 Account Lockout Threshold (invalid logon attempts)|5 Reset account lockout counter after (minutes)|3 Password last changed (YYYY/MM/DD HH:MM:SS local time)|2012/05/14 11:08:22 Password expires (YYYY/MM/DD HH:MM:SS local time)| Password last changed (YYYY/MM/DD HH:MM:SS UTC)|2012/05/14 09:08:22 Password expires (YYYY/MM/DD HH:MM:SS UTC)| Password properties|0
  7. High: -2147483648 80000000 Low : 0 00000000
  8. domainControllerFunctionality|5 domainFunctionality|5 forestFunctionality|5
  9. 12| Maximum Password Age (days)|31 Minimum Password Age (days)|1 Enforce Password History (# of passwords remembered)|6 Minimum Password Length|6 Account Lockout Duration (minutes)|-15372286728.0913 Account Lockout Threshold (invalid logon attempts)|5 Reset account lockout counter after (minutes)|3 Password last changed (YYYY/MM/DD HH:MM:SS local time)|2012/05/14 11:08:22 Password expires (YYYY/MM/DD HH:MM:SS local time)| Password last changed (YYYY/MM/DD HH:MM:SS UTC)|2012/05/14 09:08:22 Password expires (YYYY/MM/DD HH:MM:SS UTC)| Password properties|0 --- Lockout duration 0 minutes means that the user has to be unlocked by an administrator.. Is this correct? Yes
  10. How long do you lock a user? Account lockout duration: 0 minutes Account lockout threshold: 5 invalid logon attempts Reset account lockout counter after: 3 minutes Do you use the fine grained password policy? No
  11. locked: lockoutTime = 2014/05/20 10:41:06 not locked: lockoutTime = 1601/01/01 00:00:00
  12. >Running AU3Check (3.3.10.2) from:C:ProgrammeAutoIt3 input:C:AutoItislockedtest.au3 +>14:16:29 AU3Check ended.rc:0 >Running:(3.3.10.2):C:ProgrammeAutoIt3autoit3.exe "C:AutoItislockedtest.au3" --> Press Ctrl+Alt+F5 to Restart or Ctrl+Break to Stop not locked. @error = 12, @extened = 0 +>14:16:30 AutoIt3.exe ended.rc:0 +>14:16:30 AutoIt3Wrapper Finished. >Exit code: 0 Time: 1.192
  13. Yes custimzed SORRY now it works: >Running AU3Check (3.3.10.2) from:C:ProgrammeAutoIt3 input:C:AutoItislockedtest.au3 +>14:16:29 AU3Check ended.rc:0 >Running:(3.3.10.2):C:ProgrammeAutoIt3autoit3.exe "C:AutoItislockedtest.au3" --> Press Ctrl+Alt+F5 to Restart or Ctrl+Break to Stop not locked. @error = 12, @extened = 0 +>14:16:30 AutoIt3.exe ended.rc:0 +>14:16:30 AutoIt3Wrapper Finished. >Exit code: 0 Time: 1.192
  14. >"C:ProgrammeAutoIt3SciTEAutoIt3WrapperAutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:AutoItislockedtest.au3" /UserParams +>13:06:31 Starting AutoIt3Wrapper v.2.2.0.0 SciTE v.3.4.1.0 Keyboard:00000407 OS:WIN_XP/Service Pack 3 CPU:X64 OS:X86 Environment(Language:0407) +> SciTEDir => C:ProgrammeAutoIt3SciTE >Running AU3Check (3.3.10.2) from:C:ProgrammeAutoIt3 input:C:AutoItislockedtest.au3 +>13:06:31 AU3Check ended.rc:0 >Running:(3.3.10.2):C:ProgrammeAutoIt3autoit3.exe "C:AutoItislockedtest.au3" --> Press Ctrl+Alt+F5 to Restart or Ctrl+Break to Stop not locked. @error = 0, @extened = 0 +>13:06:32 AutoIt3.exe ended.rc:0 +>13:06:32 AutoIt3Wrapper Finished. >Exit code: 0 Time: 1.028
  15. #include <AD.au3> _AD_Open() If _AD_IsObjectLocked("timtest") Then ConsoleWrite("locked" & @CRLF) Else ConsoleWrite("not locked" & @CRLF) EndIf _AD_Close() Always "not locked" !!! BTW the other function _AD_UnlockObject() works fine.
×
×
  • Create New...