r24496: Add initial synonym handling to "net conf":
authorMichael Adam <obnox@samba.org>
Thu, 16 Aug 2007 15:32:00 +0000 (15:32 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:29:52 +0000 (12:29 -0500)
commit53f5c4adfbf12fbf6f25eab3260d22a2d7c3efbe
treed80b531fdfb42cdc9c69a8aac5f8132e48d0dca7
parentbf374d3d3d12ed352ba8add9b5633855f2851c01
r24496: Add initial synonym handling to "net conf":
When storing parameters in the smbconf portion of the registry,
up to now, synonyms could be misused to store a parameter twice.
Now this is prevented by canonicalizing the paramter name first.

Also, the value for a boolean parameter checked for validity
before storing the bool in registry.

(The canonicalization should finally go into the registry smbconf
code to also prevent e.g. "regedit" or "net rpc registry" from
storing synonyms. - This is in the making.)

Michael
(This used to be commit 95447dde860f54d835b3fe90d95fe60231788d1b)
source3/utils/net_conf.c