Ok, still now working for some reason.
I am trying to use the fnLDAPQuery with the following code
Code:
$Name = FnLDAPQuery("samAccountName")
If AScan($Name,$textbox1.text) < 0
MessageBox("User ID not found","Notice",64)
$Label1.Width = 58
$Label1.Text = "User ID: "
$TextBox1.Visible = "True"
Exit (1)
EndIf
Where the user is typing a user name into the $TextBox1.Text field.
I have done a complete dump of the $Name array and all of the proper information appears as would be expected, however the ASCAN alway's returns a -1, even though I look at the dump of the $Name and can see the match.
As an example I have the AUser, the account is listed in the $Name, and when I ? the $textbox1.text it is = auser
What did I mess up this time?
_________________________
Today is the tomorrow you worried about yesterday.