This code was originally written by Andrew Tridgell (tridge@samba.org) Extensions were developed by Michael Still (mikal@stillhq.com)