Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Xavier Bachelot
lemonldap-ng
Commits
a30b0b98
Commit
a30b0b98
authored
Dec 23, 2009
by
Yadd
Browse files
Sort in File and bugs
parent
d8b59e05
Changes
3
Hide whitespace changes
Inline
Side-by-side
modules/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/File.pm
View file @
a30b0b98
...
...
@@ -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
);
...
...
modules/lemonldap-ng-manager/example/skins/default/manager.js
View file @
a30b0b98
...
...
@@ -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_L
3VzZXJEQg2
'
),
userDB
:
lmdata
(
'
li_L3VzZXJEQg2
'
)},
data
:{
node
:
'
generalParameters/authParams
'
,
conf
:
'
authentication userDB
'
,
cfgNum
:
lmdata
(
'
li_cm9vdA2
'
),
authentication
:
lmdata
(
'
li_L
2F1dGhlbnRpY2F0aW9u0
'
),
userDB
:
lmdata
(
'
li_L3VzZXJEQg2
'
)},
dataType
:
'
html
'
,
success
:
function
(
data
){
var
node
=
$
(
'
#li_Z2VuZXJhbFBhcmFtZXRlcnMvYXV0aFBhcmFtcw2 >ul
'
);
...
...
modules/lemonldap-ng-manager/lib/Lemonldap/NG/Manager/_Struct.pm
View file @
a30b0b98
...
...
@@ -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
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment