Matthias Gruber schrieb:
> Hi!
>
> Just running a 1.9.2, and try to put some pages in it.
>
>
> I put a Apache authentication on it, and added:
> <Directory "/opt/nmsdoc/DOC/nmsdoku/cgi-bin/">
> AuthType Basic
> AuthName "Restricted Files"
> AuthBasicProvider file
> AuthUserFile /opt/nmsdoc/apache2/conf/httpd.passwd
> Require valid-user
> AllowOverride None
> Options Indexes FollowSymLinks
> Order allow,deny
> Allow from all
> </Directory>
>
> to the apache.conf
>
> in the wikiconf.py I put:
>
> ....
> from MoinMoin.auth import GivenAuth
>
> # XMLRPC - Config
> xmlrpc_putpage_enabled = 1
> actions_excluded = multiconfig.DefaultConfig.actions_excluded[:]
> actions_excluded.remove('xmlrpc')
>
> auth = [GivenAuth(autocreate=True)]
>
>
> the User which should push the data is in the acl_rights_default:
> acl_rights_default = u"nmssmn:read,write,delete,revert,admin All:read"
>
> An interactive Login w/ password is working!
>
> If I try my Python Code:
> name = "nmssmn"
> password = "12345678"
> wikiurl= "http://nmsdoc:8008/nmsdoc"
>
> nmsdoc = xmlrpclib.ServerProxy(wikiurl+"?action=xmlrpc2")
> auth_token = nmsdoc.getAuthToken(name,password)
> mc = xmlrpclib.MultiCall(nmsdoc)
> mc.applyAuthToken(auth_token)
>
> PageName = "FOOO"
> mc.putPage(str(PageName),str(PageName))
>
> (As seen on http://moinmo.in/ReimarBauer/xmlrpc)
I don't have str in my example and str is wrong because it must be unicode.
>
> I receive an:
> Traceback (most recent call last):
> File "R:\_MG_\_SVN_\nms2WiKi\src\push2Wiki.py", line 328, in <module>
> funcSendWikiMasterPage()
> File "R:\_MG_\_SVN_\nms2WiKi\src\push2Wiki.py", line 255, in
> funcSendWikiMasterPage
> auth_token = nmsdoc.getAuthToken(name,password)
> File "R:\Daten\prog\Python\lib\xmlrpclib.py", line 1199, in __call__
> return self.__send(self.__name, args)
> File "R:\Daten\prog\Python\lib\xmlrpclib.py", line 1489, in __request
> verbose=self.__verbose
> File "R:\Daten\prog\Python\lib\xmlrpclib.py", line 1243, in request
> headers
> xmlrpclib.ProtocolError: <ProtocolError for
> nmsdoc.metzler.com:8008/nmsdoc?action=xmlrpc2: 401 Authorization Required>
>
>
> What did I miss ??
> Any Clues perhaps?
Not now I try to reproduce it
cheers
Reimar
>
> cheers
> Matthias
>
>
>
>
> Persönlich haftende Gesellschafter: Friedrich von Metzler, Emmerich Müller
> Vorsitzender des Aufsichtsrates: Dr. Christoph Schücking
> Sitz der Gesellschaft: Frankfurt am Main, Handelsregisternummer: HRB 27 515
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfänger
> sein, so bitten wir Sie höflich, dies unverzüglich dem Absender mitzuteilen
> und die Nachricht zu löschen. Es ist unzulässig, die Nachricht unbefugt
> weiterzuleiten oder zu kopieren. Da wir nicht die Echtheit oder
> Vollständigkeit der in dieser Nachricht enthaltenen Informationen garantieren
> oder zusichern können, sind die vorstehenden Ausführungen rechtlich nicht
> bindend. Eine Haftung hierfür wird ausgeschlossen.
>
> This message is confidential. If you are not the intended recipient, we
> kindly ask you to inform the sender and delete the information. Any
> unauthorised dissemination or copying hereof is prohibited. As we cannot
> guarantee or assure the genuineness or completeness of the information
> contained in this message, the statements set forth above are not legally
> binding. Accordingly we cannot accept liability therefore.
>
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit. See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Moin-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/moin-user
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Moin-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/moin-user