This object is in archive! 

How to make LDAP - default registration

Archived Smarthouse 12 years ago

We have integrated our LDAP Server (with LoginPlus) for user-authorisatzion within UseResponse. Now we want to deactivate the internal UseResonse registration and allow only LDAP and normal logins. How do we manage this?


We already tried the workaround described in "https://help.useresponse.com/responses/turn-of-register-and-sign-in-when-sso-activated" ...no success. I attached the original header.phtml (.txt) file of the active template.


The target is to get a login-form with a pre-selected LDAP-login and the possibility to login as UseResponse Admin-User.

To pre-select the SSO/LDAP login we already followed the steps described in "https://help.useresponse.com/responses/default-to-ldap-login" ...that works pretty well (see attatched file).


Thanks in advance

Best Answer
photo

This is integrated in UR 2.3.7 release

Replies (11)

photo
14

Thanks. I was able to remove the Facebook, Twitter and Google logins successfully. However I must be missing where I can default the LDAP login in the header.phtml. I would like the dialog to be exactly the same as it is now however have the LDAP tab be the default tab.

photo
12

Use this simple solution:


1. Open /public/assets/js/global.js

2. Find line 90 or code string:

  1. $('.b-popup-tabs li.itTab .filter').eq(0).find(".marker").show();

3. Insert after (next line) the folowing code:

  1. $('li.ldapTab').click();

Thats all!

photo
13

Thanks. Worked like a charm.

photo
13

This is integrated in UR 2.3.7 release

photo
16

Hi,

The javascript solution works when I go to the login page via the link.


But when I go directly to the login page through a redirection, the javascript doesn't seem to works.


Also, is it possible to show the login form in a normal page and not a popup ?


Thanks

photo
12

Also, the links to go directly to login or registration are like "/login/redirect/reset/" and "/registration/redirect/reset". Which one is for the SSO/LDAP login ?

photo
12

Robin,

Login page is always accessed via http://<your_site>/login. All javascripts that are loaded will work.

As of now there are no built-in ways to display login form without using popup. You can implement such functionality in your custom module.


There several login tabs in login popup. If you want to login via Single Sign-On you need to choose corresponding tab. See attached screen.

B4Ih6N1xN9xYui3Fof3h

photo
12

Thanks for you quick response.

Yes I know for the several tabs. But I would like to have a link who goes directly to the SSO login tab. I don't know if it's possible, but it seem there is a link to go directly to the registration tab. So i thought it could be possible to the sso tab

photo
15

Solution is here added by @Robin

photo
11

I'm looking in \public\assets\js\global.js - and don't have the same line at line 91. A search of global.js for that line says... can't be found. Has this been changed?

photo
12

Bill,

HEre is a quick fix to make LDAP tab to be by default. Just make sure you have Use Only SSO login switched on in order to use this integration in Administration->Single Sign On and Choose LDAP, then select option Use only SSO and submit it.

Extract attached file to application\modules\loginplus\controllers

Replies have been locked on this page!