Variable $user SMB

8.2.x
user_management

#1

Veuillez remplir les données suivantes:

Indiquez la procédure suivie pour reproduire le problème:
1.Stockage externe, SMB-CIFS, utiliser
une variable $user (apparement possible quelle soit utilisée) pour rentrer dans un dossier partagé sur le réseau

Comportement attendu:
Accéder à un répertoire spécifique en fonction de l'utilisateur

Comportement actuel:
La variable $user est vide

Configuration du serveur
Système d'exploitation: Centos 7
Serveur web: Httpd
Serveur base de données: Mariadb
Version de PHP: 5.4
Version d'ownCloud (sur le site d'administration): 8.2.9 (Stable)
Est-il un mis-à-jour d'une version précédente ou une nouvelle installation?: Oui
ownCloud log (data/owncloud.log):

{"reqId":"WInlPvZghgdVwXwN8-H2eQAAAAw","remoteAddr":"172.16.0.101","app":"files_external","message":"Exception: {\"Exception\":\"Icewind\\SMB\\Exception\\ForbiddenException\",\"Message\":\"Invalid request for smb:\\/\\/uranus.fr\\/dfs-epsm\\services\\/ (ForbiddenException)\",\"Code\":1,\"Trace\":\"#0 \\/var\\/www\\/html\\/owncloud\\/apps\\/files_external\\/3rdparty\\/icewind\\/smb\\/src\\/NativeState.php(72): Icewind\\SMB\\NativeState->handleError('smb:\\/\\/uranus.fr...')\n#1 \\/var\\/www\\/html\\/owncloud\\/apps\\/files_external\\/3rdparty\\/icewind\\/smb\\/src\\/NativeState.php(180): Icewind\\SMB\\NativeState->testResult(false, 'smb:\\/\\/uranus.fr...')\n#2 \\/var\\/www\\/html\\/owncloud\\/apps\\/files_external\\/3rdparty\\/icewind\\/smb\\/src\\/NativeShare.php(108): Icewind\\SMB\\NativeState->stat('smb:\\/\\/uranus.fr...')\n#3 \\/var\\/www\\/html\\/owncloud\\/apps\\/files_external\\/3rdparty\\/icewind\\/smb\\/src\\/NativeShare.php(103): Icewind\\SMB\\NativeShare->getStat('\\/')\n#4 \\/var\\/www\\/html\\/owncloud\\/apps\\/files_external\\/lib\\/smb.php(110): Icewind\\SMB\\NativeShare->stat('\\/')\n#5 \\/var\\/www\\/html\\/owncloud\\/apps\\/files_external\\/lib\\/smb.php(144): OC\\Files\\Storage\\SMB->getFileInfo('')\n#6 \\/var\\/www\\/html\\/owncloud\\/lib\\/private\\/files\\/storage\\/common.php(410): OC\\Files\\Storage\\SMB->stat('')\n#7 \\/var\\/www\\/html\\/owncloud\\/apps\\/files_external\\/lib\\/config.php(261): OC\\Files\\Storage\\Common->test(false)\n#8 \\/var\\/www\\/html\\/owncloud\\/apps\\/files_external\\/controller\\/storagescontroller.php(237): OC_Mount_Config::getBackendStatus('\\OC\\Files\\Stora...', Array, false)\n#9 \\/var\\/www\\/html\\/owncloud\\/apps\\/files_external\\/controller\\/storagescontroller.php(257): OCA\\Files_External\\Controller\\StoragesController->updateStorageStatus(Object(OCA\\Files_external\\Lib\\StorageConfig))\n#10 [internal function]: OCA\\Files_External\\Controller\\StoragesController->show(2)\n#11 \\/var\\/www\\/html\\/owncloud\\/lib\\/private\\/appframework\\/http\\/dispatcher.php(159): call_user_func_array(Array, Array)\n#12 \\/var\\/www\\/html\\/owncloud\\/lib\\/private\\/appframework\\/http\\/dispatcher.php(89): OC\\AppFramework\\Http\\Dispatcher->executeController(Object(OCA\\Files_External\\Controller\\GlobalStoragesController), 'show')\n#13 \\/var\\/www\\/html\\/owncloud\\/lib\\/private\\/appframework\\/app.php(108): OC\\AppFramework\\Http\\Dispatcher->dispatch(Object(OCA\\Files_External\\Controller\\GlobalStoragesController), 'show')\n#14 \\/var\\/www\\/html\\/owncloud\\/lib\\/private\\/appframework\\/routing\\/routeactionhandler.php(45): OC\\AppFramework\\App::main('GlobalStoragesC...', 'show', Object(OC\\AppFramework\\DependencyInjection\\DIContainer), Array)\n#15 [internal function]: OC\\AppFramework\\routing\\RouteActionHandler->_invoke(Array)\n#16 \\/var\\/www\\/html\\/owncloud\\/lib\\/private\\/route\\/router.php(291): calluser_func(Object(OC\\AppFramework\\routing\\RouteActionHandler), Array)\n#17 \\/var\\/www\\/html\\/owncloud\\/lib\\/base.php(853): OC\\Route\\Router->match('\\/apps\\/files_ext...')\n#18 \\/var\\/www\\/html\\/owncloud\\/index.php(39): OC::handleRequest()\n#19 {main}\",\"File\":\"\\/var\\/www\\/html\\/owncloud\\/apps\\/files_external\\/3rdparty\\/icewind\\/smb\\/src\\/NativeState.php\",\"Line\":42}","level":3,"time":"2017-01-26T12:02:07+00:00"}

Configuration spécifique (external storage, external authentication, reverse proxy, server-side-encryption): external storage, LDAP


#2

up please

i just need to know if $user is exist


#3

@DeepDiver1975
Can you use a $user-variable to mount SMB-share?