<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Query ldap user password aging details in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/query-ldap-user-password-aging-details/m-p/4423071#M36652</link>
    <description>Hi &lt;BR /&gt;whatever the db is (passwd, ldap, etc) the native samba command is:&lt;BR /&gt;pdbedit -P "minimum password age"&lt;BR /&gt;(see man pages for detail)&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 21 May 2009 06:38:45 GMT</pubDate>
    <dc:creator>Andrea Rossi</dc:creator>
    <dc:date>2009-05-21T06:38:45Z</dc:date>
    <item>
      <title>Query ldap user password aging details</title>
      <link>https://community.hpe.com/t5/operating-system-linux/query-ldap-user-password-aging-details/m-p/4423063#M36644</link>
      <description>&lt;BR /&gt;RHEL as servers with 2.4 and 2.6 kerenel&lt;BR /&gt;&lt;BR /&gt;I am looking to find the last password change for an ldap user. How can i query that in ldap?&lt;BR /&gt;&lt;BR /&gt;I always use getprpw or chage which is not useful in this context.</description>
      <pubDate>Tue, 19 May 2009 23:50:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/query-ldap-user-password-aging-details/m-p/4423063#M36644</guid>
      <dc:creator>skt_skt</dc:creator>
      <dc:date>2009-05-19T23:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Query ldap user password aging details</title>
      <link>https://community.hpe.com/t5/operating-system-linux/query-ldap-user-password-aging-details/m-p/4423064#M36645</link>
      <description>One of my colleagues set this up in HP-UX using a 3rd party tool.&lt;BR /&gt;&lt;A href="http://docs.sun.com/source/816-6400-10/lsearch.html" target="_blank"&gt;http://docs.sun.com/source/816-6400-10/lsearch.html&lt;/A&gt;&lt;BR /&gt;Allegedly it works for Red Hat as well but we haven't implemented LDAP authentication on Linux.  Attached are some excerpts from a script (again, HP-UX) to obtain the password change date.&lt;BR /&gt;&lt;BR /&gt;- Kevin</description>
      <pubDate>Wed, 20 May 2009 11:44:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/query-ldap-user-password-aging-details/m-p/4423064#M36645</guid>
      <dc:creator>kevin_m</dc:creator>
      <dc:date>2009-05-20T11:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Query ldap user password aging details</title>
      <link>https://community.hpe.com/t5/operating-system-linux/query-ldap-user-password-aging-details/m-p/4423065#M36646</link>
      <description>I would use for example:&lt;BR /&gt;&lt;BR /&gt;ldapsearch -x -D "cn=Directory Manager" -b dc=domain,dc=com -H ldaps://server.domain.com -W objectclass=posixAccount shadowLastChange&lt;BR /&gt;&lt;BR /&gt;Ensure to specify a BIND DN with enough privileges to read the attributes.&lt;BR /&gt;&lt;BR /&gt;Then you can convert to localtime using perl the returned value:&lt;BR /&gt;&lt;BR /&gt;perl -e 'print scalar localtime(12011),"\n"'&lt;BR /&gt;</description>
      <pubDate>Wed, 20 May 2009 13:26:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/query-ldap-user-password-aging-details/m-p/4423065#M36646</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2009-05-20T13:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Query ldap user password aging details</title>
      <link>https://community.hpe.com/t5/operating-system-linux/query-ldap-user-password-aging-details/m-p/4423066#M36647</link>
      <description>Remember that the user object must have the shadowAccount objectclass.</description>
      <pubDate>Wed, 20 May 2009 13:33:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/query-ldap-user-password-aging-details/m-p/4423066#M36647</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2009-05-20T13:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Query ldap user password aging details</title>
      <link>https://community.hpe.com/t5/operating-system-linux/query-ldap-user-password-aging-details/m-p/4423068#M36649</link>
      <description>If you're using pam_ldap for authentication (as you should be) then everything is based on the LDAP password and you'll want to check how your LDAP server stores that metadata.&lt;BR /&gt;</description>
      <pubDate>Wed, 20 May 2009 17:30:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/query-ldap-user-password-aging-details/m-p/4423068#M36649</guid>
      <dc:creator>Heironimus</dc:creator>
      <dc:date>2009-05-20T17:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Query ldap user password aging details</title>
      <link>https://community.hpe.com/t5/operating-system-linux/query-ldap-user-password-aging-details/m-p/4423069#M36650</link>
      <description>Your query returned an posixGroup object. &lt;BR /&gt;&lt;BR /&gt;Change your query to:&lt;BR /&gt;&lt;BR /&gt;ldapsearch -x -ZZ -LLL -b dc=xxxx,dc=com objectClass=posixAccount&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 May 2009 17:32:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/query-ldap-user-password-aging-details/m-p/4423069#M36650</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2009-05-20T17:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Query ldap user password aging details</title>
      <link>https://community.hpe.com/t5/operating-system-linux/query-ldap-user-password-aging-details/m-p/4423071#M36652</link>
      <description>Hi &lt;BR /&gt;whatever the db is (passwd, ldap, etc) the native samba command is:&lt;BR /&gt;pdbedit -P "minimum password age"&lt;BR /&gt;(see man pages for detail)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 21 May 2009 06:38:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/query-ldap-user-password-aging-details/m-p/4423071#M36652</guid>
      <dc:creator>Andrea Rossi</dc:creator>
      <dc:date>2009-05-21T06:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Query ldap user password aging details</title>
      <link>https://community.hpe.com/t5/operating-system-linux/query-ldap-user-password-aging-details/m-p/4423072#M36653</link>
      <description>What do you get if you run?:&lt;BR /&gt;&lt;BR /&gt;ldapsearch -x -ZZ -LLL -b dc=alcoa.com,dc=com objectClass=*&lt;BR /&gt;&lt;BR /&gt;You should see all your objects. Do you already have uses created?</description>
      <pubDate>Thu, 21 May 2009 12:57:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/query-ldap-user-password-aging-details/m-p/4423072#M36653</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2009-05-21T12:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Query ldap user password aging details</title>
      <link>https://community.hpe.com/t5/operating-system-linux/query-ldap-user-password-aging-details/m-p/4423074#M36655</link>
      <description>Your base search is not correct, it should be:&lt;BR /&gt;&lt;BR /&gt;ldapsearch -x -ZZ -LLL -b dc=alcoa,dc=com objectClass=*&lt;BR /&gt;&lt;BR /&gt;I told you to run the wrong command before, the dc=alcoa.com should be dc=alcoa,dc=com.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 21 May 2009 19:14:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/query-ldap-user-password-aging-details/m-p/4423074#M36655</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2009-05-21T19:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Query ldap user password aging details</title>
      <link>https://community.hpe.com/t5/operating-system-linux/query-ldap-user-password-aging-details/m-p/4423076#M36657</link>
      <description>&amp;gt;&amp;gt;&amp;gt; as i can see shadowLastChange is there for some account not for all. am i right?&lt;BR /&gt;&lt;BR /&gt;This is because, just some of the accounts, have the shadowAccount objectclass on it. Your user creation tool should allow you to specify this.&lt;BR /&gt;&lt;BR /&gt;Please, download install and configure ldapadmin.exe (for windows). This is a super-easy tool to create and modify users attributes, including shadow options.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; Also i did not undertstand how to convert the "shadowLastChange: 14348" to a date.&lt;BR /&gt;&lt;BR /&gt;The procedure is correct, and the date returned is the default date, meaning that the value was not modified.&lt;BR /&gt;&lt;BR /&gt;" Authentication requires access to password field, that should be not accessible by default. Annother issue is that during password change using passwd shadowLastChange needs to be accessible as well. Following code shows example ACL setting that permits access to shadowLastChange:&lt;BR /&gt;&lt;BR /&gt;access to attr=shadowLastChange&lt;BR /&gt;        by dn="cn=manager,dc=example,dc=com" write&lt;BR /&gt;        by self write&lt;BR /&gt;        by * read&lt;BR /&gt;"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Reference:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://help.ubuntu.com/7.04/server/C/openldap-server.html" target="_blank"&gt;https://help.ubuntu.com/7.04/server/C/openldap-server.html&lt;/A&gt;</description>
      <pubDate>Fri, 22 May 2009 14:28:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/query-ldap-user-password-aging-details/m-p/4423076#M36657</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2009-05-22T14:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Query ldap user password aging details</title>
      <link>https://community.hpe.com/t5/operating-system-linux/query-ldap-user-password-aging-details/m-p/4423077#M36658</link>
      <description>The perl command requires the time in seconds. Multiplying 14348 by 86400 gives a date of Apr 14 2009.</description>
      <pubDate>Thu, 02 Jul 2009 09:17:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/query-ldap-user-password-aging-details/m-p/4423077#M36658</guid>
      <dc:creator>Graham Pooler</dc:creator>
      <dc:date>2009-07-02T09:17:19Z</dc:date>
    </item>
  </channel>
</rss>

