[Fusionforge-commits] FusionForge branch Branch_5_3 updated. 36da5982348b75a8102cf3bd5a2aecb08809b83f

Roland Mas lolando at fusionforge.org
Tue Sep 16 15:56:35 CEST 2014

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, Branch_5_3 has been updated
       via  36da5982348b75a8102cf3bd5a2aecb08809b83f (commit)
      from  7f71b1c125c4b23299d1f29dcdf1a00162c982ca (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 36da5982348b75a8102cf3bd5a2aecb08809b83f
Author: Roland Mas <lolando at debian.org>
Date:   Tue Sep 16 15:56:27 2014 +0200

    Strip {crypt} prefix from Unix password gotten from LDAP

diff --git a/src/plugins/authldap/include/AuthLDAPPlugin.class.php b/src/plugins/authldap/include/AuthLDAPPlugin.class.php
index 5f93dab..76fed87 100644
--- a/src/plugins/authldap/include/AuthLDAPPlugin.class.php
+++ b/src/plugins/authldap/include/AuthLDAPPlugin.class.php
@@ -185,6 +185,9 @@ class AuthLDAPPlugin extends ForgeAuthPlugin {
 		$u->setMD5Passwd ($mapped_data['md5_password']);
+		if (substr($mapped_data['unix_password'], 0, 7) == '{crypt}') {
+			$mapped_data['unix_password'] = substr($mapped_data['unix_password'],7);
+		}
 		$u->setUnixPasswd ($mapped_data['unix_password']);


Summary of changes:
 src/plugins/authldap/include/AuthLDAPPlugin.class.php |    3 +++
 1 file changed, 3 insertions(+)


More information about the Fusionforge-commits mailing list