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