Projet

Général

Profil

Paste
Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / ldap @ 2545992a

Nom Taille Révision Âge Auteur Commentaire
  ldap_authentication 5136ce55 environ 8 ans Assos Assos Weekly update of contrib modules
  ldap_authorization 5136ce55 environ 8 ans Assos Assos Weekly update of contrib modules
  ldap_feeds 5136ce55 environ 8 ans Assos Assos Weekly update of contrib modules
  ldap_help 5136ce55 environ 8 ans Assos Assos Weekly update of contrib modules
  ldap_query 5136ce55 environ 8 ans Assos Assos Weekly update of contrib modules
  ldap_servers 5136ce55 environ 8 ans Assos Assos Weekly update of contrib modules
  ldap_sso 5136ce55 environ 8 ans Assos Assos Weekly update of contrib modules
  ldap_test 5136ce55 environ 8 ans Assos Assos Weekly update of contrib modules
  ldap_user 5136ce55 environ 8 ans Assos Assos Weekly update of contrib modules
  ldap_views 5136ce55 environ 8 ans Assos Assos Weekly update of contrib modules
.gitignore 63 octets f7a2490e plus de 10 ans Assos Assos git mv htmltest drupal7
INSTALL.txt 1,59 ko f7a2490e plus de 10 ans Assos Assos git mv htmltest drupal7
LICENSE.txt 17,7 ko f7a2490e plus de 10 ans Assos Assos git mv htmltest drupal7
README.developers.txt 1,82 ko f7a2490e plus de 10 ans Assos Assos git mv htmltest drupal7

Dernières révisions

# Date Auteur Commentaire
5136ce55 10/08/2016 22:49 Assos Assos

Weekly update of contrib modules

f7a2490e 13/02/2014 15:56 Assos Assos

git mv htmltest drupal7

Voir les révisions

README


General LDAP Project Notes

LDAP Servers is base module or api module. General LDAP functions belong in
LDAP Servers.


Case Sensitivity and Character Escaping in LDAP Modules

The function ldap_server_massage_text() should be used for dealing with case sensitivity
and character escaping consistently.

The general rule is codified in ldap_server_massage_text() which is:

  • escape filter values and attribute values when querying ldap
  • use unescaped, lower case attribute names when storing attribute names in arrays (as keys or values), databases, or object properties.
  • use unescaped, mixed case attribute values when storing attribute values in arrays (as keys or values), databases, or object properties.

So a filter might be built as follows:

$username = ldap_server_massage_text($username, 'attr_value', LDAP_SERVER_MASSAGE_QUERY_LDAP)
$objectclass = ldap_server_massage_text($objectclass, 'attr_value', LDAP_SERVER_MASSAGE_QUERY_LDAP)
$filter = "(&(cn=$username)(objectClass=$objectclass))";

The following functions are also available:
ldap_pear_escape_dn_value()
ldap_pear_unescape_dn_value()
ldap_pear_unescape_filter_value()
ldap_pear_unescape_filter_value()


common variables used in ldap_* and their structures

!Structure of $ldap_user and $ldap_entry are different!


$ldap_user

@see LdapServer::userUserNameToExistingLdapEntry() return


$ldap_entry and $ldap_*_entry.

@see LdapServer::ldap_search() return array


$user_attr_key

key of form .[:] such as field.lname, property.mail, field.aliases:2

Formats disponibles : Atom