I'm working on a new drupal 7 site that needs siteminder integration. Any chance there's a drupal 7 version of this module in the works?

CommentFileSizeAuthor
#7 siteminder-6to7upgrade-945284-7.patch39.55 KBjpklein

Comments

netw3rker’s picture

We have yet to bite the bullet and started on d7 plans yet. The code is pretty simple and should be able to take advantage of the new authentication layers in d7 much better, so it should be an easy upgrade. If you are interested in helping out, we can get a d7 branch set up to work off of.

shadgun’s picture

I'm interested in helping out. I'm not overly familiar with the security internals of D7, but I am with SiteMinder.

GaryWong’s picture

I'm available to help out (if this old thread is still valid)...

mrgcohen’s picture

Is this currently being worked on?

BigEd’s picture

I might need this for a project, I will take a look at trying to bring this up to D7.

BigEd’s picture

Can you get a d7 branch set up to work off then?

jpklein’s picture

StatusFileSize
new39.55 KB

To get the ball rolling, here's a patch file created by taking the code from the master branch of the git repo and running it through Coder Upgrade: once through the coding standards filter, then again through the core API 6 to 7 upgrade routine.

@Ian Ward, @netw3rker - Could you please open a new 7.x-1.x-dev branch from master and commit this patch? My company requires a Drupal 7 version of this module, so we'll be upgrading it over the coming weeks. Going forward, we'd like to contribute back with more patches against that branch.

Thanks!

UPDATE: I've created a sandbox project from a fork of the master branch. If anyone on this thread would like to help out, just ping me for maintainer access.

netw3rker’s picture

Good to see some interest in this! The d7 branch is now available (but not on the project page), I've got some un allocated work time coming up that I'd like to devote to this. (hint hint @jpklein). I'll be scoping out a level of effort with my PM on this over the next couple of days.

I've gotta figure out how to attribute people to patches so they get some credit, so my apologies if your patches don't show you right away, I swear i'm not trying to steal credit! :)

-Chris

jfmathieu’s picture

Hi @netw3rker and @jpklein,

One of my project will need the SiteMinder module for the D7 install.

I'm interested to know what is the possible time frame (1 month, 3 month, 6 month,...) to have a production version of the module from your point of view. I know that the project move forward with the spear time of the community but I'm just asking to have an idea and if I could help.

I know this could be a hard question but it could help me out to plan my project.

Thank you for your help

turek’s picture

I am also dealing with this now, thanks jpklein for your sandbox project.

Can you guys help me out on how to set up some SiteMinder Agent so I can actually test it?
Thanks.

netw3rker’s picture

@ jfmathieu I've got a few commits to apply to the d7 branch, before making a -beta tagged release. If you want to try whats out there now, you can either use jpkleins fork, or the d7 branch that is in the git repo. I hope to have the beta release up by mid next week while @ drupalcon munich.

-Chris

jcalcazar’s picture

Hi, I have successfully implemented the d7 branch on Drupal 7 version, I only face an issue with this module as it was showing the message "Your browser is not sending a Siteminder ID. Unable to proceed."

The problem was related to the siteminder map when is loaded using ctools. The object returned is now inside the array "Siteminder ID Map" so I fixed extracting the stdClass object and I was able to login the site after this change:

function siteminder_map_load($name = '') {
$args = array();
$name ? $type = 'all' : $type = 'names';
if ($type == 'names') {
$args = array('name' => $name);
}
if (module_exists('ctools')) {
ctools_include('export');
$map = ctools_export_load_object('siteminder_map', $type, $args, $reset);
$map = $map['Siteminder ID Map'];
// If just fetching one mapping, queue it up.
if ($type == 'names' && count($args['name']) == 1) {
return array_shift($map);
}
else {
return $map;
}
}
// Fallback if not using Ctools.
else {
$map = array();
if ($type == 'all') {
$query = db_query("SELECT * from {siteminder_map}");
}
else {
$query = db_query("SELECT * from {siteminder_map} WHERE name = :name", array(':name' => $name));
}
while ($result = db_fetch_object($query)) {
// If not using ctools, all maps are of type Normal.
$result->type = 'Normal';
$map[$result->name] = $result;
}
return $map;
}
}

This worked for me so I hope this helps someone else.

Cheers!

steve.neill’s picture

Hello,

I'm curious to know if/when the D7 version will appear as a release on the Drupal site. I realize there is a sandbox version, but are there plans to make this "official" in any way soon?

Thanks,

Steve

beautifulmind’s picture

Hello Steve,
The stable release in 7.x branch is set to release. Some testing is going on.

Regards.

beautifulmind’s picture

Status: Active » Postponed
sylvain lecoy’s picture

Status: Postponed » Active

Any news on this ?

netw3rker’s picture

Hi Everyone,

There has been a 7.x branch in version control for a while. I've made a 7.x-1.x-dev release now. please test it and get any patches in soon. I'll say we should target a formal release on 2/15/13.

Thanks for your patience!
-Chris

ryan.armstrong’s picture

I just wanted to let everyone know that I have taken over as the maintainer for this module and will be working to get a release going soon. I am currently reviewing the patches and code from this issue. I'll keep you guys updated.

sylvain lecoy’s picture

I written a 150 lines module for my client, without mapping and co but very performant.

ryan.armstrong’s picture

Yea the current 2.x branch which I just pushed out a DEV release for does basic authentication. It doesn't support profiles or anything else, but you can authenticate with it. I might push out a 1.0 based on just that and then add new features in later versions. But I need to go through what was done to convert the current 1.x branch to see if I can pull over some of the other features.

elusivemind’s picture

Issue summary: View changes

I am likely to pick up the ball somewhat on this. I am building a site using SideMinder and the Drupal 7 module doesn't have enough functionality. I need something like the Drupal 6 module so I may just do a straight up-port. Is this project still maintained?