I suggest smbgpradd.sh from Samba HOWTO page cxliv to be added into Samba source tarball and installed after issuing "make install" command.
*** This bug has been marked as a duplicate of 1168 ***