s3:registry: Prevent creation of keys containing the '/' character.
authorMichael Adam <obnox@samba.org>
Fri, 17 Apr 2009 09:40:17 +0000 (11:40 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 17 Apr 2009 09:46:14 +0000 (11:46 +0200)
commit8c023fea86d48ff2fd7990003ce2511b4263b762
tree22780783ab40016881a7aedda09ca59172591bc6
parent0ba833f3eedff5dec272eb71f3b09becd8707156
s3:registry: Prevent creation of keys containing the '/' character.

This creates a broken registry that can only be fixed with
tdbtool, since the '/' sign is used as a key separator after
normalization at a lower level.

This makes e.g. "net conf setparm abc/def comment xyz" fail with
WERR_INVALID_PARAM, which is much more desirable than a broken
registry.tdb.

Michael
source3/registry/reg_api.c