Commit a30b0b98 authored by Yadd's avatar Yadd
Browse files

Sort in File and bugs

parent d8b59e05
......@@ -74,8 +74,8 @@ sub store {
$self->unlock;
return UNKNOWN_ERROR;
}
while ( my ( $k, $v ) = each(%$fields) ) {
print FILE "$k\n\t$v\n\n";
foreach my $k (sort keys %$fields) {
print FILE "$k\n\t$fields->{$k}\n\n";
}
close FILE;
umask($mask);
......
......@@ -125,7 +125,7 @@ function reloadAuthParams() {
$.ajax({
type:"POST",
url:scriptname,
data:{node:'generalParameters/authParams',conf:'authentication userDB',cfgNum:lmdata('li_cm9vdA2'),authentication:lmdata('li_L3VzZXJEQg2'),userDB:lmdata('li_L3VzZXJEQg2')},
data:{node:'generalParameters/authParams',conf:'authentication userDB',cfgNum:lmdata('li_cm9vdA2'),authentication:lmdata('li_L2F1dGhlbnRpY2F0aW9u0'),userDB:lmdata('li_L3VzZXJEQg2')},
dataType:'html',
success:function(data){
var node=$('#li_Z2VuZXJhbFBhcmFtZXRlcnMvYXV0aFBhcmFtcw2 >ul');
......
......@@ -62,12 +62,10 @@ sub struct {
_nodes => sub {
my $self = shift;
my $auth =
$self->param('authentication')
|| $self->conf->{authentication}
$self->conf->{authentication}
|| $self->defaultConf()->{authentication};
my $udb =
$self->param('userDB')
|| $self->conf->{userDB}
$self->conf->{userDB}
|| $self->defaultConf()->{userDB};
$auth = lc($auth);
$udb = lc($udb);
......@@ -354,7 +352,7 @@ sub testStruct {
msgFail => 'Bad LDAP dn',
},
managerPassword => {
test => qr/^\S+$/,
test => qr/^\S*$/,
msgFail => 'Bad LDAP password',
},
notification => $boolean,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment