ADexpire v1.3
How long do you have left before your Active Directory password expires?
by Joel Bruner (apps@brunerd.com)

What it does:
It queries an OS X machine with Appache & PHP running, that is bound to the AD domain
The server runs the shell script and returns the value on a webpage that is curl'd
by the the applescript on the client and then displayed

Requirements:
Server: Web services with PHP on OS X box bound to AD
Client: querying machine need not be bound to the domain, shortname must match AD name

Installation:
Copy adexpire.sh and adexpire.php to the same folder on a webserver
Copy adexpire.scpt or adexpire.app to local machine, add to login items if desired

Edit the local adexpire in Script Editor so it is querying the correct server

notes: I hope this is the spring board for even better scripts feel free to
use what you need to make it better and post it back or let me know! 
I'd like to add additional options when the days get down, instructions, etc...

update -- there seems to be another way to get the expiration directly from the 
server but this uses the rpcclient utility and has not yet been explored