Change check on DN syntax (#330)

This commit is contained in:
Clément Oudot 2011-06-21 10:04:29 +00:00
parent bc2e692648
commit 28bfef3248

View File

@ -740,8 +740,9 @@ sub struct {
},
persistentSessions => {
_nodes => [qw(persistentStorage cn:persistentStorageOptions)],
_help => 'sessionsdb',
_nodes =>
[qw(persistentStorage cn:persistentStorageOptions)],
_help => 'sessionsdb',
persistentStorage => 'text:/persistentStorage',
persistentStorageOptions => {
_nodes =>
@ -751,7 +752,6 @@ sub struct {
},
},
},
# OTHER PARAMETERS
@ -1423,7 +1423,7 @@ sub testStruct {
},
},
managerDn => {
test => qr/^(?:\w+=.*,\w+=.*)?$/,
test => qr/^(?:\w+=.*)?$/,
msgFail => 'Bad LDAP dn',
},
managerPassword => {
@ -1439,13 +1439,13 @@ sub testStruct {
keyTest => qr/^\w+$/,
keyMsgFail => 'Bad parameter',
},
notifyDeleted => $boolean,
notifyOther => $boolean,
notifyDeleted => $boolean,
notifyOther => $boolean,
persistentStorageOptions => {
keyTest => qr/^\w+$/,
keyMsgFail => 'Bad parameter',
},
port => {
port => {
test => qr/^\d*$/,
msgFail => 'Bad port number'
},