Hi, I have a PythonScript for add a new user in acl_users. It makes: context.acl_user.userFolderAddUser(name,password,['Manager','Owner'],[ ]) The new user is created, but I can't with this name loggen. I did test it with different Zope reliase and it dont work allover. What do I false? Mit schönen Grüßen von Yahoo! Mail. Für die Bilder Ihrer Lieben - Yahoo! Fotos - kostenlos!
From: "Dmitrij Repp" <stiner_rd@yahoo.de>
The new user is created, but I can't with this name loggen. I did test it with different Zope reliase and it dont work allover. What do I false?
Nothing as far as I can see. We do this in several places (not from python scripts, but FS code) and it works fine.
Can you give me a code example please? I have got realy problem with it. Mit schönen Grüßen von Yahoo! Mail. Für die Bilder Ihrer Lieben - Yahoo! Fotos - kostenlos!
I have tested these code, but it dont work too. The new user is created, but by login is error "Autenhication failed" showed. I have got Zope 2.7 under RH 9. Lennart Regebro <regebro@nuxeo.com> wrote:From: "Dmitrij Repp"
Can you give me a code example please? I have got realy problem with it.
Sure: portal.acl_users.userFolderAddUser(name=root_id, password=root_password1, roles=('Manager', 'Member'), domains=[]) Mit schönen Grüßen von Yahoo! Mail. Für die Bilder Ihrer Lieben - Yahoo! Fotos - kostenlos!
From: "Dmitrij Repp" <stiner_rd@yahoo.de>
I have tested these code, but it dont work too. The new user is created, but by login is error "Autenhication failed" showed. I have got Zope 2.7 under RH 9.
There must be something else wrong. If you create the userm using the same data through the ZMI can you log in with it? If you change the password, can you log in to it? Is the roles and domains correct?
Yes when I create the new user with ZMI is all right. When I edit the created user (i give him a differet password) wors it too. Only when I create it with Script is it not worked. What must the password be? (I give a string). Should I the password to code? Lennart Regebro <regebro@nuxeo.com> wrote:There must be something else wrong. If you create the userm using the same data through the ZMI can you log in with it? If you change the password, can you log in to it? Is the roles and domains correct? Mit schönen Grüßen von Yahoo! Mail. Für die Bilder Ihrer Lieben - Yahoo! Fotos - kostenlos!
From: "Dmitrij Repp" <stiner_rd@yahoo.de>
Yes when I create the new user with ZMI is all right. When I edit the created user (i give him a differet password) wors it too. Only when I create it with Script is it not worked. What must the password be? (I give a string). Should I the password to code?
No, a plain string. I would guess you have simply missspelled the password. Maybe you have a space at the end or something?
No, I give right password. I did test is as: container.acl_users.userFolderAddUser('testname','testpassword',['Manager','Owner'],('')). After them I tryed with userneme: testname und password: testpasword to login, but it didn't work. I tryed to geve the script a proxy rolle, but it is not helped. <regebro@nuxeo.com> wrote:
No, a plain string. I would guess you have simply missspelled >the password. Maybe you have a space at the end or something? Mit schönen Grüßen von Yahoo! Mail. Für die Bilder Ihrer Lieben - Yahoo! Fotos - kostenlos!
From: "Dmitrij Repp" <stiner_rd@yahoo.de>
No, I give right password. I did test is as:
container.acl_users.userFolderAddUser('testname','testpassword',['Manager',' Owner'],('')). I just tried that exact code here, on a Zope 2.6.3 instance with a standard user folder, and it works.
participants (2)
-
Dmitrij Repp -
Lennart Regebro