Welcome, Guest
Username: Password: Remember me

TOPIC: LDAP (encore)

LDAP (encore) 3 years 2 months ago #60364

  • floflo
  • floflo's Avatar
Bonjour à tous, je reviens sur mon problème de LDAP que je n'arrive vraiment pas à faire fonctionner. Mon AD est en server 2008.

Si quelqu'un peut jeter un coup d'oeil et me donner des pistes d'exploration, ce serait cool. L'authentification qui est plus haut dans le fichier ne pose pas de problème.

Merci, Flo

$query_id=0;

// First define the serverId on which you want to run the query
$LDAP_queries[$query_id] = 0;

// Give a name that will appear on the user interface
$LDAP_queries[$query_id] = 'AD2008';

// Define the LDAP base used for user searches
$LDAP_queries[$query_id] = 'CN=users, DC=intranet';

// Define the user filter to apply
// Must begin with '(' and end with ')'
// Note that for AD, checking the 'active' status of a user is done with the following filter:
// "(&(objectCategory=Person)(objectClass=user)(!(userAccountControl=514)))"
$LDAP_queries[$query_id] = '(objectClass=user)';

// Define how deep under the userbase you want to search
// 'sub' means: search on the entire subtree
// 'one' means: only search 1 level under the userbase
// 'base' means: only search the userbase DN entry
$LDAP_queries[$query_id] = 'sub';

// Define the user's attribute that provides the firstname
// do not use capital letters in the attribute name
// for instance use 'givenname' and not 'givenName'
$LDAP_queries[$query_id] = 'givenname';

// Give the user's attribute that provides the lastname
// do not use capital letters in the attribute name
$LDAP_queries[$query_id] = 'sn';

// Give the user's attribute that provides the email address
// do not use capital letters in the attribute name
// If multivalued, only the first entry is read
$LDAP_queries[$query_id] = 'mail';


// Optionnally give the user's attributes that provides the
// token, language, attr1 and attr2 piece of information
// do not use capital letters in the attribute name
// if unused, leave empty or comment the lines
$LDAP_queries[$query_id] = ''; // Leave empty for Auto Token generation bu phpsv
$LDAP_queries[$query_id] = '';
$LDAP_queries[$query_id] = '';
$LDAP_queries[$query_id] = '';
The administrator has disabled public write access.
Moderators: Nickko
Time to create page: 0.098 seconds
Donation Image