The directory is on the application server, so as long as the GEL script is running on the same server I would think so.
If the GEL script is running on a different server (i.e. your BG is on a different server to your APP) then you might have problems, but you could probably work around those with the help of your network admins.
Its really a network question specific to your network rather than a GEL/Clarity question though.