You are here

ldapauth.conf.php in LDAP integration 5.2

Same filename and directory in other branches
  1. 5 ldap_integration/ldapauth.conf.php

File

ldap_integration/ldapauth.conf.php
View source
<?php

// Transform the login name to something understood by the server
function ldapauth_transform_login_name($login_name) {
  return $login_name;
}

// Let users in (or not) according to some attributes' values
// (and maybe some other reasons)
function ldapauth_user_filter(&$attributes) {

  // Uncomment next line to see how the argument array looks like
  // msg_r($attributes);
  // Example: don't allow in users with no homeDirectory set
  // return isset($attributes['homeDirectory'][0]) && $attributes['homedirectory'][0];
  return true;
}