[Owncloud] Custom SMB mounting
Matthieu Rosset
captain.kra at gmail.com
Fri Mar 8 12:00:36 UTC 2013
Thanks for your answer,
Sorry if I don't understand what you're trying to explain me. But... I
don't want to rework SMB connection, I just want to inject parameters when
these classes are called.
I found a class
https://github.com/owncloud/core/blob/master/lib/files/filesystem.php who
read mount.json in "initMountPoints". This method calls a method "mount"
who create objects from
https://github.com/owncloud/core/blob/master/lib/files/mount.php !
I would avoid utilisation of "mount.json" here and let my hook create
object "Mount" when a user wants to connect. Is it possible ?
2013/3/8 Arthur Schiwon <blizzz at owncloud.com>
> On 03/08/2013 12:29 PM, Matthieu Rosset wrote:
>
>> Thanks for your answer.
>>
>> It seems that "apps/files_external" is a module who is here to create
>> and read the file : "mount.json". For example in /lib/config.php, method
>> "addMountPoint" will write on "mount.json" and "getSystemMountPoins"
>> will read this one too.
>>
>> I would totally bypass this file and mount shares on login. So, I'm
>> looking for methods who use these files (mount.json) and really mount
>> shares to try to inject new datas with a "post_login" hook.
>>
>
> The mount is done by https://github.com/owncloud/**
> core/blob/master/apps/files_**external/lib/smb.php<https://github.com/owncloud/core/blob/master/apps/files_external/lib/smb.php>which sub classes a StreamWrapper class, while smb:// is a registered
> streamwrapper, this one: https://github.com/owncloud/**
> 3rdparty/blob/master/smb4php/**smb.php<https://github.com/owncloud/3rdparty/blob/master/smb4php/smb.php>
>
> Cheers
> Arthur
>
>
>> 2013/3/8 Arthur Schiwon <blizzz at owncloud.com <mailto:blizzz at owncloud.com
>> >>
>>
>>
>> On 03/08/2013 10:18 AM, Matthieu Rosset wrote:
>>
>> Hi everybody,
>>
>> I'm actually trying to create an app who let me automatically
>> mount SMB
>> shares for my users after their login with an hook.
>>
>> I don't want to use standard build with configuration files and
>> passwords in plain-text. I can't use that in my company because
>> OwnCloud's passwords are Active Directory's passwords.
>>
>> My question is : where is the method who really mount shares for
>> users ?
>> Method who read configuration files and mount every share for
>> the user ?
>> I searched in files, external_files... but nothing who seems to
>> do that.
>> I hope you can help me with that stuff.
>>
>> If I succeed in this app's creation, I'll propose it to
>> everybody who's
>> interested. Thanks a lot !
>>
>>
>> It is done by the app files_external,
>> https://github.com/owncloud/__**core/tree/master/apps/files___**
>> external<https://github.com/owncloud/__core/tree/master/apps/files___external>
>> <https://github.com/owncloud/**core/tree/master/apps/files_**external<https://github.com/owncloud/core/tree/master/apps/files_external>
>> >
>>
>> Cheers
>> Arthur
>>
>>
>>
>> ______________________________**___________________
>> Owncloud mailing list
>> Owncloud at kde.org <mailto:Owncloud at kde.org>
>> https://mail.kde.org/mailman/_**_listinfo/owncloud<https://mail.kde.org/mailman/__listinfo/owncloud>
>> <https://mail.kde.org/mailman/**listinfo/owncloud<https://mail.kde.org/mailman/listinfo/owncloud>
>> >
>>
>> ______________________________**___________________
>> Owncloud mailing list
>> Owncloud at kde.org <mailto:Owncloud at kde.org>
>> https://mail.kde.org/mailman/_**_listinfo/owncloud<https://mail.kde.org/mailman/__listinfo/owncloud>
>>
>> <https://mail.kde.org/mailman/**listinfo/owncloud<https://mail.kde.org/mailman/listinfo/owncloud>
>> >
>>
>>
>>
>>
>> ______________________________**_________________
>> Owncloud mailing list
>> Owncloud at kde.org
>> https://mail.kde.org/mailman/**listinfo/owncloud<https://mail.kde.org/mailman/listinfo/owncloud>
>>
>> ______________________________**_________________
> Owncloud mailing list
> Owncloud at kde.org
> https://mail.kde.org/mailman/**listinfo/owncloud<https://mail.kde.org/mailman/listinfo/owncloud>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/owncloud/attachments/20130308/1e5190c3/attachment.html>
More information about the Owncloud
mailing list