Jump to content

Recommended Posts

Posted

So after struggling to get MRBS working ive now found myself *trying* to get LDAP to work but there doesnt seem to be any idiots guides around on how to get it to work, unless im missing something. Has anyone got one or is able to help getting ldap working on MRBS. At the end of the day, ldap might be a bit too much for the purpose of this booking system but it would be nice to try and get AD logins to work on MRBS.

 

THanks

Posted

To use LDAP, I have the following set in my config.inc.php file:

 

$auth["type"] = "ldap";

$ldap_host = '10.5.143.139';
$ldap_port = 389;
$ldap_v3 = true;
$ldap_tls = false;
$ldap_base_dn[] = "ou=Teaching,ou=Staff,dc=domain,dc=local;
$ldap_base_dn[] = "ou=Admin,ou=Staff,dc=domain,dc=local;
$ldap_base_dn[] = "ou=Management,ou=Staff,dc=domain,dc=local;
$ldap_user_attrib = "uid";
$ldap_dn_search_attrib = "sAMAccountName";
$ldap_dn_search_dn = "cn=User,cn=Users,dc=domain,dc=local;
$ldap_dn_search_password = "PASSWORD";
$ldap_disable_referrals = true;
$ldap_get_user_email = true;
$ldap_email_attrib = 'mail';

  • Thanks 2
Posted

Just tried the auth settings and got a white screen whilst logging in with a domain user so had to upgrade MRBS to 1.6.1 - apparently the fix is in there and it works but... how do i now tell MRSB what level each user is?

 

I must admit, the documentation isn't great for this software.

Posted

You can either specify admins using the lines:

 

$auth["admin"][] = "username";

 

for each admin user, or you can use this:

 

$ldap_admin_group_dn='cn=Domain Admins,cn=Users,dc=domain,dc=local;
$ldap_admin_group_member_attrib='memberof';

 

We use the first way - as there's only 2 admins for it.

  • Thanks 1
  • 1 year later...
Posted

Does all the bvelow fields needs configuring?

 

$auth["type"] = "ldap";

 

$ldap_host = '10.5.143.139';

$ldap_port = 389;

$ldap_v3 = true;

$ldap_tls = false;

$ldap_base_dn[] = "ou=Teaching,ou=Staff,dc=domain,dc=local;

$ldap_base_dn[] = "ou=Admin,ou=Staff,dc=domain,dc=local;

$ldap_base_dn[] = "ou=Management,ou=Staff,dc=domain,dc=local;

$ldap_user_attrib = "uid";

$ldap_dn_search_attrib = "sAMAccountName";

$ldap_dn_search_dn = "cn=User,cn=Users,dc=domain,dc=local;

$ldap_dn_search_password = "PASSWORD";

$ldap_disable_referrals = true;

$ldap_get_user_email = true;

$ldap_email_attrib = 'mail';

 

I have filled in the below

 

$ldap_host = 'xxx';

$ldap_port = 389;

$ldap_base_dn[] = "OU=xxx,OU=xxx,DC=GM,DC=Internal;

 

But not sure if others are generic ones or i need to fill in?

Posted

A lot of them need filling but not all.

 

For example the:

$ldap_dn_search_attrib = "sAMAccountName";

$ldap_dn_search_dn = "cn=User,cn=Users,dc=domain,dc=local;

$ldap_dn_search_password = "PASSWORD";

 

This tells the LDAP setup what account to look with the search_dn and the search_password. The attribute is what it is returning, hence sAMAccoutnName

 

You probably want it to return the email address as well.

 

By the way if you have ADFS setup there is SAML modules which are probably a better way to do internal logins now.

  • 4 weeks later...
Posted

Have you got ADFS set up already?

 

If so then make sure you have a valid cert on your Moodle installation, then install the plugin. The SAML plugin creates the config file to copy into ADFs from memory.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...