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
which sub classes a StreamWrapper class, while smb:// is a registered
streamwrapper, this one:
https://github.com/owncloud/3rdparty/blob/master/smb4php/smb.php
Cheers
Arthur
2013/3/8 Arthur Schiwon <[email protected] <mailto:[email protected]>>
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>
Cheers
Arthur
_________________________________________________
Owncloud mailing list
[email protected] <mailto:[email protected]>
https://mail.kde.org/mailman/__listinfo/owncloud
<https://mail.kde.org/mailman/listinfo/owncloud>
_________________________________________________
Owncloud mailing list
[email protected] <mailto:[email protected]>
https://mail.kde.org/mailman/__listinfo/owncloud
<https://mail.kde.org/mailman/listinfo/owncloud>
_______________________________________________
Owncloud mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/owncloud
_______________________________________________
Owncloud mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/owncloud