Jump to content

Help with searching a username(LDAP) as a Search function


Recommended Posts

Hello all,

I created a script that pull AD information with LDAP and I am able to do that. But what I want to do is store the LDAP AD information into a function so I only use it when I need to do a search. In my script I load a GUI with information. When the search button is click I want it to take the username field and search my domain(ldap AD) and input the information into the GUI. Right now it tells me the user name doesn't exist on my domain but I know it does cause I can see it in AD. Any help with this would be greatly appreciated, thanks

adam.au3

Link to comment
Share on other sites

  • Developers

Hello all,

I created a script that pull AD information with LDAP and I am able to do that. But what I want to do is store the LDAP AD information into a function so I only use it when I need to do a search. In my script I load a GUI with information. When the search button is click I want it to take the username field and search my domain(ldap AD) and input the information into the GUI. Right now it tells me the user name doesn't exist on my domain but I know it does cause I can see it in AD. Any help with this would be greatly appreciated, thanks

$objTrans.Set ($ADS_NAME_TYPE_NT4, @LogonDomain & "\" & GUICtrlRead($usernamesearch))

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