Jump to content



Photo

Active Directory UDF - Help & Support


  • This topic is locked This topic is locked
781 replies to this topic

#441 sublimnl

sublimnl

    Wayfarer

  • Active Members
  • Pip
  • 77 posts

Posted 22 March 2012 - 09:14 PM

IIRC, that error usually indicates a rights issue.







#442 water

water

    ?

  • MVPs
  • 11,167 posts

Posted 22 March 2012 - 10:33 PM

Please set
$iAD_Debug = 2
at the top of your script (after the #include <ad.au3> statement) and you will get the full error information.

UDFs:

Active Directory (2012-10-12 - Version 1.3.0.0 released) - Download - General Help & Support - Example Scripts - Wiki

OutlookEX (2012-10-07 - Version 0.9.0.0 released) - Download - General Help & Support - Example Scripts - Wiki

ExcelChart (2013-01-21 - Version 0.3.1.1 released) - Download - General Help & Support - Example Scripts

WordEX (2012-12-29 - Version 1.3 released) - Download

ExcelEX (2013-05-11 - Alpha 4 released) - Download


#443 Syed23

Syed23

    Mass Spammer! - It's Me

  • Active Members
  • PipPipPipPipPipPip
  • 520 posts

Posted 27 March 2012 - 01:42 PM

Hi Water,
Greeting! How are you ? Hope you are doing good! today i got an opportunity to use the function _AD_IsAccountExpired(@UserName). when i use this function i always get the return value as 1 which says the user account expired. i tested this with my own user id which has Expire date as never in AD. could you please help me on this ?
Thank you,Regards,K.Syed Ibrahim.

#444 water

water

    ?

  • MVPs
  • 11,167 posts

Posted 27 March 2012 - 02:41 PM

Hi Syed,
I'm fine, thanks. I hope you are well too.
What version of the UDF do you use?

UDFs:

Active Directory (2012-10-12 - Version 1.3.0.0 released) - Download - General Help & Support - Example Scripts - Wiki

OutlookEX (2012-10-07 - Version 0.9.0.0 released) - Download - General Help & Support - Example Scripts - Wiki

ExcelChart (2013-01-21 - Version 0.3.1.1 released) - Download - General Help & Support - Example Scripts

WordEX (2012-12-29 - Version 1.3 released) - Download

ExcelEX (2013-05-11 - Alpha 4 released) - Download


#445 Syed23

Syed23

    Mass Spammer! - It's Me

  • Active Members
  • PipPipPipPipPipPip
  • 520 posts

Posted 27 March 2012 - 04:25 PM

I m fine. Thanks for asking!. i think i was using very old version :oops: 1.1.0 and downloaded the latest version and ran the below example:

#include<AD.au3> _AD_Open() $test = _AD_IsAccountExpired(@username) _AD_Close() MsgBox(0,"",$test)


ended with below error message

C:Program Files (x86)AutoIt3IncludeAD.au3 (3842) : ==> The requested action with this object has failed.: Local $sAD_AccountExpires = $oAD_Object.AccountExpirationDate Local $sAD_AccountExpires = $oAD_Object.AccountExpirationDate^ ERROR ->11:27:19 AutoIT3.exe ended.rc:1

Edited by Syed23, 27 March 2012 - 04:31 PM.

Thank you,Regards,K.Syed Ibrahim.

#446 water

water

    ?

  • MVPs
  • 11,167 posts

Posted 28 March 2012 - 07:38 AM

Could you please insert
$iAD_Debug = 2
at the top of your script (after the #include statement) and post the output you get?

Edited by water, 28 March 2012 - 07:39 AM.

UDFs:

Active Directory (2012-10-12 - Version 1.3.0.0 released) - Download - General Help & Support - Example Scripts - Wiki

OutlookEX (2012-10-07 - Version 0.9.0.0 released) - Download - General Help & Support - Example Scripts - Wiki

ExcelChart (2013-01-21 - Version 0.3.1.1 released) - Download - General Help & Support - Example Scripts

WordEX (2012-12-29 - Version 1.3 released) - Download

ExcelEX (2013-05-11 - Alpha 4 released) - Download


#447 Syed23

Syed23

    Mass Spammer! - It's Me

  • Active Members
  • PipPipPipPipPipPip
  • 520 posts

Posted 28 March 2012 - 10:21 AM

i added the $iAD_Debug = 2 on my script but still the result was same.

C:Program Files (x86)AutoIt3IncludeAD.au3 (3842) : ==> The requested action with this object has failed.: Local $sAD_AccountExpires = $oAD_Object.AccountExpirationDate Local $sAD_AccountExpires = $oAD_Object.AccountExpirationDate^ ERROR

Thank you,Regards,K.Syed Ibrahim.

#448 water

water

    ?

  • MVPs
  • 11,167 posts

Posted 28 March 2012 - 03:30 PM

I will check and - hopefully - post a solution quite soon.

UDFs:

Active Directory (2012-10-12 - Version 1.3.0.0 released) - Download - General Help & Support - Example Scripts - Wiki

OutlookEX (2012-10-07 - Version 0.9.0.0 released) - Download - General Help & Support - Example Scripts - Wiki

ExcelChart (2013-01-21 - Version 0.3.1.1 released) - Download - General Help & Support - Example Scripts

WordEX (2012-12-29 - Version 1.3 released) - Download

ExcelEX (2013-05-11 - Alpha 4 released) - Download


#449 water

water

    ?

  • MVPs
  • 11,167 posts

Posted 28 March 2012 - 04:28 PM

Could you please run this test script?
#include<AD.au3> _AD_Open() MsgBox(0,"", "_AD_Open: " & @error) $test = _AD_IsAccountExpired(@username) _AD_Close() MsgBox(0,"",$test)

UDFs:

Active Directory (2012-10-12 - Version 1.3.0.0 released) - Download - General Help & Support - Example Scripts - Wiki

OutlookEX (2012-10-07 - Version 0.9.0.0 released) - Download - General Help & Support - Example Scripts - Wiki

ExcelChart (2013-01-21 - Version 0.3.1.1 released) - Download - General Help & Support - Example Scripts

WordEX (2012-12-29 - Version 1.3 released) - Download

ExcelEX (2013-05-11 - Alpha 4 released) - Download


#450 Syed23

Syed23

    Mass Spammer! - It's Me

  • Active Members
  • PipPipPipPipPipPip
  • 520 posts

Posted 28 March 2012 - 05:02 PM

Could you please run this test script?

#include<AD.au3> _AD_Open() MsgBox(0,"", "_AD_Open: " & @error) $test = _AD_IsAccountExpired(@username) _AD_Close() MsgBox(0,"",$test)

I tested the above test script and got return value as 0.
Thank you,Regards,K.Syed Ibrahim.

#451 water

water

    ?

  • MVPs
  • 11,167 posts

Posted 28 March 2012 - 05:23 PM

So _AD_Open works fine and then the script still crashes? :oops:

UDFs:

Active Directory (2012-10-12 - Version 1.3.0.0 released) - Download - General Help & Support - Example Scripts - Wiki

OutlookEX (2012-10-07 - Version 0.9.0.0 released) - Download - General Help & Support - Example Scripts - Wiki

ExcelChart (2013-01-21 - Version 0.3.1.1 released) - Download - General Help & Support - Example Scripts

WordEX (2012-12-29 - Version 1.3 released) - Download

ExcelEX (2013-05-11 - Alpha 4 released) - Download


#452 Syed23

Syed23

    Mass Spammer! - It's Me

  • Active Members
  • PipPipPipPipPipPip
  • 520 posts

Posted 28 March 2012 - 05:49 PM

So _AD_Open works fine and then the script still crashes? :oops:


you are perfect!
Thank you,Regards,K.Syed Ibrahim.

#453 water

water

    ?

  • MVPs
  • 11,167 posts

Posted 28 March 2012 - 05:56 PM

Did you download version 1.2.0 or 1.2.1.0?

UDFs:

Active Directory (2012-10-12 - Version 1.3.0.0 released) - Download - General Help & Support - Example Scripts - Wiki

OutlookEX (2012-10-07 - Version 0.9.0.0 released) - Download - General Help & Support - Example Scripts - Wiki

ExcelChart (2013-01-21 - Version 0.3.1.1 released) - Download - General Help & Support - Example Scripts

WordEX (2012-12-29 - Version 1.3 released) - Download

ExcelEX (2013-05-11 - Alpha 4 released) - Download


#454 Syed23

Syed23

    Mass Spammer! - It's Me

  • Active Members
  • PipPipPipPipPipPip
  • 520 posts

Posted 28 March 2012 - 06:28 PM

i am using 1.2.1.0
Thank you,Regards,K.Syed Ibrahim.

#455 water

water

    ?

  • MVPs
  • 11,167 posts

Posted 28 March 2012 - 07:06 PM

Could you please try version 1.2.0? 1.2.1.0 is experimental.

UDFs:

Active Directory (2012-10-12 - Version 1.3.0.0 released) - Download - General Help & Support - Example Scripts - Wiki

OutlookEX (2012-10-07 - Version 0.9.0.0 released) - Download - General Help & Support - Example Scripts - Wiki

ExcelChart (2013-01-21 - Version 0.3.1.1 released) - Download - General Help & Support - Example Scripts

WordEX (2012-12-29 - Version 1.3 released) - Download

ExcelEX (2013-05-11 - Alpha 4 released) - Download


#456 Syed23

Syed23

    Mass Spammer! - It's Me

  • Active Members
  • PipPipPipPipPipPip
  • 520 posts

Posted 29 March 2012 - 10:14 AM

i used your 1.2.0 version and the result is same the function _AD_IsAccountExpired(@username) returns the value as 1 :oops:
Thank you,Regards,K.Syed Ibrahim.

#457 water

water

    ?

  • MVPs
  • 11,167 posts

Posted 29 March 2012 - 11:15 AM

Very strange :oops:
  • Is there anything special with your Active Directory environment (like ADAM etc.)?
  • What version of the AD do you run (Windows 2000, Windows Server 2003, Windows Server 2008 ...)?

UDFs:

Active Directory (2012-10-12 - Version 1.3.0.0 released) - Download - General Help & Support - Example Scripts - Wiki

OutlookEX (2012-10-07 - Version 0.9.0.0 released) - Download - General Help & Support - Example Scripts - Wiki

ExcelChart (2013-01-21 - Version 0.3.1.1 released) - Download - General Help & Support - Example Scripts

WordEX (2012-12-29 - Version 1.3 released) - Download

ExcelEX (2013-05-11 - Alpha 4 released) - Download


#458 water

water

    ?

  • MVPs
  • 11,167 posts

Posted 29 March 2012 - 11:32 AM

With version 1.2.0
$iAD_Debug = 2
should work again.
Could you please insert this line?

What I don't understand why sometimes you get a result and sometimes the script crashes :oops:
Do you have an explanation?

UDFs:

Active Directory (2012-10-12 - Version 1.3.0.0 released) - Download - General Help & Support - Example Scripts - Wiki

OutlookEX (2012-10-07 - Version 0.9.0.0 released) - Download - General Help & Support - Example Scripts - Wiki

ExcelChart (2013-01-21 - Version 0.3.1.1 released) - Download - General Help & Support - Example Scripts

WordEX (2012-12-29 - Version 1.3 released) - Download

ExcelEX (2013-05-11 - Alpha 4 released) - Download


#459 Syed23

Syed23

    Mass Spammer! - It's Me

  • Active Members
  • PipPipPipPipPipPip
  • 520 posts

Posted 29 March 2012 - 11:37 AM

With version 1.2.0

$iAD_Debug = 2
should work again.
Could you please insert this line?

What I don't understand why sometimes you get a result and sometimes the script crashes :oops:
Do you have an explanation?

in our environment we uses Windows 2008 R2 Standar. Also when i used AD 1.2.1.0 version the script was crashing but when i was using AD 1.2.0 version the script does not crashes but i get the return value as 1. I used ]$iAD_Debug = 2 and got the below error message informations.

AD UDF Version : 1.2.0 Scriptline = 3873 NumberHex = 80020009 Number = -2147352567 WinDescription = Unspecified error Description = Source = Helpfile = Helpcontext = 0 LastDllError = 0

Edited by Syed23, 29 March 2012 - 11:39 AM.

Thank you,Regards,K.Syed Ibrahim.

#460 water

water

    ?

  • MVPs
  • 11,167 posts

Posted 29 March 2012 - 11:48 AM

Error 0x80020009 most of the time is caused by missing permissions.
Is it possible that you are not allowed to read all properties?

UDFs:

Active Directory (2012-10-12 - Version 1.3.0.0 released) - Download - General Help & Support - Example Scripts - Wiki

OutlookEX (2012-10-07 - Version 0.9.0.0 released) - Download - General Help & Support - Example Scripts - Wiki

ExcelChart (2013-01-21 - Version 0.3.1.1 released) - Download - General Help & Support - Example Scripts

WordEX (2012-12-29 - Version 1.3 released) - Download

ExcelEX (2013-05-11 - Alpha 4 released) - Download





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users