mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-24 22:21:34 +01:00
allow to use LDAP homeDirectory attribute as $home in mount-url
This commit is contained in:
parent
26c888ccd4
commit
08aca8ff51
@ -194,6 +194,7 @@ class vfs_stream_wrapper implements iface_stream_wrapper
|
|||||||
'user' => $GLOBALS['egw_info']['user']['account_lid'],
|
'user' => $GLOBALS['egw_info']['user']['account_lid'],
|
||||||
'pass' => $GLOBALS['egw_info']['user']['passwd'],
|
'pass' => $GLOBALS['egw_info']['user']['passwd'],
|
||||||
'host' => $GLOBALS['egw_info']['user']['domain'],
|
'host' => $GLOBALS['egw_info']['user']['domain'],
|
||||||
|
'home' => $GLOBALS['egw_info']['user']['homedirectory'],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
$parts = array_merge(parse_url($path),$defaults);
|
$parts = array_merge(parse_url($path),$defaults);
|
||||||
@ -219,7 +220,7 @@ class vfs_stream_wrapper implements iface_stream_wrapper
|
|||||||
|
|
||||||
if ($replace_user_pass_host)
|
if ($replace_user_pass_host)
|
||||||
{
|
{
|
||||||
$url = str_replace(array('$user','$pass','$host'),array($parts['user'],$parts['pass'],$parts['host']),$url);
|
$url = str_replace(array('$user','$pass','$host','$home'),array($parts['user'],$parts['pass'],$parts['host'],$parts['home']),$url);
|
||||||
}
|
}
|
||||||
if ($parts['query']) $url .= '?'.$parts['query'];
|
if ($parts['query']) $url .= '?'.$parts['query'];
|
||||||
if ($parts['fragment']) $url .= '#'.$parts['fragment'];
|
if ($parts['fragment']) $url .= '#'.$parts['fragment'];
|
||||||
|
Loading…
Reference in New Issue
Block a user