Thanks for your answer,<div><br></div><div>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. </div>
<div><br></div><div>I found a class <a href="https://github.com/owncloud/core/blob/master/lib/files/filesystem.php">https://github.com/owncloud/core/blob/master/lib/files/filesystem.php</a> who read mount.json in "initMountPoints". This method calls a method "mount" who create objects from <a href="https://github.com/owncloud/core/blob/master/lib/files/mount.php">https://github.com/owncloud/core/blob/master/lib/files/mount.php</a> ! </div>
<div><br></div><div>I would avoid utilisation of "mount.json" here and let my hook create object "Mount" when a user wants to connect. Is it possible ?<br><br><div class="gmail_quote">2013/3/8 Arthur Schiwon <span dir="ltr"><<a href="mailto:blizzz@owncloud.com" target="_blank">blizzz@owncloud.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 03/08/2013 12:29 PM, Matthieu Rosset wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks for your answer.<br>
<br>
It seems that "apps/files_external" is a module who is here to create<br>
and read the file : "mount.json". For example in /lib/config.php, method<br>
"addMountPoint" will write on "mount.json" and "getSystemMountPoins"<br>
will read this one too.<br>
<br>
I would totally bypass this file and mount shares on login. So, I'm<br>
looking for methods who use these files (mount.json) and really mount<br>
shares to try to inject new datas with a "post_login" hook.<br>
</blockquote>
<br></div>
The mount is done by <a href="https://github.com/owncloud/core/blob/master/apps/files_external/lib/smb.php" target="_blank">https://github.com/owncloud/<u></u>core/blob/master/apps/files_<u></u>external/lib/smb.php</a> which sub classes a StreamWrapper class, while smb:// is a registered streamwrapper, this one: <a href="https://github.com/owncloud/3rdparty/blob/master/smb4php/smb.php" target="_blank">https://github.com/owncloud/<u></u>3rdparty/blob/master/smb4php/<u></u>smb.php</a><br>
<br>
Cheers<br>
Arthur<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
2013/3/8 Arthur Schiwon <<a href="mailto:blizzz@owncloud.com" target="_blank">blizzz@owncloud.com</a> <mailto:<a href="mailto:blizzz@owncloud.com" target="_blank">blizzz@owncloud.com</a>>><div class="im"><br>
<br>
On 03/08/2013 10:18 AM, Matthieu Rosset wrote:<br>
<br>
Hi everybody,<br>
<br>
I'm actually trying to create an app who let me automatically<br>
mount SMB<br>
shares for my users after their login with an hook.<br>
<br>
I don't want to use standard build with configuration files and<br>
passwords in plain-text. I can't use that in my company because<br>
OwnCloud's passwords are Active Directory's passwords.<br>
<br>
My question is : where is the method who really mount shares for<br>
users ?<br>
Method who read configuration files and mount every share for<br>
the user ?<br>
I searched in files, external_files... but nothing who seems to<br>
do that.<br>
I hope you can help me with that stuff.<br>
<br>
If I succeed in this app's creation, I'll propose it to<br>
everybody who's<br>
interested. Thanks a lot !<br>
<br>
<br>
It is done by the app files_external,<br></div>
<a href="https://github.com/owncloud/__core/tree/master/apps/files___external" target="_blank">https://github.com/owncloud/__<u></u>core/tree/master/apps/files___<u></u>external</a><br>
<<a href="https://github.com/owncloud/core/tree/master/apps/files_external" target="_blank">https://github.com/owncloud/<u></u>core/tree/master/apps/files_<u></u>external</a>><br>
<br>
Cheers<br>
Arthur<br>
<br>
<br>
<br>
______________________________<u></u>___________________<br>
Owncloud mailing list<br>
<a href="mailto:Owncloud@kde.org" target="_blank">Owncloud@kde.org</a> <mailto:<a href="mailto:Owncloud@kde.org" target="_blank">Owncloud@kde.org</a>><br>
<a href="https://mail.kde.org/mailman/__listinfo/owncloud" target="_blank">https://mail.kde.org/mailman/_<u></u>_listinfo/owncloud</a><br>
<<a href="https://mail.kde.org/mailman/listinfo/owncloud" target="_blank">https://mail.kde.org/mailman/<u></u>listinfo/owncloud</a>><br>
<br>
______________________________<u></u>___________________<br>
Owncloud mailing list<br>
<a href="mailto:Owncloud@kde.org" target="_blank">Owncloud@kde.org</a> <mailto:<a href="mailto:Owncloud@kde.org" target="_blank">Owncloud@kde.org</a>><br>
<a href="https://mail.kde.org/mailman/__listinfo/owncloud" target="_blank">https://mail.kde.org/mailman/_<u></u>_listinfo/owncloud</a><div class="im"><br>
<<a href="https://mail.kde.org/mailman/listinfo/owncloud" target="_blank">https://mail.kde.org/mailman/<u></u>listinfo/owncloud</a>><br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Owncloud mailing list<br>
<a href="mailto:Owncloud@kde.org" target="_blank">Owncloud@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/owncloud" target="_blank">https://mail.kde.org/mailman/<u></u>listinfo/owncloud</a><br>
<br>
</div></blockquote><div class="HOEnZb"><div class="h5">
______________________________<u></u>_________________<br>
Owncloud mailing list<br>
<a href="mailto:Owncloud@kde.org" target="_blank">Owncloud@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/owncloud" target="_blank">https://mail.kde.org/mailman/<u></u>listinfo/owncloud</a><br>
</div></div></blockquote></div><br></div>