s4:provision - rework the "guess_names" and "make_smbconf" method
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Wed, 21 Oct 2009 17:38:52 +0000 (19:38 +0200)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Wed, 21 Oct 2009 21:43:04 +0000 (23:43 +0200)
commit33f3d54de4ffab239e107cb8c92a8454080adbf3
tree50b92224090ade2d08324da0cfafb3f33adc6976
parent78a5e26783aa7a1beff5cd6674e9ff305a0a6390
s4:provision - rework the "guess_names" and "make_smbconf" method

- Cleans it up from unnecessary "lower()/upper()" and parameters which can be
  derived through "lp" calls.
- Substitute the "HOSTNAME" caption in the "smb.conf" templates with
  "NETBIOS_NAME" which fits better.
- Now the "realm" and "domain" parameter of the provision are totally case
  insensitive and the script itself up/downcases them appropriately depending
  on the use (e.g. "realm" upcase for KERBEROS, lowcase for DNS domainname).
source4/scripting/python/samba/provision.py
source4/setup/provision.smb.conf.dc
source4/setup/provision.smb.conf.member
source4/setup/provision.smb.conf.standalone