[phpldapadmin] [ phpldapadmin-Bugs-2470966 ] sambaNTPassword attribute creation fails
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.ldap.davedap |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #2470966, was opened at 2008-12-27 13:58
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498546&aid=2470966&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: Open
Resolution: None
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!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498546&aid=2470966&group_id=61828
------------------------------------------------------------------------------
______________________________________
phpLDAPadmin development mailing list.
To unsbuscribe: https://lists.sourceforge.net/lists/listinfo/phpldapadmin-devel
http://phpldapadmin.sourceforge.net/