Hello together,
I am trying to mount an smb directory on from a windows domain to EGroupware.
When I run the mount command with the actual USER and PASSWORD from the command line it works just fine:
/var/www/egroupware/filemanager/cli.php mount --user root_user --password ‘password’ smb://‘AD-DOMAIN\USER’:‘PASSWORD’@fs1.my.example.com/corporate_functions/company1/invoicing /home/invoicing_group/company1_invoicing
I get the message that the path was mounted and I can see the files of smb in EGroupware.
As I don’t want the user and password data to be stored in clear text in the EGw Database I would like to use the $user and $pass placeholders.
When I replace USER with $user and PASSWORD with $pass and give the same command:
/# /var/www/egroupware/filemanager/cli.php mount --user root_user --password 'password' smb://AD-DOMAIN\$user:$pass@fs1.my.example.com/corporate_functions/company1/invoicing /home/invoicing_group/company1_invoicing
Root access granted! smb://AD-DOMAIN\$user:@fs1.my.example.com/corporate_functions/company1/invoicing successful mounted to /home/invoicing_group/company1_invoicing
I get the message that the directory was successful mounted.
But I can’t access the directory from the filemanager.
Trying to run ls form the command line gives an error saying that the mounted directory does not exist:
/var/www/egroupware/filemanager/cli.php ls -l vfs://USER:PASSWORD@default/home/invoicing_group
EGroupware\SwoolePush\Backend::http_open(‘http://xxxxxxx/egroupware/push?token=04dc565ebb55fe2fa33xxxxxxx’, …) stream_socket_client(‘tcp://xxxxxxxxx:80’, …) Connection refused (111)
ls vfs://USER:PASSWORD@default/home/invoicing_group (long=1, numeric=0, recursive=0)
invoicing_group:
company1_invoicing: no such file or directory!
I am authenticating EGroupware against Active Directory.
Is the scenario I am trying to implement supported?
I there a way to debug the mounting procedure with the $user and $pass variables?
Thank you for your support and best regards!
Alex