July 6, 200619 yr Folks I have been experimenting with VBS and have run into a snag. The objFMfiles = objFM.Documents.Open has thrown me for a loop. If I format it as any of the following it errors out (405): objFMfiles = objFM.Documents.Open("C:t.fp7","") It does work however if I format it like: objFMfiles = objFM.Documents.Open("C:t.fp7","UserName","Password") I would like to use a local opener without a password if possible (I authenticate all my folks through our LDAP server and don't wish to duplicate this structure in the local file), but I can't get the file to open unless I have a Users and Password setup in the file and in the VBS. Vince Dolan VP of IT and Process Improvement Waymar Industries 14400 Southcross Drive West Burnsville MN, 55306 952 435 7100 ext 242 Cell: 612 770 9304 Edited July 6, 200619 yr by Guest
July 7, 200619 yr External authentication doesn't work on local files, only on files hosted by FileMaker Server. One thing you can do is to set your opener file to automatically open with the guest account. If your script then calls a hosted file that's using EA, it will open with the proper account of the Windows logged-in user.
July 7, 200619 yr If I format it as any of the following it errors out (405): objFMfiles = objFM.Documents.Open("C:t.fp7","") Yep, that's an error in the FM documentation. FM7/8 requires 3 parameters: filename, account, password.
July 7, 200619 yr Author Wim Yes indeed External Authorization only works through hosted files (via FMS), that is why I don't want to have to replicate the LDAP's structure in the local file's Account & Privileges. What I couldn't do is open a fp7 file without invoking the User Name and Password dialog. It is strange that you can't just open the file (C:test.fp7,"","") and bypass the whole dialog (assuming of course your opener file requires no password). The only way I got it to work was by supplying both a name and password, that I had setup in the file ahead of time, leaving it blank doesn't cut it. I will however, try the Guest Account thingy thanks. Vince Dolan VP of IT and Process Improvement Waymar Industries 14400 Southcross Drive West Burnsville MN, 55306 952 435 7100 ext 242 Cell: 612 770 9304
Create an account or sign in to comment