Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
a17a7f5c
Commit
a17a7f5c
authored
12 years ago
by
Thomas Müller
Browse files
Options
Downloads
Patches
Plain Diff
adding l10n support to user_ldap
parent
2f11d7fe
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
apps/user_ldap/ajax/deleteConfiguration.php
+2
-1
2 additions, 1 deletion
apps/user_ldap/ajax/deleteConfiguration.php
apps/user_ldap/ajax/testConfiguration.php
+5
-3
5 additions, 3 deletions
apps/user_ldap/ajax/testConfiguration.php
with
7 additions
and
4 deletions
apps/user_ldap/ajax/deleteConfiguration.php
+
2
−
1
View file @
a17a7f5c
...
...
@@ -30,5 +30,6 @@ $prefix = $_POST['ldap_serverconfig_chooser'];
if
(
\OCA\user_ldap\lib\Helper
::
deleteServerConfiguration
(
$prefix
)){
OCP\JSON
::
success
();
}
else
{
OCP\JSON
::
error
(
array
(
'message'
=>
'Failed to delete the server configuration'
));
$l
=
OC_L10N
::
get
(
'user_ldap'
);
OCP\JSON
::
error
(
array
(
'message'
=>
$l
->
t
(
'Failed to delete the server configuration'
)));
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
apps/user_ldap/ajax/testConfiguration.php
+
5
−
3
View file @
a17a7f5c
...
...
@@ -26,14 +26,16 @@ OCP\JSON::checkAdminUser();
OCP\JSON
::
checkAppEnabled
(
'user_ldap'
);
OCP\JSON
::
callCheck
();
$l
=
OC_L10N
::
get
(
'user_ldap'
);
$connection
=
new
\OCA\user_ldap\lib\Connection
(
''
,
null
);
if
(
$connection
->
setConfiguration
(
$_POST
))
{
//Configuration is okay
if
(
$connection
->
bind
())
{
OCP\JSON
::
success
(
array
(
'message'
=>
'The configuration is valid and the connection could be established!'
));
OCP\JSON
::
success
(
array
(
'message'
=>
$l
->
t
(
'The configuration is valid and the connection could be established!'
))
)
;
}
else
{
OCP\JSON
::
error
(
array
(
'message'
=>
'The configuration is valid, but the Bind failed. Please check the server settings and credentials.'
));
OCP\JSON
::
error
(
array
(
'message'
=>
$l
->
t
(
'The configuration is valid, but the Bind failed. Please check the server settings and credentials.'
))
)
;
}
}
else
{
OCP\JSON
::
error
(
array
(
'message'
=>
'The configuration is invalid. Please look in the ownCloud log for further details.'
));
OCP\JSON
::
error
(
array
(
'message'
=>
$l
->
t
(
'The configuration is invalid. Please look in the ownCloud log for further details.'
))
)
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment