s3:registry: Prevent creation of keys containing the '/' character.
commit943b33587c9905e0b6b6ee090fe9bf9bdfc77465
authorMichael Adam <obnox@samba.org>
Fri, 17 Apr 2009 09:40:17 +0000 (17 11:40 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 17 Apr 2009 09:47:59 +0000 (17 11:47 +0200)
treed38ed866be68e98454f5019fc6a3b904a7768e0a
parent0cc56c386476c6072f16ad0ae2bb55889b748dc7
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
source/registry/reg_api.c