I have setup LDAP to drupal roles, and it works fine, mostly. Some entries in my LDAP-server is base64 encoded, and Ldap-module does not convert these to roles! How can i handle those?

Comments

larsmw’s picture

Could this issue be caused by this php-bug : https://bugs.php.net/bug.php?id=64392 ?

johnbarclay’s picture

Version: 7.x-2.0-beta3 » 7.x-2.x-dev
Category: support » feature

while there is functionality for converting base64 user attributes in the ldap_user module, there is none for ldap authorization drupal roles. I'm changing this to a feature request. The only way to implement this currently without module changes is via hooks in a custom module.

larsmw’s picture

Thanks John,
Can you give hint on where the base64 code for user module is located? I might try to implement it in authorization also then.

johnbarclay’s picture

  • in ldap_servers.tokens.inc line 290 (for parsing tokens)
  • line 761 of ldap_servers.module
  • and line 86 of ldap_servers.encryption.inc

The preferred function is line 761 of ldap_servers.module

larowlan’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

No update in > 12 months, no patches - closing