cruzjoey0507 / pyfilemaker

Automatically exported from code.google.com/p/pyfilemaker
0 stars 0 forks source link

Non-autorised access to FMServer #12

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi everyone,
thanks for this tool. I am experiencing a connection problem when retrieving 
the layout names:

from PyFileMaker import FMServer
fm = FMServer('login:password@filemaker.server.com')
fm.setDb('dbname')  -> this works fine
fm.getLayoutNames() -> instead of getting the layout names, I get the following 
errors:

Traceback (most recent call last):
  File "test.py", line 11, in <module>
    fm.getLayoutNames()
  File "/Users/mgl/Documents/Filemaker_Arnaud/Dev/PyFileMaker-2.6/PyFileMaker/FMServer.py", line 253, in getLayoutNames
    result = self._doRequest( request )
  File "/Users/mgl/Documents/Filemaker_Arnaud/Dev/PyFileMaker-2.6/PyFileMaker/FMServer.py", line 611, in _doRequest
    raise httplib.HTTPException, (response.status, response.reason)
httplib.HTTPException: (401, 'Non-Autoris\xe9')

In Filemaker > File > Open in Server, my file is asking for authentication, so 
I guess I have to give the login/password needed to PyFileMaker. But I wonder 
where ?

I'm using FMPro 12 Advanced, and Filemaker Server 12 Advanced.
Thanks for your help :-)

Original issue reported on code.google.com by arnaud.t...@gmail.com on 19 Nov 2012 at 3:12

GoogleCodeExporter commented 8 years ago
OK, I setup an account with full access to DB and defined its login/password in 
the FMServer declaration.
Sorry ! :)

Original comment by arnaud.t...@gmail.com on 19 Nov 2012 at 4:45

GoogleCodeExporter commented 8 years ago
You must enter log-in data username and password, and it goes like this:
fm._login='Name'
fm._password='password'

Original comment by budimir....@gmail.com on 9 Nov 2014 at 7:50

GoogleCodeExporter commented 8 years ago
Thanks for the reply.

Original comment by arnaud.t...@gmail.com on 12 Nov 2014 at 9:29