Craig, I'm testing the "autocreate" and it is not working correctly. The returned user object does not have the ['nickname'] set. Then I realized that it is because of the nickname - username change I did in the config. (see the previous message)
So I reverted the config attribute to use "nickname" and then changed the ldap_get_user() method of LdapAuthenticationPlugin to use $this->attributes['nickname'] This leaves $this->attributes['usename'] unused so you have to comment it out of the onInitializePlugin() method. This test OK! ~jim sloan On Tue, Nov 10, 2009 at 4:34 PM, Craig Andrews <[email protected]>wrote: > > Hi! > > > >> > I thought about a crude hack: "Syncing" AD attributes to the StatusNet > >> > DB in onCheckPassword. But that would be... well, just a dirty > >> > workaround. Would it be possible to write a plugin redirecting some > >> > queries about user attributes to LDAP? > >> > >> I'm pondering where to add a hook to do this kind of updating. I can > >> assure you in won't be a hack in CheckPassword :-) > > > > A new event AfterLogin or something? Anyway, if it's possible I'd try to > > use LDAP as backend for (some) user information instead of duplicating > > it. An event GetUserProfile or similar. > > > > Btw. a plugin handling a user attribute (like email) would ideally be > > able to disable the input field for that attribute. > > > >> If you'd like to help, please join us on > >> Freenode at #statusnet, or just keep writing to this list. > > > > I'll stay on this list. I'm not sure whether I'll be able to code > > something, but I'd test new LDAP functionality and let you know about > > the results :-) > > Coding is not a requirement, and testing would be greatly appreciated. I > just made some major changes to the plugin, and there will be more - this > code is very volatile. You're welcome to test and report thoughts/issues > as you see fit; caveat emptor. > > ~Craig > > _______________________________________________ > StatusNet-dev mailing list > [email protected] > http://lists.status.net/mailman/listinfo/statusnet-dev >
_______________________________________________ StatusNet-dev mailing list [email protected] http://lists.status.net/mailman/listinfo/statusnet-dev
