On Fri, 2011-08-26 at 11:39 +0200, Sumit Bose wrote:
> 
> +def check_inst(unattended):
> +    has_smb = True
> +
> +    if not os.path.exists('/usr/sbin/smbd'):
> +        print "Samba was not found on this system"
> +        print "Please install the 'samba' package and start the
> installation again"
> +        has_smb = False
> +
> +    #TODO: Add check for needed samba4 libraries
> +
> +    return has_smb
> + 

We should probably run smbd -b and parse the output to see if it has all
the options we need, perhaps check the version number too.

Simo.

-- 
Simo Sorce * Red Hat, Inc * New York

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to