Python Forum
LDAP code to query for host not returning data
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
LDAP code to query for host not returning data
#3
I was able to parse and get the information I need by parsing ldap_dump as follows:

    
    while l:
            result_type, result_data = l.result(ldap_dump, 0)
            if (result_data == [] ):
                break
            else:
                if result_type == ldap.RES_SEARCH_ENTRY:
                    Log("info",  inspect.getframeinfo(inspect.currentframe()).function, "result - " + str(result_data) )
                    results.append(str(result_data))
Reply


Messages In This Thread
RE: LDAP code to query for host not returning data - by burvil - Oct-17-2018, 10:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Returning Column and Row Data From Spreadsheet knight2000 0 483 Oct-22-2023, 07:07 AM
Last Post: knight2000
  Connecting to LDAP through Python ranjansanyal2007 0 435 Oct-09-2023, 05:21 PM
Last Post: ranjansanyal2007
  Code is returning the incorrect values. syntax error 007sonic 6 1,311 Jun-19-2023, 03:35 AM
Last Post: 007sonic
  Is the following code returning a generator expression? quazirfan 8 1,724 Apr-11-2023, 11:44 PM
Last Post: quazirfan
  Basic SQL query using Py: Inserting or querying sqlite3 database not returning data marlonbown 3 1,440 Nov-08-2022, 07:16 PM
Last Post: marlonbown
  Setup host for consistent data transfer to client via TCP Gustav97 0 724 Jun-27-2022, 07:33 PM
Last Post: Gustav97
  Same Data Showing Several Times With Beautifulsoup Query eddywinch82 2 1,296 May-29-2022, 11:46 PM
Last Post: eddywinch82
  Regex Expression With Code Query In Pandas eddywinch82 8 2,421 Apr-13-2022, 09:12 AM
Last Post: snippsat
  Ldap Search for finding user Groups ilknurg 1 1,796 Mar-11-2022, 12:10 PM
Last Post: DeaD_EyE
  where to host my python script tomtom 1 1,296 Feb-09-2022, 06:45 AM
Last Post: ndc85430

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020