Registrations to Open-AudIT forums are now closed. To ask any new questions please visit Opmantek Community Questions.

Open-AudIT

What's on your network?
It is currently Sat Dec 14, 2019 9:29 am

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
PostPosted: Tue Feb 21, 2012 1:15 pm 
Offline
Newbie

Joined: Mon Feb 13, 2012 10:21 pm
Posts: 11
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.


Top
 Profile  
Reply with quote  
PostPosted: Thu Feb 23, 2012 3:23 am 
Offline
Moderator

Joined: Fri Jul 20, 2007 8:27 am
Posts: 1259
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>


Top
 Profile  
Reply with quote  
PostPosted: Thu Feb 23, 2012 3:26 am 
Offline
Moderator

Joined: Fri Jul 20, 2007 8:27 am
Posts: 1259
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group