libsmbconf:registry: reorganize the validity check and canonicalization of the input...
authorMichael Adam <obnox@samba.org>
Sun, 22 Sep 2013 06:47:14 +0000 (08:47 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 24 Sep 2013 05:44:28 +0000 (07:44 +0200)
commit76a008cd1827d0563c42dbef433e35ce5ee6a041
tree1ff9d286268f2c8c7ea4a18176dcabd3629a2529
parentb7db29eb2a224068282f9dd38502a147c2df5712
libsmbconf:registry: reorganize the validity check and canonicalization of the input in "setparm"

- first check that the name is an smbconf parameter
- then check that the parameter is allowed in the registry config
- then check that a global parameter is not to be set in a service section
- then canonicalize the parameter and value name, thereby checking that the
  value has valid format

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/lib/smbconf/smbconf_reg.c