I have tried with this search, and also using the userid that I am requesting the information  from. So "uid=me,ou=people,dc=mydc" to get info on "uid=me,ou=people,dc=mydc"<br><br>ldapsearch -x -b 'ou=people,dc=mydc' -s sub -D 'cn=directory manager' -w <password> "objectclass=*" attrs="passwordExpWarned passwordExpirationTime"<br>
<br><div class="gmail_quote">On Fri, Mar 7, 2008 at 9:39 AM, Rich Megginson <<a href="mailto:rmeggins@redhat.com">rmeggins@redhat.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">Legatus wrote:<br>
> I am new to the list, and I apologize if this question has been<br>
> answered before.<br>
><br>
> I haven't done much programming for LDAP, though I have been managing<br>
> directories for years. I am working with some developers, who a)<br>
> aren't very imaginative, b) not very clever, and c) lazy.  So I need<br>
> to know how to get at the password information that says a password<br>
> has expired, is about to expire, et. al. I have tried to query for the<br>
> attributes using ldapsearch that seem to be what I want, like<br>
> passwordexpirationtime, but I get nothing back.<br>
</div>Can you post your exact ldapsearch command line?  Note that<br>
passwordexpirationtime and other password attributes in user entries are<br>
operational attributes - this means they are not retrieved by default<br>
with an LDAP search but must be explicitly listed in the list of<br>
attributes to retrieve.<br>
<div class="Ih2E3d">> They all figure I should know the magic incantation, since I know how<br>
> to make the directory work, and usually that would be the case. This<br>
> time I am stuck. Anyone solved this problem. I am running FDS 1.0.2,<br>
> and 1.0.4. I get the same result in both.  Any help would be great.<br>
</div>> ------------------------------------------------------------------------<br>
<div><div></div><div class="Wj3C7c">><br>
> --<br>
> Fedora-directory-users mailing list<br>
> <a href="mailto:Fedora-directory-users@redhat.com">Fedora-directory-users@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/fedora-directory-users" target="_blank">https://www.redhat.com/mailman/listinfo/fedora-directory-users</a><br>
><br>
<br>
</div></div><br>--<br>
Fedora-directory-users mailing list<br>
<a href="mailto:Fedora-directory-users@redhat.com">Fedora-directory-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/fedora-directory-users" target="_blank">https://www.redhat.com/mailman/listinfo/fedora-directory-users</a><br>
<br></blockquote></div><br>