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)
committerKarolin Seeger <kseeger@samba.org>
Fri, 17 Apr 2009 14:14:33 +0000 (16:14 +0200)
commit5f674ca5172001aff4b90f0f758e0767894ab29a
tree8b012d1362d779891cbf03903f979f79c84b8c7a
parentdd02789ce82b2ed7e60a2168e1b0bcb6656d0ce6
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
(cherry picked from commit 943b33587c9905e0b6b6ee090fe9bf9bdfc77465)
source/registry/reg_api.c