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
01b0e9b1
Commit
01b0e9b1
authored
12 years ago
by
Frank Karlitschek
Browse files
Options
Downloads
Patches
Plain Diff
fix the webdav user backend. still not completel working but a frist step
parent
d9d6dc89
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_webdavauth/templates/settings.php
+1
-1
1 addition, 1 deletion
apps/user_webdavauth/templates/settings.php
apps/user_webdavauth/user_webdavauth.php
+4
-5
4 additions, 5 deletions
apps/user_webdavauth/user_webdavauth.php
with
5 additions
and
6 deletions
apps/user_webdavauth/templates/settings.php
+
1
−
1
View file @
01b0e9b1
<form
id=
"webdavauth"
action=
"#"
method=
"post"
>
<fieldset
class=
"personalblock"
>
<legend><strong>
WebDAV Authentication
</strong></legend>
<p><label
for=
"webdav_url"
>
<?php
echo
$l
->
t
(
'
w
eb
dav_url
'
);
?>
<input
type=
"text"
id=
"webdav_url"
name=
"webdav_url"
value=
"
<?php
echo
$_
[
'webdav_url'
];
?>
"
></label>
<p><label
for=
"webdav_url"
>
<?php
echo
$l
->
t
(
'
W
eb
DAV URL: http://
'
);
?>
<input
type=
"text"
id=
"webdav_url"
name=
"webdav_url"
value=
"
<?php
echo
$_
[
'webdav_url'
];
?>
"
></label>
<input
type=
"submit"
value=
"Save"
/>
</fieldset>
</form>
This diff is collapsed.
Click to expand it.
apps/user_webdavauth/user_webdavauth.php
+
4
−
5
View file @
01b0e9b1
...
...
@@ -34,7 +34,7 @@ class OC_USER_WEBDAVAUTH extends OC_User_Backend {
return
false
;
}
public
function
deleteUser
()
{
public
function
deleteUser
(
$uid
)
{
// Can't delete user
OC_Log
::
write
(
'OC_USER_WEBDAVAUTH'
,
'Not possible to delete users from web frontend using WebDAV user backend'
,
3
);
return
false
;
...
...
@@ -47,7 +47,6 @@ class OC_USER_WEBDAVAUTH extends OC_User_Backend {
}
public
function
checkPassword
(
$uid
,
$password
)
{
$url
=
'http://'
.
urlencode
(
$uid
)
.
':'
.
urlencode
(
$password
)
.
'@'
.
$this
->
webdavauth_url
;
$headers
=
get_headers
(
$url
);
if
(
$headers
==
false
)
{
...
...
@@ -58,9 +57,9 @@ class OC_USER_WEBDAVAUTH extends OC_User_Backend {
$returncode
=
substr
(
$headers
[
0
],
9
,
3
);
if
(
$returncode
==
'401'
)
{
return
false
;
return
(
false
)
;
}
else
{
return
true
;
return
(
$uid
)
;
}
}
...
...
@@ -75,7 +74,7 @@ class OC_USER_WEBDAVAUTH extends OC_User_Backend {
/*
* we don´t know the users so all we can do it return an empty array here
*/
public
function
getUsers
()
{
public
function
getUsers
(
$search
=
''
,
$limit
=
10
,
$offset
=
0
)
{
$returnArray
=
array
();
return
$returnArray
;
...
...
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