Topic
7 replies Latest Post - ‏2013-10-11T14:56:14Z by Giri_Daks
Giri_Daks
Giri_Daks
99 Posts
ACCEPTED ANSWER

Pinned topic LDAP query to list the locked account

‏2011-03-30T12:45:43Z |
I am trying to post and Ldap query in TDS to list out the Locked account in TDS, i used the below mentioned command but i cant able to find the resolution.

kinldy someone provide me the command
ldapsearch -h ddgdaa61 -D <username>-w <password> -b "cn=users,dc=devdeluxe,dc=com" -s sub "pwdaccountlockedtime=*" dn

Is this the correct command?
Updated on 2011-04-01T12:28:54Z at 2011-04-01T12:28:54Z by yn2000
  • yn2000
    yn2000
    1081 Posts
    ACCEPTED ANSWER

    Re: LDAP query to list the locked account

    ‏2011-03-31T13:47:42Z  in response to Giri_Daks
    Try it with bracket such as:
    ldapsearch -h ddgdaa61 -D <username> -w <password> -b "cn=users,dc=devdeluxe,dc=com" -s sub "(pwdaccountlockedtime=*)" dn
    Note: pwdaccountlockedtime is a custom attribute. Therefore it is assumed that it has the correct string.
    Rgds. YN.
    • Giri_Daks
      Giri_Daks
      99 Posts
      ACCEPTED ANSWER

      Re: LDAP query to list the locked account

      ‏2011-04-01T12:12:10Z  in response to yn2000
      HiYn2000,

      Thanks for your response, i tried the way u specified in the previous post but still its not returning any values,
      • yn2000
        yn2000
        1081 Posts
        ACCEPTED ANSWER

        Re: LDAP query to list the locked account

        ‏2011-04-01T12:26:13Z  in response to Giri_Daks
        Do you have LDAP Browser handy?
        Browse around the data using LDAP Browser and check whether 'pwdaccountlockedtime' is the correct string of attribute.
        Rgds. YN.
      • yn2000
        yn2000
        1081 Posts
        ACCEPTED ANSWER

        Re: LDAP query to list the locked account

        ‏2011-04-01T12:28:54Z  in response to Giri_Daks
        You can also try this first to make sure that the syntax of the search is correct:
        ldapsearch -h ddgdaa61 -D <username> -w <password> -b "cn=users,dc=devdeluxe,dc=com" -s sub "(uid=*)"
        Rgds. YN.
        • Giri_Daks
          Giri_Daks
          99 Posts
          ACCEPTED ANSWER

          Re: LDAP query to list the locked account

          ‏2013-10-04T13:56:58Z  in response to yn2000

          Hi Yn,

           

          Finally your suggestion with LDAP browser worked :).

          Regards,

          Giri

          • yn2000
            yn2000
            1081 Posts
            ACCEPTED ANSWER

            Re: LDAP query to list the locked account

            ‏2013-10-06T04:10:59Z  in response to Giri_Daks

            Two years later?

            :-)

            • Giri_Daks
              Giri_Daks
              99 Posts
              ACCEPTED ANSWER

              Re: LDAP query to list the locked account

              ‏2013-10-11T14:56:14Z  in response to yn2000

              Not Exactly I forgot to update in the Forum :-)