[phpldapadmin] [ phpldapadmin-Bugs-2466314 ] sambaNTPassword attribute creation fails

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.ldap.davedap
Message-ID <[email protected]>
Bugs item #2466314, was opened at 2008-12-25 23:09
Message generated for change (Comment added) made by wurley
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498546&aid=2466314&group_id=61828

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: AJM (arskam)
Assigned to: Nobody/Anonymous (nobody)
Summary: sambaNTPassword attribute creation fails

Initial Comment:
sambaNTPassword attribute creation fails

FILE: createlm.php line
LINE: 330: return strtoupper(bin2hex(hash('md4', iconv("UTF-8","UTF-16LE",$password),true)));
ERROR (Apache error_log): PHP Fatal error:  Call to undefined function hash()

phpLDAPAdmin version 1.1.0.5
PHP 5.2.3
OpenLDAP 2.3.32
Samba 3.0.28
SLES 10 SP2

PHP seems to have mhash() function instead of hash() and the function is a little different.

At http://bogambilya.asti.dost.gov.ph/manual/es/ref.hash.php there was a suggestion that fixed it:
return  strtoupper(bin2hex(mhash(MHASH_MD4, iconv("UTF-8","UTF-16LE",$password))));

Thank you for an excellent piece of LDAP Admin client!

----------------------------------------------------------------------

>Comment By: Deon George (wurley)
Date: 2009-01-06 01:35

Message:
Thanks, change applied to CVS as suggested (BRANCH-1_1_0)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498546&aid=2466314&group_id=61828

------------------------------------------------------------------------------
______________________________________
phpLDAPadmin development mailing list.
To unsbuscribe: https://lists.sourceforge.net/lists/listinfo/phpldapadmin-devel
http://phpldapadmin.sourceforge.net/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.