Script to ingest audit file to database

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Juan Asensio S?nchez wrote:
> Hi
>
> Has anyone developed a script to do that? I need this, but I want to 
> be sure there is no a script that already exists. If not, I will do 
> it. So, is there any library for Perl to analyze that file, i.e., give 
> the list of entries, modifications made to that entries (add, modify, 
> delete, modrdn), etc?
Net::LDAP might be able to handle LDIF change record syntax (as output 
to the audit log).
>
> Also, could the Directory Server redirect the output of the audit to 
> the input of that script instead of the file?
You could create the perl script as a named pipe.  
http://directory.fedoraproject.org/wiki/Named_Pipe_Log_Script - this is 
in python, and I would encourage the use of python instead of perl, but 
I don't think python-ldap can handle LDIF change record syntax (it can 
handle regular LDIF just fine, and you may find that it is easy to 
modify that to handle change record syntax rather than writing something 
from scratch in perl.  Of course, if you are a perl hacker, I won't hold 
that against you . . .)
>
> regards.
> ------------------------------------------------------------------------
>
> --
> 389 users mailing list
> 389-users at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/389-users



[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux