Open-AudIT
https://www.open-audit.org/phpBB3/

Error While attempt to run ldap_audit_script.php
https://www.open-audit.org/phpBB3/viewtopic.php?f=10&t=5844
Page 1 of 1

Author:  nithi123 [ Tue Feb 21, 2012 1:15 pm ]
Post subject:  Error While attempt to run ldap_audit_script.php

Hi,

I am trying to audit my domain using ldap. When i click - admin--->audit my ldap directory am getting this error.


Deprecated: Call-time pass-by-reference has been deprecated in C:\xampp\htdocs\openaudit\ldap_audit_script.php on line 306

Deprecated: Call-time pass-by-reference has been deprecated in C:\xampp\htdocs\openaudit\ldap_audit_script.php on line 306

Deprecated: Call-time pass-by-reference has been deprecated in C:\xampp\htdocs\openaudit\ldap_audit_script.php on line 306

Deprecated: Call-time pass-by-reference has been deprecated in C:\xampp\htdocs\openaudit\ldap_audit_script.php on line 340

Thanks in advance.

Author:  jpa [ Thu Feb 23, 2012 3:23 am ]
Post subject:  Re: Error While attempt to run ldap_audit_script.php

Those are warnings that can be ignored for now I think.

More likely you're using MySQL with strict mode on which is the default in newer MySQL versions. Most of OpenAudit handles this but the ldap stuff does not.

Add the following to the ldap_audit_script.php file around line 60 just before the AuditLdapPaths(); line.

[code]# <HACK>
# The following turns off strict checking so incorrect
# datatypes can be inserted into fields!
$sql = "SET @@session.sql_mode=''";
$result = mysql_query($sql);
# </HACK>[/code]

Author:  jpa [ Thu Feb 23, 2012 3:26 am ]
Post subject:  Re: Error While attempt to run ldap_audit_script.php

My ldap_details.php file also differs from stock as I removed the extra "?>" at the end of the file as there were two. Not sure if this is necessary or not.

Page 1 of 1 All times are UTC + 10 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/