Hi Florent,

Your drive mapping will be configured for _you_, when you are logged on, but 
not necessarily for all other users of the system.  MarkLogic will be running 
as a Windows service, and probably configured to use the default “Local System” 
account, which has no access to any of your drive mappings.  Theoretically you 
could set MarkLogic up to run as a named service account, allocate that account 
“Log on locally” permissions, then log into Windows as that account and set up 
the drive mapping as a persistent mapping.  I can’t see any guidelines on what 
other permissions would need to be allocated to that service account though, 
and you’d need to make sure you gave it all the relevant permissions, such as 
to all the file locations, otherwise MarkLogic won’t work.  Unless you can find 
some detailed instructions on what you’d need to set I think that would be too 
risky, and I think you’d do far better just accessing the UNC path directly 
rather than the drive letter – although you’ll also need to make sure that the 
Active Directory Computer Account (used by Local System ) is given permissions 
to access the share.

Kind Regards,
Anne



From: Florent Georges [mailto:li...@fgeorges.org]
Sent: Monday, 17 July 2017 13:35
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] Windows drive mapping to network dir not 
working

Hi,

I am on a Windows workstation.  There is a mapping for the drive letter P to 
the network dir "\\server\profiles\ME<file:///\\server\profiles\ME>".  I can 
use "P:" in the file explorer.  The following SJS properly returns C:/ content:

    "use strict";
    xdmp.filesystemDirectory('c:/')

But if I change c:/ by p:/, MarkLogic says it cannot find the path. On ML 9.2.  
From QConsole.  The drive P: is accessible from all apps, including Cygwin for 
instance.

Any idea what's wrong?  Any chance it is on ML side?

Regards,

--
Florent Georges
H2O Consulting
http://h2o.consulting/



P Think Green - don't print this email unless you really need to

************************************************************************
The information contained in this e-mail and any files transmitted with it is 
confidential and is for the exclusive use of the intended recipient. If you are 
not the intended recipient please note that any distribution, copying or use of 
this communication or the information in it is prohibited.

Whilst CAB International trading as CABI takes steps to prevent the 
transmission of viruses via e-mail, we cannot guarantee that any e-mail or 
attachment is free from computer viruses and you are strongly advised to 
undertake your own anti-virus precautions.

If you have received this communication in error, please notify us by e-mail at 
c...@cabi.org or by telephone on +44 (0)1491 832111 and then delete the e-mail 
and any copies of it.

CABI is an International Organization recognised by the UK Government under 
Statutory Instrument 1982 No. 1071...

**************************************************************************
_______________________________________________
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to