The Ldapuserfolder is so sweet! (using it to authenticate against local AD) Only thing I need (or havent figured out) is: How can one assign roles to single users? Is it possible? I'm trying to make some sort of "hompages" where each user have access to and read/write permission to her own folder, but I am only able to assign roles to groups and not to individual users. Best regards Einar
On Jul 9, 2004, at 3:36 AM, Einar Næss Jensen wrote:
The Ldapuserfolder is so sweet! (using it to authenticate against local AD)
Only thing I need (or havent figured out) is: How can one assign roles to single users? Is it possible?
I'm trying to make some sort of "hompages" where each user have access to and read/write permission to her own folder, but I am only able to assign roles to groups and not to individual users.
Your situation would best be covered by using Zope's built-in "Local Roles". Create a role in Zope (or use an existing role) that has the permissions to do the read/write operations on these member folders and then assign them to the user from the local role form, which is linked from the "Security" ZMI tab of the member's folder. jens
Jens Vagelpohl wrote:
On Jul 9, 2004, at 3:36 AM, Einar Næss Jensen wrote:
The Ldapuserfolder is so sweet! (using it to authenticate against local AD)
Only thing I need (or havent figured out) is: How can one assign roles to single users? Is it possible?
I'm trying to make some sort of "hompages" where each user have access to and read/write permission to her own folder, but I am only able to assign roles to groups and not to individual users.
Your situation would best be covered by using Zope's built-in "Local Roles". Create a role in Zope (or use an existing role) that has the permissions to do the read/write operations on these member folders and then assign them to the user from the local role form, which is linked from the "Security" ZMI tab of the member's folder.
Doesn't seem to work well with ldapuserfolder,but this is what i'm looking for yes.: *Error Type: TypeError* *Error Value: list indices must be integers Best regars *
Your situation would best be covered by using Zope's built-in "Local Roles". Create a role in Zope (or use an existing role) that has the permissions to do the read/write operations on these member folders and then assign them to the user from the local role form, which is linked from the "Security" ZMI tab of the member's folder.
Doesn't seem to work well with ldapuserfolder,but this is what i'm looking for yes.: *Error Type: TypeError* *Error Value: list indices must be integers
This error report is useless without a full traceback and a description what you did when this error appeared. jens
Jens Vagelpohl wrote:
Your situation would best be covered by using Zope's built-in "Local Roles". Create a role in Zope (or use an existing role) that has the permissions to do the read/write operations on these member folders and then assign them to the user from the local role form, which is linked from the "Security" ZMI tab of the member's folder.
Doesn't seem to work well with ldapuserfolder,but this is what i'm looking for yes.: *Error Type: TypeError* *Error Value: list indices must be integers
Sorry, there was no traceback, only the above message (and I'm running in debug-mode). the tracelog says this: B 1093190508 2004-07-13T09:41:41 GET /test/test_gjennomsiktighet/hjemmeside/manage_listLocalRoles I 1093190508 2004-07-13T09:41:41 0 A 1093190508 2004-07-13T09:41:42 500 1773 E 1093190508 2004-07-13T09:41:42 B 1093164908 2004-07-13T09:41:42 GET /p_/ZButton I 1093164908 2004-07-13T09:41:42 0 A 1093164908 2004-07-13T09:41:42 304 268 E 1093164908 2004-07-13T09:41:42 B 1093165004 2004-07-13T09:41:42 GET /p_/ZopeButton I 1093165004 2004-07-13T09:41:42 0 A 1093165004 2004-07-13T09:41:42 304 268 E 1093165004 2004-07-13T09:41:42 What i try to do is to cllick the link "You can also assign *local roles <http://www.hf.ntnu.no:9080/test/test_gjennomsiktighet/hjemmeside/manage_listLocalRoles>* to users" in the security-tab of a folder. besides running in debug-mod, is there anythin one can do to get at traceback? Best regards, Einar Næss Jensen
What i try to do is to cllick the link "You can also assign *local roles <http://www.hf.ntnu.no:9080/test/test_gjennomsiktighet/hjemmeside/ manage_listLocalRoles>* to users" in the security-tab of a folder. besides running in debug-mod, is there anythin one can do to get at traceback?
Zope 2.7 has something called an error_log in the root of the ZODB. That's where you can find the traceback. jens
Jens Vagelpohl wrote:
manage_listLocalRoles>* to users" in the security-tab of a folder. besides running in debug-mod, is there anythin one can do to get at traceback?
Zope 2.7 has something called an error_log in the root of the ZODB. That's where you can find the traceback.
Sorry for extremely late reply. I was trying to assign local role to users in the securitytab in zope management with users from an ldapdatabase (Active directory) authenticating works very well, but the above raises exeptions the traceback telles me this: Traceback (innermost last): Module ZPublisher.Publish, line 100, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 40, in call_object Module Shared.DC.Scripts.Bindings, line 306, in __call__ Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec Module App.special_dtml, line 175, in _exec Module DocumentTemplate.DT_Try, line 140, in render Module DocumentTemplate.DT_Try, line 149, in render_try_except Module DocumentTemplate.DT_In, line 623, in renderwob Module AccessControl.Role, line 317, in get_valid_userids Module AccessControl.User, line 965, in user_names Module Products.LDAPUserFolder.LDAPUserFolder, line 608, in getUserNames TypeError: list indices must be integers Any help would be great! Best regards Einar Næss Jensen
participants (3)
-
Einar Jensen -
Einar Næss Jensen -
Jens Vagelpohl