Announcement

Collapse
No announcement yet.

AD query returns empty results

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • AD query returns empty results

    I have one user in "myOU" and he's not a member of any AD groups. So I figured I could locate him by a "Saved Query" using:

    Code:
    (&(objectCategory=user)(memberOf=CN=*,OU=myOU,DC=my,DC=org))
    I'm confused why this isn't returning anything. What am I doing wrong?

    EDIT: OK, I found some documentation saying wildcards are not permitted in memberOf=CN= so how would I get all user accounts from a specific Org Unit?
    Last edited by chip743; 26th May 2011, 16:49.

  • #2
    Re: AD query returns empty results

    dsquery user OU=MYOU,dc=domain,dc=com
    Please do show your appreciation to those who assist you by leaving Rep Point https://www.petri.com/forums/core/im.../icon_beer.gif

    Comment


    • #3
      Re: AD query returns empty results

      Originally posted by tehcamel View Post
      dsquery user OU=MYOU,dc=domain,dc=com
      Is it not possible in the native GUI tool?

      Comment


      • #4
        Re: AD query returns empty results

        dunno, probably.
        dsget/dsmod/dsquery are native tools as well.
        Please do show your appreciation to those who assist you by leaving Rep Point https://www.petri.com/forums/core/im.../icon_beer.gif

        Comment


        • #5
          Re: AD query returns empty results

          What native GUI tool are you using???

          Comment


          • #6
            Re: AD query returns empty results

            Presumably ADUC
            Tom Jones
            MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
            PhD, MSc, FIAP, MIITT
            IT Trainer / Consultant
            Ossian Ltd
            Scotland

            ** Remember to give credit where credit is due and leave reputation points where appropriate **

            Comment


            • #7
              Re: AD query returns empty results

              Originally posted by Ossian View Post
              Presumably ADUC
              I would assume so but we all know that too assume is to make an ass of u and me

              Comment


              • #8
                Re: AD query returns empty results

                Originally posted by Ossian View Post
                Presumably ADUC
                Yes, Active Directory Users and Computers.

                Comment


                • #9
                  Re: AD query returns empty results

                  Originally posted by chip743 View Post
                  Is it not possible in the native GUI tool?
                  That's because in ADUC you'd use a LDAP query syntax, whereas dsquery is Command line tool that can be run from the directory where it sits.
                  Caesar's cipher - 3

                  ZKHQ BRX HYHQWXDOOB GHFLSKHU WKLV BRX ZLOO UHDOLVH LW ZDV D ZDVWH RI WLPH!

                  SFX JNRS FC U6 MNGR

                  Comment


                  • #10
                    Re: AD query returns empty results

                    Not got a DC in front of me, but have you tried:
                    (&(objectCategory=user)(memberOf=OU=myOU,DC=my,DC= org))
                    Tom Jones
                    MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
                    PhD, MSc, FIAP, MIITT
                    IT Trainer / Consultant
                    Ossian Ltd
                    Scotland

                    ** Remember to give credit where credit is due and leave reputation points where appropriate **

                    Comment


                    • #11
                      Re: AD query returns empty results

                      Originally posted by Ossian View Post
                      Not got a DC in front of me, but have you tried:
                      Yes, unfortunately that does not work. Thanks though!

                      Comment

                      Working...
                      X