Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Can we able to get user details by using only CN=username,DC=domain,DC=org in OPENLDAP search?
Servers for Qt installer are currently down

Can we able to get user details by using only CN=username,DC=domain,DC=org in OPENLDAP search?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
6 Posts 3 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Surendar Dharani
    wrote on last edited by Surendar Dharani
    #1

    Hi,

    Here i'm trying to get Active Directory's user details by OPENLDAP.

    My exact situation is i'm having admin credentials for Active directory. I can able to list OU or User groups.

    Then I can list or read a particular user details by using following method,

    LDAPSearchResults* entries = lc->search("CN=username,OU=groupname,DC=domain,DC=org");

    But i want to read that user's details only by CN=username,DC=domain,DC=org.

    is there any ways to do it. If any please guide me about how to do it.

    Thanks in advance.

    JonBJ 1 Reply Last reply
    0
    • S Surendar Dharani

      Hi,

      Here i'm trying to get Active Directory's user details by OPENLDAP.

      My exact situation is i'm having admin credentials for Active directory. I can able to list OU or User groups.

      Then I can list or read a particular user details by using following method,

      LDAPSearchResults* entries = lc->search("CN=username,OU=groupname,DC=domain,DC=org");

      But i want to read that user's details only by CN=username,DC=domain,DC=org.

      is there any ways to do it. If any please guide me about how to do it.

      Thanks in advance.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @Surendar-Dharani
      Does this LDAP query have anything to do with Qt? Assuming not, you might be better asking in some LDAP forum, or perhaps www.stackoverflow.com?

      EDIT Sorry, I missed your OPENLDAP, maybe it is indeed from Qt. Then if you do not get an answer here, since this is more a question about LDAP searches than anything Qt, you might want to ask in a more LDAP-py forum....

      Pablo J. RoginaP 1 Reply Last reply
      0
      • JonBJ JonB

        @Surendar-Dharani
        Does this LDAP query have anything to do with Qt? Assuming not, you might be better asking in some LDAP forum, or perhaps www.stackoverflow.com?

        EDIT Sorry, I missed your OPENLDAP, maybe it is indeed from Qt. Then if you do not get an answer here, since this is more a question about LDAP searches than anything Qt, you might want to ask in a more LDAP-py forum....

        Pablo J. RoginaP Offline
        Pablo J. RoginaP Offline
        Pablo J. Rogina
        wrote on last edited by
        #3

        @JonB said in Can we able to get user details by using only CN=username,DC=domain,DC=org in OPENLDAP search?:

        OPENLDAP, maybe it is indeed from Qt.

        if it's this OpenLDAP it looks it has nothing to do with Qt...

        Upvote the answer(s) that helped you solve the issue
        Use "Topic Tools" button to mark your post as Solved
        Add screenshots via postimage.org
        Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

        JonBJ 1 Reply Last reply
        0
        • Pablo J. RoginaP Pablo J. Rogina

          @JonB said in Can we able to get user details by using only CN=username,DC=domain,DC=org in OPENLDAP search?:

          OPENLDAP, maybe it is indeed from Qt.

          if it's this OpenLDAP it looks it has nothing to do with Qt...

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @Pablo-J-Rogina
          I just mean t there are a few posts about accessing OpenLDAP from Qt, e,g,
          https://forum.qt.io/topic/69077/how-can-i-use-openldap-from-a-qt-application-under-windows
          https://forum.qt.io/topic/100891/integrate-openldap-libraries-with-qt-windows-android-and-mac-application
          But the question itself looks more like an LDAP question.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Surendar Dharani
            wrote on last edited by Surendar Dharani
            #5

            Got solution. Thanks all.

            LDAPSearchResults* entries = lc->search("DC=domain,DC=org",LDAPConnection::SEARCH_SUB,"cn=username");

            By this i can able to get a single user.

            Pablo J. RoginaP 1 Reply Last reply
            2
            • S Surendar Dharani

              Got solution. Thanks all.

              LDAPSearchResults* entries = lc->search("DC=domain,DC=org",LDAPConnection::SEARCH_SUB,"cn=username");

              By this i can able to get a single user.

              Pablo J. RoginaP Offline
              Pablo J. RoginaP Offline
              Pablo J. Rogina
              wrote on last edited by
              #6

              @Surendar-Dharani said in Can we able to get user details by using only CN=username,DC=domain,DC=org in OPENLDAP search?:

              Got solution

              Great! Thank you for sharing it. Please don't forget to mark your post as solved.

              Upvote the answer(s) that helped you solve the issue
              Use "Topic Tools" button to mark your post as Solved
              Add screenshots via postimage.org
              Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved