University of Illinois/NCSA Open Source
These scripts were written for a NetWare/OES system and will probably only be useful on those platforms.
When we wish to alert users who will be affected by server maintenance it is good to be able to identify automatically all users who will be affected. This utility enables either mail of all users under a given OU (context) in the edirectory tree, or alternatively all users whose home directory environment server is located on a given server. Output can be either a list of email addresses displayed on screen for copy and paste into a chosen email client, or else to email the users directly from a form. The edirectory tree is queried by LDAP, and there is an option in the code to use a separate LDAP directory (which could be any platform) to look up email addresses, provided that the user CN is identical on both systems. It would probably be possible to adapt the code for an AD based system, but how useful this will be would depend on how your AD directory is structured.
home page url: http://www.champwilde.f9.co.uk/idmphp/svrmailer/index.html
download url: http://www.champwilde.f9.co.uk/idmphp/svrmailer/svrmailer.zip
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.