This may be a really simple thing to do (but I'm a bit stuck and searched the web but found no answers). I have a Plone site working great. I have a folder which I wish to password protect (and all of the data in the folder). Thing is, I want to use our LDAP server for authentication. I have the site setup as normal with an ACL_users folder. I then have a folder called "protected". In this folder I have added a LDAPUserFolder object and linked it with our main LDAP server. Question is, how do I use this LDAPUserFolder to provide authentication for the "Protected" folder? Thanks
On May 6, 2005, at 12:08 , Phil Beardmore wrote:
This may be a really simple thing to do (but I'm a bit stuck and searched the web but found no answers). I have a Plone site working great. I have a folder which I wish to password protect (and all of the data in the folder). Thing is, I want to use our LDAP server for authentication. I have the site setup as normal with an ACL_users folder. I then have a folder called "protected". In this folder I have added a LDAPUserFolder object and linked it with our main LDAP server. Question is, how do I use this LDAPUserFolder to provide authentication for the "Protected" folder?
??? There is nothing you set up to make Zope "use" a user folder. It will automatically be consulted. jens
On 06.Mai 2005 - 12:44:24, Jens Vagelpohl wrote:
On May 6, 2005, at 12:08 , Phil Beardmore wrote:
This may be a really simple thing to do (but I'm a bit stuck and searched the web but found no answers). I have a Plone site working great. I have a folder which I wish to password protect (and all of the data in the folder). Thing is, I want to use our LDAP server for authentication. I have the site setup as normal with an ACL_users folder. I then have a folder called "protected". In this folder I have added a LDAPUserFolder object and linked it with our main LDAP server. Question is, how do I use this LDAPUserFolder to provide authentication for the "Protected" folder?
???
There is nothing you set up to make Zope "use" a user folder. It will automatically be consulted.
As long as the object has an id of "acl_users". Andreas -- You will be given a post of trust and responsibility.
+-------[ Andreas Pakulat ]---------------------- | On 06.Mai 2005 - 12:44:24, Jens Vagelpohl wrote: | > | > On May 6, 2005, at 12:08 , Phil Beardmore wrote: | > | > >This may be a really simple thing to do (but I'm a bit stuck and searched | > >the web but found no answers). I have a Plone site working great. I have a | > >folder which I wish to password protect (and all of the data in the folder). | > >Thing is, I want to use our LDAP server for authentication. I have the site | > >setup as normal with an ACL_users folder. I then have a folder called | > >"protected". In this folder I have added a LDAPUserFolder object and linked | > >it with our main LDAP server. Question is, how do I use this LDAPUserFolder | > >to provide authentication for the "Protected" folder? | > | > ??? | > | > There is nothing you set up to make Zope "use" a user folder. It will | > automatically be consulted. | | As long as the object has an id of "acl_users". And the containing folder has __allow_groups__ attribute set to that user folder. In fact you can call your user folder anything, as long as this attribute is set to be the instance.. -- Andrew Milton akm@theinternet.com.au
On May 6, 2005, at 1:26 , Andrew Milton wrote:
| > There is nothing you set up to make Zope "use" a user folder. It will | > automatically be consulted. | | As long as the object has an id of "acl_users".
And the containing folder has __allow_groups__ attribute set to that user folder.
In fact you can call your user folder anything, as long as this attribute is set to be the instance..
Exactly. jens
On May 6, 2005, at 1:24 , Andreas Pakulat wrote:
There is nothing you set up to make Zope "use" a user folder. It will automatically be consulted.
As long as the object has an id of "acl_users".
Umh, no. First of all, all user folders have that ID. If not, they are not user folders. Secondly, the ID is not used to hook into the authentication mechanism. It has nothing to do with it really. jens
Hi Guys, still cant get it to work. Is it okay to have multiple ACL_users folders? Basdically I want to grant access to Folder A to all users in one tree of our LDAP server, then grant access to Folder B to all users in another Tree. I can get the folder to be password protected, so they need to login to access the pages, but it always seems to use the acl_users folder at the root of the site. Hope I make sense... Thanks Phil Beardmore wrote:
This may be a really simple thing to do (but I'm a bit stuck and searched the web but found no answers). I have a Plone site working great. I have a folder which I wish to password protect (and all of the data in the folder). Thing is, I want to use our LDAP server for authentication. I have the site setup as normal with an ACL_users folder. I then have a folder called "protected". In this folder I have added a LDAPUserFolder object and linked it with our main LDAP server. Question is, how do I use this LDAPUserFolder to provide authentication for the "Protected" folder?
Thanks
participants (4)
-
Andreas Pakulat -
Andrew Milton -
Jens Vagelpohl -
Phil Beardmore