ClueMapper and Zope (Plone)

1 view
Skip to first unread message

Michael

unread,
Apr 1, 2009, 3:57:40 AM4/1/09
to Cluemapper-dev
Hi,

it would be nice if I can use ClueMapper from my Plone instance, by
using zope.app.wsgi (or like that) and have access to the plone user
database. My problem is that I do not understand the WSGI and
PasteDeploy so well now, if you can give me some hints, what i need to
change in ClueMapper (I think I need some extended changes in
clue.secure.auth) to get such an access with single sign on for Plone
and ClueMapper.

It would be also nice if ClueMapper can be accessed through mod_python
like TracModPython.

Thanks,
Michael

Rudá Porto Filgueiras

unread,
Apr 1, 2009, 10:00:25 AM4/1/09
to cluemap...@googlegroups.com
Michael,

I want this integration too, but not necessary with single sign on.
One aprouch is integration at backend level (LDAP, SQL database).

I post this proposal to use PostgreSQL backend in ClueMapper and
SQLPasPlugin in Plone:

http://groups.google.com/group/cluemapper-dev/browse_thread/thread/40f74616ca57b5be

Maybe mod_wsgi integration?


Regards,

--
Rudá Porto Filgueiras

Rocky Burt

unread,
Apr 1, 2009, 10:47:35 AM4/1/09
to cluemap...@googlegroups.com
Yeah the only way to really get integration working at this point would be to share user data sources.  And step one is to make sure the sql url isn't hardcoded inside cluemapper.  Step 2 would be to make it easier to configure the repoze.who portion.  This would theoretically allow integration with ldap instead of sql.

As for mod_python integration ... it's not on my immediate todo list.  If someone else can get this working I'll certainly add it to the wiki or whatever.  But I will be working on mod_wsgi integration as soon as I get a chance.

- Rocky

Rudá Porto Filgueiras

unread,
Apr 1, 2009, 11:05:51 AM4/1/09
to cluemap...@googlegroups.com
On Wed, Apr 1, 2009 at 11:47 AM, Rocky Burt <ro...@serverzen.com> wrote:
> Yeah the only way to really get integration working at this point would be
> to share user data sources.  And step one is to make sure the sql url isn't
> hardcoded inside cluemapper.

Should I create a brach to do this?

- new config parameter in cluemapper.ini (db_uri ?)
- global database object (crate and cache engine, session, etc)
- specialized data store for each app (wrapper the database object and
add specific app logic), the same actual logic ClueTimer and ClueBin
has, only refactor ithey and a new one to ClueMapper
- change ClueMapper to use new database or new wrapper for it first.
in future an ORM mapper can be used

> Step 2 would be to make it easier to configure
> the repoze.who portion.  This would theoretically allow integration with
> ldap instead of sql.

I don't know about repoze.who, but this can be done after. ;-)

> As for mod_python integration ... it's not on my immediate todo list.  If
> someone else can get this working I'll certainly add it to the wiki or
> whatever.  But I will be working on mod_wsgi integration as soon as I get a
> chance.

I guess this will not be so hard, but I'm not an wsgi guru. :-(

Regards,

--
Rudá Porto Filgueiras

Michael

unread,
Apr 1, 2009, 3:22:21 PM4/1/09
to Cluemapper-dev
have a look at http://trac-hacks.org/wiki/TracWsgiPlugin
I think it is good starting point

- Michael

On Apr 1, 4:47 pm, Rocky Burt <ro...@serverzen.com> wrote:
> Yeah the only way to really get integration working at this point would be
> to share user data sources.  And step one is to make sure the sql url isn't
> hardcoded inside cluemapper.  Step 2 would be to make it easier to configure
> the repoze.who portion.  This would theoretically allow integration with
> ldap instead of sql.
>
> As for mod_python integration ... it's not on my immediate todo list.  If
> someone else can get this working I'll certainly add it to the wiki or
> whatever.  But I will be working on mod_wsgi integration as soon as I get a
> chance.
>
> - Rocky
>
> On Wed, Apr 1, 2009 at 11:30 AM, Rudá Porto Filgueiras <rud...@gmail.com>wrote:
>
>
>
> > Michael,
>
> > I want this integration too, but not necessary with single sign on.
> > One aprouch is integration at backend level (LDAP, SQL database).
>
> > I post this proposal to use PostgreSQL backend in ClueMapper and
> > SQLPasPlugin in Plone:
>
> >http://groups.google.com/group/cluemapper-dev/browse_thread/thread/40...

Rudá Porto Filgueiras (ruda_porto)

unread,
Apr 1, 2009, 10:06:51 PM4/1/09
to Cluemapper-dev
On 1 abr, 12:05, Rudá Porto Filgueiras <rud...@gmail.com> wrote:
> On Wed, Apr 1, 2009 at 11:47 AM, Rocky Burt <ro...@serverzen.com> wrote:
> > Step 2 would be to make it easier to configure
> > the repoze.who portion.  This would theoretically allow integration with
> > ldap instead of sql.
>
> I don't know about repoze.who, but this can be done after. ;-)

I begin to see how to integrate authentication and did some look on
repoze.who plugins.
- htpasswd.py plugin now used store password in crypt format
- sql.py plugin uses sha format

To do SQL integration for auth both plugins need to be used, sql.py
for authentication and htpasswd.py to export password to Apache + SVN
integration. This includes "clue-admin addmanager" and when user
change your own password (Another Trac Plugin?).

--
Rudá Porto Filgueiras
Reply all
Reply to author
Forward
0 new messages