Page 1 of 1

Problems installing serendipity_event_externlauth

Posted: Mon Oct 23, 2006 11:07 am
by inki
Hi there!

I'm a S9Y newbie.

So here's the deal: I have installed an event plugin, it shows up in the Admin interface, I have activated it in the settings, but the files doesn't even get loaded during the login process. I have included a die('booo!'); to the very top of serendipity_event_externalauth.php, but it doesn't happen.

Any ideas anyone?

Cheers,
inki

Re: Problems installing serendipity_event_externlauth

Posted: Mon Oct 23, 2006 11:12 am
by garvinhicking
Hi!
I'm a S9Y newbie.
Welcome! Hi, my name is Garvin. I'm an s9y addict. ;)

Fun aside:
So here's the deal: I have installed an event plugin, it shows up in the Admin interface, I have activated it in the settings, but the files doesn't even get loaded during the login process. I have included a die('booo!'); to the very top of serendipity_event_externalauth.php, but it doesn't happen.
Which serendipity version are you using? Do other plugin files work? Is the externalauth-Plugin valid PHP (without a fatal parse error, or missing read privileges?)

Actually I've never heard of such a problem before, but I'm sure we can fix it. :)

Best regards,
Garvin

Re: Problems installing serendipity_event_externlauth

Posted: Mon Oct 23, 2006 11:52 am
by inki
Which serendipity version are you using? Do other plugin files work? Is the externalauth-Plugin valid PHP (without a fatal parse error, or missing read privileges?)
Oops, my bad. It was a file rights issue :oops:

But it still doesn't work. In the debug, I'm seeing

Code: Select all

[23.10.2006 09:45] Plugin authentication called.
[23.10.2006 09:45] LDAP auth started.
[23.10.2006 09:45] LDAP connection to ad.foo.com: Resource id #43
[23.10.2006 09:45] LDAP connection successful.
[23.10.2006 09:45] LDAP bind call: EI\iheinrich
[23.10.2006 09:45] Updating author, invalidating login.
[23.10.2006 09:45] LDAP connection close.
Looking at the plugin conf, I found that 'serendipity_userlevel' was set as answer to the question 'Which Attribute contains the userlevel for a new external user?'. A grep showed that the string 'serendipity_userlevel' only appears in the plugin itself. I did some research and changed that value to 'serendipity['serendipityUserlevel']' - still doesn't work.

What's the story of this userlevel?

Cheers,
Ingmar

Re: Problems installing serendipity_event_externlauth

Posted: Mon Oct 23, 2006 12:08 pm
by garvinhicking
Hi!

This "userlevel" column indicates the LDAP connection attribute, not anything from serendipity. Serendipity needs that attribute to decide whether a user is an admin or not.

That attribute just needs to hold a value larger than -1 and holds a number of either 0 (standard editor), 1 (chief editor) or 255 (admin). If the value is < -1, then the default userlevel will be assigned to a user.

The LDAP plugin tells you that it cannot bind an object in your LDAP query to the login you are using, and thus disables the author.

I hope that helps, because I actually don't know much about LDAP at all; the plugin is more a proof-of-concept for people that know LDAP. :)

Best regards
Garvin