If it helps, here's the patch I applied to OpenSSH to implement ConsoleKit support. It does assume root access, though.
If it helps, here's the patch I applied to OpenSSH to implement ConsoleKit support. It does assume root access, though.