Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Stop LDAP user crea...
 
Notifications
Clear all

Stop LDAP user creation

3 Posts
2 Users
0 Reactions
3,872 Views
(@gvecchi)
Posts: 38
Active Member
Topic starter
 
[#655]

Hello everybody.

I need to stop automatic LDAP user creation but still use LDAP authentication for already created users.

Any idea?

Thx


 
Posted : 10 Sep 2012 12H37
(@babynus)
Posts: 14952
Member Admin
 

Hi,

There is no easy planned way to do this.
You can try 2 things :

1) update code of /model/user.php, method authenticate.
Line 592, add line 'return "login"' :

if (!count($first_user) == 0) {	
  // Contact information based on the inetOrgPerson class schema
  return "login";
  if (isset( $first_user['mail'][0] )) {

It should do what you want, but you will have to re-apply this change on every new version upgrade.

2) Create a new profile with absolutely no access right, and select this profile in the global parameters screen.
This way, new users will still be created from LDAP, but new users wil have absolutely no access to the application.

Regards.
Babynus.


 
Posted : 10 Sep 2012 17H41
(@gvecchi)
Posts: 38
Active Member
Topic starter
 

I prefer 2 solution


 
Posted : 10 Sep 2012 17H57
Share:

Scroll to Top