Project

General

Profile

Paste
Statistics
| Branch: | Revision:

root / drupal7 / sites / all / modules / ldap @ b42754b9

Name Size Revision Age Author Comment
  ldap_authentication b42754b9 almost 7 years Assos Assos Weekly update of contrib modules
  ldap_authorization b42754b9 almost 7 years Assos Assos Weekly update of contrib modules
  ldap_feeds b42754b9 almost 7 years Assos Assos Weekly update of contrib modules
  ldap_help b42754b9 almost 7 years Assos Assos Weekly update of contrib modules
  ldap_query b42754b9 almost 7 years Assos Assos Weekly update of contrib modules
  ldap_servers b42754b9 almost 7 years Assos Assos Weekly update of contrib modules
  ldap_test b42754b9 almost 7 years Assos Assos Weekly update of contrib modules
  ldap_user b42754b9 almost 7 years Assos Assos Weekly update of contrib modules
  ldap_views b42754b9 almost 7 years Assos Assos Weekly update of contrib modules
.gitignore 63 Bytes f7a2490e over 10 years Assos Assos git mv htmltest drupal7
INSTALL.txt 1.59 KB f7a2490e over 10 years Assos Assos git mv htmltest drupal7
LICENSE.txt 17.7 KB f7a2490e over 10 years Assos Assos git mv htmltest drupal7
README.developers.txt 1.82 KB f7a2490e over 10 years Assos Assos git mv htmltest drupal7

Latest revisions

# Date Author Comment
b42754b9 08/31/2017 12:06 AM Assos Assos

Weekly update of contrib modules

05237dd8 06/01/2017 12:09 AM Assos Assos

Weekly update of contrib modules

59ae487e 05/25/2017 12:10 AM Assos Assos

Weekly update of contrib modules

be58a50c 03/23/2017 12:06 AM Assos Assos

Weekly update of contrib modules

7547bb19 02/23/2017 12:12 AM Assos Assos

Weekly update of contrib modules

5136ce55 08/10/2016 10:49 PM Assos Assos

Weekly update of contrib modules

f7a2490e 02/13/2014 03:56 PM Assos Assos

git mv htmltest drupal7

View revisions

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

Also available in: Atom