I am trying to read the information of a user account specified in a GUI. The GUI is reading the name right as I have this working in various other parts and the code is the same.
I think I must be using the function wrong.
So I am using Water's AD UDF, and the function _AD_GetPasswordInfo. When I run this in a function it doesn't return any values. Does anyone have any idea what could be wrong here?
This is my code:
Func _PasswordInfo()
Global $pwInfo = _AD_GetPasswordInfo($vUsername4)
MsgBox(0, "Password Information", "Password Last Changed: " & $pwInfo[8] & @CRLF & "Password Expires on: " & $pwInfo[9] & @CRLF)
EndFunc ;==>_PasswordInfo
I do have the _AD_Open and _AD_Close functions in. Other parts of the script are running fine with this setup i.e. Reset password, unlock account, check group membership. Just this part is not working.
Any help is appreciated.
Thanks,
Jeff